Sha256: 9efc2cdcf36dfeb9a042434ea0069344824cde4c0963997cb12a6ce546383bd7

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

module IsoDoc
  module Plateau
    class Metadata < IsoDoc::Jis::Metadata
      def docid(xml, _out)
        id = xml.at(ns("//bibdata/docidentifier[@type = 'PLATEAU']"))&.text or
          return
        set(:docnumber, id)
        set(:docnumber_undated, id.sub(/:\d{4}$/, ""))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metanorma-plateau-0.1.10 lib/isodoc/plateau/metadata.rb
metanorma-plateau-0.1.9 lib/isodoc/plateau/metadata.rb
metanorma-plateau-0.1.8 lib/isodoc/plateau/metadata.rb