lib/isodoc/function/reqt.rb in isodoc-1.0.13 vs lib/isodoc/function/reqt.rb in isodoc-1.0.14
- old
+ new
@@ -20,14 +20,14 @@
def recommendation_attributes1(node)
out = []
oblig = node["obligation"] and out << "Obligation: #{oblig}"
subj = node&.at(ns("./subject"))&.text and out << "Subject: #{subj}"
+ node.xpath(ns("./inherit")).each { |i| out << "Inherit: #{i.text}" }
node.xpath(ns("./classification")).each do |c|
- tag = c.at(ns("./tag"))
- value = c.at(ns("./value"))
- tag && value or next
+ tag = c.at(ns("./tag")) or next
+ value = c.at(ns("./value")) or next
out << "#{tag.text.capitalize}: #{value.text}"
end
out
end
@@ -40,10 +40,10 @@
end
end
end
def reqt_metadata_node(n)
- %w(label title subject classification tag value).include? n.name
+ %w(label title subject classification tag value inherit).include? n.name
end
def recommendation_parse(node, out)
out.div **{ class: "recommend" } do |t|
recommendation_name(node, t, @recommendation_lbl)