Method: IsoDoc::PresentationXMLConvert#hidden_items
- Defined in:
- lib/isodoc/presentation_function/refs.rb
#hidden_items(docxml) ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'lib/isodoc/presentation_function/refs.rb', line 47 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? do |n| !%w(title bibitem).include?(n) end and next x["hidden"] = "true" end end |