class IsoDoc::M3AAWG::Metadata

Public Class Methods

new(lang, script, labels) click to toggle source
Calls superclass method
# File lib/isodoc/m3aawg/metadata.rb, line 10
def initialize(lang, script, labels)
  super
  here = File.dirname(__FILE__)
  set(:logo_html,
      File.expand_path(File.join(here, "html", "m3-logo.png")))
  set(:logo_word,
      File.expand_path(File.join(here, "html", "logo.jpg")))
end

Public Instance Methods

author(isoxml, _out) click to toggle source
Calls superclass method
# File lib/isodoc/m3aawg/metadata.rb, line 28
def author(isoxml, _out)
  set(:tc, nil)
  tc = isoxml.at(ns("//bibdata/ext/editorialgroup/committee"))
  set(:tc, tc.text) if tc
  super
end
configuration() click to toggle source
# File lib/isodoc/m3aawg/metadata.rb, line 6
 def configuration
  Metanorma::M3AAWG.configuration
end
docid(isoxml, _out) click to toggle source
# File lib/isodoc/m3aawg/metadata.rb, line 35
def docid(isoxml, _out)
  docnumber = isoxml.at(ns("//bibdata/docidentifier"))
  set(:docnumber, docnumber&.text)
end
subtitle(_isoxml, _out) click to toggle source
# File lib/isodoc/m3aawg/metadata.rb, line 24
def subtitle(_isoxml, _out)
  nil
end
title(isoxml, _out) click to toggle source
# File lib/isodoc/m3aawg/metadata.rb, line 19
def title(isoxml, _out)
  main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text
  set(:doctitle, main)
end