Method: IsoDoc::PresentationXMLConvert#prefix_container_fmt_xref_label
- Defined in:
- lib/isodoc/presentation_function/autonum.rb
#prefix_container_fmt_xref_label(container, xref) ⇒ Object
109 110 111 112 113 114 115 116 117 118 |
# File 'lib/isodoc/presentation_function/autonum.rb', line 109 def prefix_container_fmt_xref_label(container, xref) container or return xref container_container = @xrefs.anchor(container, :container, false) container_label = prefix_container_fmt_xref_label(container_container, @xrefs.anchor(container, :xref, false)) l10n(connectives_spans(@i18n.nested_xref .sub("%1", "<span class='fmt-xref-container'>#{container_label}</span>") .sub("%2", xref))) end |