Method: IsoDoc::PresentationXMLConvert#can_conflate_xref_rendering?

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

#can_conflate_xref_rendering?(locs) ⇒ Boolean

Returns:

  • (Boolean)


171
172
173
174
175
176
# File 'lib/isodoc/presentation_function/xrefs.rb', line 171

def can_conflate_xref_rendering?(locs)
  @i18n.get["no_conflate_xref_locations"] == true and return false
  (locs.all? { |l| l[:container].nil? } ||
   locs.all? { |l| l[:container] == locs.first[:container] }) &&
    locs.all? { |l| l[:type] == locs[0][:type] }
end