Method: IsoDoc::PresentationXMLConvert#combine_conflated_xref_locations

Defined in:
lib/isodoc/presentation_function/xrefs.rb

#combine_conflated_xref_locations(locs) ⇒ Object

Note % to entry and Note % to entry: cannot conflate as Note % to entry 1 and 2 So Notes 1 and 3, but Note 1 to entry and Note 3 to entry



105
106
107
108
109
110
111
112
# File 'lib/isodoc/presentation_function/xrefs.rb', line 105

def combine_conflated_xref_locations(locs)
  out = if locs.any? { |l| l[:elem]&.include?("%") }
          locs.each { |l| l[:label] = @xrefs.anchor(l[:target], :xref) }
        else
          conflate_xref_locations(locs)
        end
  combine_conflated_xref_locations_container(locs, l10n(combine_conn(out)))
end