Method: IsoDoc::PresentationXMLConvert#note1

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

#note1(elem) ⇒ Object



62
63
64
65
66
67
68
69
70
# File 'lib/isodoc/presentation_function/block.rb', line 62

def note1(elem)
  %w(bibdata bibitem).include?(elem.parent.name) ||
    elem["notag"] == "true" and return
  n = @xrefs.get[elem["id"]]
  lbl = @i18n.note
  (n.nil? || n[:label].nil? || n[:label].empty?) or
    lbl = l10n("#{lbl} #{n[:label]}")
  prefix_name(elem, "", lbl, "name")
end