Method: IsoDoc::PresentationXMLConvert#figure_fn

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

#figure_fn(elem) ⇒ Object

move footnotes into key, and get rid of footnote reference since it is in diagram



78
79
80
81
82
83
84
85
86
# File 'lib/isodoc/presentation_function/image.rb', line 78

def figure_fn(elem)
  fn = elem.xpath(ns(".//fn")) - elem.xpath(ns("./name//fn"))
  fn.empty? and return
  dl = figure_key_insert_pt(elem)
  fn.each do |f|
    dl.previous = "<dt><p><sup>#{f['reference']}</sup></p></dt>" \
      "<dd>#{f.remove.children.to_xml}</dd>"
  end
end