Method: IsoDoc::PresentationXMLConvert#bibrender_relaton

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

#bibrender_relaton(xml, renderings) ⇒ Object



88
89
90
91
92
93
# File 'lib/isodoc/presentation_function/refs.rb', line 88

def bibrender_relaton(xml, renderings)
  f = renderings[xml["id"]][:formattedref]
  f &&= "<formattedref>#{f}</formattedref>"
  x = xml.xpath(ns("./docidentifier | ./uri | ./note | ./biblio-tag"))
  xml.children = "#{f}#{x.to_xml}"
end