lib/asciidoctor/cc/front.rb in metanorma-cc-1.5.0 vs lib/asciidoctor/cc/front.rb in metanorma-cc-1.5.1

- old
+ new

@@ -2,32 +2,15 @@ require "asciidoctor/standoc/converter" require "fileutils" module Asciidoctor module CC - class Converter < Standoc::Converter - - def metadata_author(node, xml) - xml.contributor do |c| - c.role **{ type: "author" } - c.organization do |a| - a.name "CalConnect" - end - end - personal_author(node, xml) + def default_publisher + "CalConnect" end - def metadata_publisher(node, xml) - xml.contributor do |c| - c.role **{ type: "publisher" } - c.organization do |a| - a.name "CalConnect" - end - end - end - def metadata_committee(node, xml) return unless node.attr("technical-committee") xml.editorialgroup do |a| a.technical_committee node.attr("technical-committee"), **attr_code(type: node.attr("technical-committee-type")) @@ -73,21 +56,9 @@ @log.add("Document Attributes", nil, "#{d} is not a legal document type: reverting to 'standard'") d = "standard" end d - end - - def metadata_copyright(node, xml) - from = node.attr("copyright-year") || Date.today.year - xml.copyright do |c| - c.from from - c.owner do |owner| - owner.organization do |o| - o.name "CalConnect" - end - end - end end end end end