Method: IsoDoc::PresentationXMLConvert#gather_xref_locations
- Defined in:
- lib/isodoc/presentation_function/xrefs.rb
#gather_xref_locations(node) ⇒ Object
130 131 132 133 134 135 136 137 138 |
# File 'lib/isodoc/presentation_function/xrefs.rb', line 130 def gather_xref_locations(node) node.xpath(ns("./location")).each_with_object([]) do |l, m| type = @xrefs.anchor(l["target"], :type) m << { conn: l["connective"], target: l["target"], type:, node: l, elem: @xrefs.anchor(l["target"], :elem), container: @xrefs.anchor(l["target"], :container, false) || %w(termnote).include?(type) } end end |