Method: IsoDoc::PresentationXMLConvert#anchor_xref_short

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

#anchor_xref_short(node, target, container) ⇒ Object



70
71
72
73
74
75
76
# File 'lib/isodoc/presentation_function/xrefs.rb', line 70

def anchor_xref_short(node, target, container)
  if (l = node["label"]) && !container
    v = anchor_value(target)
    @i18n.l10n(%[<span class="fmt-element-name">#{l}</span> #{v}])
  else @xrefs.anchor(target, :xref)
  end
end