Sha256: 299e71258f559c1cf52e09cea3697357919993795f0f04fe673632cfc4de8e71

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

Version Path
relaton-omg-1.10.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.9.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.8.0 lib/relaton_omg/xml_parser.rb
relaton-omg-1.7.3 lib/relaton_omg/xml_parser.rb
relaton-omg-1.7.2 lib/relaton_omg/xml_parser.rb
relaton-omg-1.7.1 lib/relaton_omg/xml_parser.rb