lib/isodoc/nist/metadata.rb in metanorma-nist-0.2.7 vs lib/isodoc/nist/metadata.rb in metanorma-nist-0.2.8

- old
+ new

@@ -4,10 +4,19 @@ module IsoDoc module NIST class Metadata < IsoDoc::Metadata def initialize(lang, script, labels) super + here = File.dirname(__FILE__) + set(:logo_nist, + File.expand_path(File.join(here, "html", "logo.png"))) + set(:logo_cswp, + File.expand_path(File.join(here, "html", "logo_cswp.png"))) + set(:logo_commerce, + File.expand_path(File.join(here, "html", "commerce-logo-color.png"))) + set(:logo_commerce_word, + File.expand_path(File.join(here, "html", "deptofcommerce.png"))) end def iter_abbr(stage, iter) return "F" if iter&.downcase == "final" && %w(draft-wip draft-prelim draft-public draft-approval).include?(stage) @@ -338,10 +347,10 @@ set(:additional_note, note) note = xml.at(ns("//bibdata/note[@type = 'withdrawal-note']"))&.text and set(:withdrawal_note, note) note = xml.at(ns("//bibdata/note[@type = "\ "'withdrawal-announcement-link']"))&.text and - set(:withdrawal_announcement_link, note) + set(:withdrawal_announcement_link, note) end end end end