lib/isodoc/presentation_function/section.rb in isodoc-2.1.4 vs lib/isodoc/presentation_function/section.rb in isodoc-2.1.5
- old
+ new
@@ -79,9 +79,13 @@
def references(docxml)
bibliography_bibitem_number(docxml)
docxml.xpath(ns("//references/bibitem")).each do |x|
bibitem(x)
end
+ docxml.xpath(ns("//references[bibitem/@hidden = 'true']")).each do |x|
+ x.at(ns("./bibitem[not(@hidden = 'true')]")) and next
+ x["hidden"] = "true"
+ end
@xrefs.parse_inclusions(refs: true).parse(docxml)
end
def bibitem(xml)
@xrefs.klass.implicit_reference(xml) and