Method: IsoDoc::PresentationXMLConvert#concept1_linkmention
- Defined in:
- lib/isodoc/presentation_function/concepts.rb
#concept1_linkmention(ref, renderterm, opts) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/isodoc/presentation_function/concepts.rb', line 65 def concept1_linkmention(ref, renderterm, opts) (opts[:linkmention] == "true" && !renderterm.nil? && !ref.nil?) or return ref2 = ref.clone r2 = renderterm.clone #renderterm.replace(ref2).children = r2 ref2.children = r2 if ref.parent.name == "semx" renderterm.replace("<semx element='#{ref.parent['element']}' source='#{ref.parent['source']}'>#{to_xml(ref2)}</semx>") else renderterm.replace(ref2) end end |