Sha256: 35f85e81f8058a959e8a698d07cade708a452c873d24c3f57d4c2497b9b75a10

Contents?: true

Size: 414 Bytes

Versions: 95

Compression:

Stored size: 414 Bytes

Contents

require "isodoc"

module IsoDoc
  module IHO

    class Metadata < IsoDoc::Generic::Metadata
      def configuration
        Metanorma::IHO.configuration
      end

      def series(xml, _out)
        set(:series, xml.at(ns("//bibdata/series[@type = 'main']/title"))&.text)
        a = xml.at(ns("//bibdata/series[@type = 'main']/abbreviation"))&.text and
          set(:seriesabbr, a)
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
metanorma-iho-1.0.4 lib/isodoc/iho/metadata.rb
metanorma-iho-1.0.3 lib/isodoc/iho/metadata.rb
metanorma-iho-1.0.2 lib/isodoc/iho/metadata.rb
metanorma-iho-1.0.1 lib/isodoc/iho/metadata.rb
metanorma-iho-1.0.0 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.12 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.11 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.9 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.8 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.7 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.6 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.5 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.4 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.3 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.2 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.1 lib/isodoc/iho/metadata.rb
metanorma-iho-0.9.0 lib/isodoc/iho/metadata.rb
metanorma-iho-0.8.7 lib/isodoc/iho/metadata.rb
metanorma-iho-0.8.5 lib/isodoc/iho/metadata.rb
metanorma-iho-0.8.4 lib/isodoc/iho/metadata.rb