Sha256: 83c58dbfd4325ee71b08ea2fc81e63e918956ba302b5692692000702d438b6eb

Contents?: true

Size: 657 Bytes

Versions: 17

Compression:

Stored size: 657 Bytes

Contents

module Krikri
  ##
  # A Primo parser. Uses XML parser with a root path to match the
  # metadata path.
  # @see Krikri::XmlParser
  class PrimoParser < XmlParser
    DEFAULT_NAMESPACE = 'nmbib'

    def self.record(*args)
      ['PrimoNMBib', 'record', *args].map { |s| "#{DEFAULT_NAMESPACE}:#{s}" }
    end

    def self.display(*args)
      record('display', *args)
    end

    def self.search(*args)
      record('search', *args)
    end

    def initialize(record,
                   root_path = '//sear:DOC',
                   ns = {nmbib: 'http://www.exlibrisgroup.com/xsd/primo/primo_nm_bib'})
      super(record, root_path, ns)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
krikri-0.15.2 lib/krikri/parsers/primo_parser.rb
krikri-0.15.1 lib/krikri/parsers/primo_parser.rb
krikri-0.15.0 lib/krikri/parsers/primo_parser.rb
krikri-0.14.0 lib/krikri/parsers/primo_parser.rb
krikri-0.13.2 lib/krikri/parsers/primo_parser.rb
krikri-0.13.1 lib/krikri/parsers/primo_parser.rb
krikri-0.13.0 lib/krikri/parsers/primo_parser.rb
krikri-0.12.4 lib/krikri/parsers/primo_parser.rb
krikri-0.12.3 lib/krikri/parsers/primo_parser.rb
krikri-0.12.1 lib/krikri/parsers/primo_parser.rb
krikri-0.12.0 lib/krikri/parsers/primo_parser.rb
krikri-0.12.0.pre.rc.1 lib/krikri/parsers/primo_parser.rb
krikri-0.11.2 lib/krikri/parsers/primo_parser.rb
krikri-0.11.1 lib/krikri/parsers/primo_parser.rb
krikri-0.11.0 lib/krikri/parsers/primo_parser.rb
krikri-0.10.1 lib/krikri/parsers/primo_parser.rb
krikri-0.10.0 lib/krikri/parsers/primo_parser.rb