Method: IsoDoc::PresentationXMLConvert#hidden_items
- Defined in:
- lib/isodoc/presentation_function/refs.rb
#hidden_items(docxml) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/isodoc/presentation_function/refs.rb', line 25 def hidden_items(docxml) docxml.xpath(ns("//references[bibitem/@hidden = 'true']")).each do |x| x.at(ns("./bibitem[not(@hidden = 'true')]")) and next x.elements.map(&:name).any? { |n| n != "bibitem" } and next x["hidden"] = "true" end end |