Sha256: fd71f84f8175a277993eb9ed7a61549baa827c3525d787357e15074610778fcd

Contents?: true

Size: 546 Bytes

Versions: 28

Compression:

Stored size: 546 Bytes

Contents

module Relaton
  module Render
    module BIPM
      class Parse < ::Relaton::Render::Parse
        def simple_or_host_xml2hash(doc, host)
          ret = super
          ret.merge(home_standard: home_standard(doc, ret[:publisher_raw]))
        end

        def home_standard(_doc, pubs)
          pubs&.any? do |r|
            ["International Organization for Standardization", "ISO",
             "International Electrotechnical Commission", "IEC"]
              .include?(r[:nonpersonal])
          end
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
metanorma-bipm-2.5.3 lib/relaton/render/parse.rb
metanorma-bipm-2.5.2 lib/relaton/render/parse.rb
metanorma-bipm-2.5.1 lib/relaton/render/parse.rb
metanorma-bipm-2.5.0 lib/relaton/render/parse.rb
metanorma-bipm-2.4.12 lib/relaton/render/parse.rb
metanorma-bipm-2.4.11 lib/relaton/render/parse.rb
metanorma-bipm-2.4.10 lib/relaton/render/parse.rb
metanorma-bipm-2.4.9 lib/relaton/render/parse.rb
metanorma-bipm-2.4.8 lib/relaton/render/parse.rb
metanorma-bipm-2.4.7 lib/relaton/render/parse.rb
metanorma-bipm-2.4.6 lib/relaton/render/parse.rb
metanorma-bipm-2.4.5 lib/relaton/render/parse.rb
metanorma-bipm-2.4.4 lib/relaton/render/parse.rb
metanorma-bipm-2.4.3 lib/relaton/render/parse.rb
metanorma-bipm-2.4.2 lib/relaton/render/parse.rb
metanorma-bipm-2.4.0 lib/relaton/render/parse.rb
metanorma-bipm-2.3.7 lib/relaton/render/parse.rb
metanorma-bipm-2.3.5 lib/relaton/render/parse.rb
metanorma-bipm-2.3.4 lib/relaton/render/parse.rb
metanorma-bipm-2.3.3 lib/relaton/render/parse.rb