Class: IsoDoc::MPFA::PresentationXMLConvert

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

Instance Method Summary collapse

Methods included from Init

#fileloc, #i18n_init, #metadata_init, #xref_init

Instance Method Details

#annex1(f) ⇒ Object



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

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

#clause1(f) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/isodoc/mpfa/presentation_xml_convert.rb', line 15

def clause1(f)
  lbl = @xrefs.anchor(f['id'], :label, f.parent.name != "sections")
  if lbl == "1" and !f.at(ns("./title"))
    prefix_name(f, "<tab/>", " ", "title")
  else
    super
  end
end