Method: IsoDoc::PresentationXMLConvert#conflate_xref_locations

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

#conflate_xref_locations(locs) ⇒ Object



114
115
116
117
118
119
# File 'lib/isodoc/presentation_function/xrefs.rb', line 114

def conflate_xref_locations(locs)
  out = locs.each { |l| l[:label] = anchor_value(l[:target]) }
  label = @i18n.inflect(locs.first[:elem], number: "pl")
  out[0][:label] = l10n("#{label} #{out[0][:label]}").strip
  out
end