Class: Krikri::MARCXMLParser
- Includes:
- OaiParserHeaders
- Defined in:
- lib/krikri/parsers/marcxml_parser.rb
Overview
A MARCXML parser. Uses XML parser with a root path to match the metadata path.
Instance Attribute Summary
Attributes inherited from Parser
Instance Method Summary collapse
-
#initialize(record, root_path = '//marc:record', ns = {}) ⇒ MARCXMLParser
constructor
A new instance of MARCXMLParser.
Methods included from OaiParserHeaders
Methods inherited from Parser
Constructor Details
#initialize(record, root_path = '//marc:record', ns = {}) ⇒ MARCXMLParser
Returns a new instance of MARCXMLParser.
9 10 11 12 |
# File 'lib/krikri/parsers/marcxml_parser.rb', line 9 def initialize(record, root_path = '//marc:record', ns = {}) ns = { marc: 'http://www.loc.gov/MARC21/slim' }.merge(ns) super(record, root_path, ns) end |