lib/asciidoctor/csd/front.rb in metanorma-csd-1.1.4 vs lib/asciidoctor/csd/front.rb in metanorma-csd-1.2.0
- old
+ new
@@ -25,10 +25,11 @@
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"))
i = 2
while node.attr("technical-committee_#{i}") do
@@ -42,10 +43,10 @@
def metadata_status(node, xml)
status = node.attr("status")
unless status && ::Metanorma::Csd::DOCSTATUS.keys.include?(status)
warn "#{status} is not a legal status"
end
- xml.status(**{ format: "plain" }) { |s| s << status }
+ super
end
def prefix_id(node)
prefix = "CC"
typesuffix = ::Metanorma::Csd::DOCSUFFIX[node.attr("doctype")] || ""