Sha256: 64f7e13ffbd80bce98b7f986b919924bb1b782570e2716cac618f599ba36e11d

Contents?: true

Size: 503 Bytes

Versions: 10

Compression:

Stored size: 503 Bytes

Contents

require "nokogiri"

module RelatonOmg
  class XMLParser < RelatonBib::XMLParser
    class << self
      private

      # def item_data(ietfitem)
      #   data = super
      #   ext = ietfitem.at "./ext"
      #   return data unless ext

      #   data[:doctype] = ext.at("./doctype")&.text
      #   data
      # end

      # @param item_hash [Hash]
      # @return [RelatonOmg::OmgBibliographicItem]
      def bib_item(item_hash)
        OmgBibliographicItem.new item_hash
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
relaton-omg-1.7.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.6.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.6.pre1 lib/relaton_omg/xml_parser.rb
relaton-omg-1.5.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.5.pre lib/relaton_omg/xml_parser.rb
relaton-omg-1.4.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.3.0 lib/relaton_omg/xml_parser.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-omg-1.2.0/lib/relaton_omg/xml_parser.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-omg-1.2.0/lib/relaton_omg/xml_parser.rb
relaton-omg-1.2.0 lib/relaton_omg/xml_parser.rb