Class: Krikri::MARCXMLParser

Inherits:
XmlParser show all
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.

See Also:

Instance Attribute Summary

Attributes inherited from Parser

#record, #root

Instance Method Summary collapse

Methods included from OaiParserHeaders

#header

Methods inherited from Parser

#local_name, parse

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