Class: Krikri::QdcParser
- Includes:
- OaiParserHeaders
- Defined in:
- lib/krikri/parsers/qdc_parser.rb
Overview
A Qualified Dublin Core parser. Uses XML parser with a root path to match the metadata path as harvested. The default root_path is the element used by CONTENTdm; this can be overridden as with all Krikri::XmlParsers, at the time of instantiation.
Instance Attribute Summary
Attributes inherited from Parser
Instance Method Summary collapse
-
#initialize(record, root_path = '//oai_qdc:qualifieddc', ns = {}) ⇒ QdcParser
constructor
A new instance of QdcParser.
Methods included from OaiParserHeaders
Methods inherited from Parser
Constructor Details
#initialize(record, root_path = '//oai_qdc:qualifieddc', ns = {}) ⇒ QdcParser
Returns a new instance of QdcParser.
12 13 14 15 16 17 18 |
# File 'lib/krikri/parsers/qdc_parser.rb', line 12 def initialize(record, root_path = '//oai_qdc:qualifieddc', ns = {}) ns = { qdc: 'http://epubs.cclrc.ac.uk/xmlns/qdc/', oai_qdc: 'http://worldcat.org/xmlschemas/qdc-1.0/' }.merge(ns) super(record, root_path, ns) end |