Sha256: c00e9bf2e552e5707a5c3cd26ba790a9a07540c081141873888bbc8ab9fa7776

Contents?: true

Size: 506 Bytes

Versions: 16

Compression:

Stored size: 506 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

16 entries across 16 versions & 1 rubygems

Version Path
relaton-omg-1.20.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.19.1 lib/relaton_omg/xml_parser.rb
relaton-omg-1.19.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.18.1 lib/relaton_omg/xml_parser.rb
relaton-omg-1.18.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.17.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.16.2 lib/relaton_omg/xml_parser.rb
relaton-omg-1.16.1 lib/relaton_omg/xml_parser.rb
relaton-omg-1.16.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.14.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.13.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.12.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.11.2 lib/relaton_omg/xml_parser.rb
relaton-omg-1.11.1 lib/relaton_omg/xml_parser.rb
relaton-omg-1.11.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.10.1 lib/relaton_omg/xml_parser.rb