Class: IsoDoc::Gb::PresentationXMLConvert

Inherits:
Iso::PresentationXMLConvert
  • Object
show all
Includes:
Init
Defined in:
lib/isodoc/gb/presentation_xml_convert.rb

Instance Method Summary collapse

Methods included from Init

#i18n_init, #metadata_init, #xref_init

Instance Method Details

#annex1(f) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/isodoc/gb/presentation_xml_convert.rb', line 14

def annex1(f)
  lbl = @xrefs.anchor(f['id'], :label)
  if t = f.at(ns("./title"))
    t.children = "#{t.children.to_xml}"
  end
  prefix_name(f, "<br/><br/>", lbl, "title")
end

#example1(f) ⇒ Object



7
8
9
10
11
12
# File 'lib/isodoc/gb/presentation_xml_convert.rb', line 7

def example1(f)
  n = @xrefs.get[f["id"]]
  lbl = (n.nil? || n[:label].nil? || n[:label].empty?) ? @i18n.example :
    l10n("#{@i18n.example} #{n[:label]}")
  prefix_name(f, "&nbsp;&mdash; ", l10n(lbl + ":"), "name")
end