Sha256: 82f04654bc1af14ab4ea2e39193fc7882b8c7797b59752b5fb2eb9dab4916faa

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

require "isodoc"

module IsoDoc
  module Vsd
    class Metadata < IsoDoc::Metadata
      def initialize(lang, script, labels)
        super
        here = File.dirname(__FILE__)
        set(:logo,
            File.expand_path(File.join(here, "html", "logo.png")))
      end

      def security(isoxml, _out)
        keywords = []
        isoxml.xpath(ns("//bibdata/keyword")).each do |kw|
          keywords << kw.text
        end
        set(:keywords, keywords)
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
metanorma-vsd-0.5.10 lib/isodoc/vsd/metadata.rb
metanorma-vsd-0.5.9 lib/isodoc/vsd/metadata.rb
metanorma-vsd-0.5.8 lib/isodoc/vsd/metadata.rb
metanorma-vsd-0.5.7 lib/isodoc/vsd/metadata.rb