Sha256: a876ffdb96da2f15aac3d3ea6c408de47b9f3331441494d960c69ec72f244474
Contents?: true
Size: 999 Bytes
Versions: 49
Compression:
Stored size: 999 Bytes
Contents
require "isodoc" module IsoDoc module M3AAWG class Metadata < IsoDoc::Generic::Metadata def configuration Metanorma::M3AAWG.configuration end 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 def title(isoxml, _out) main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text set(:doctitle, main) end def subtitle(_isoxml, _out) nil end def author(isoxml, _out) set(:tc, nil) tc = isoxml.at(ns("//bibdata/ext/editorialgroup/committee")) set(:tc, tc.text) if tc super end def docid(isoxml, _out) docnumber = isoxml.at(ns("//bibdata/docidentifier")) set(:docnumber, docnumber&.text) end end end end
Version data entries
49 entries across 49 versions & 1 rubygems