Class: Krikri::ModsParser

Inherits:
XmlParser show all
Defined in:
lib/krikri/parsers/mods_parser.rb

Overview

A MODS 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 inherited from Parser

parse

Constructor Details

#initialize(record, root_path = '//mods:mods', ns = {}) ⇒ ModsParser

Returns a new instance of ModsParser


7
8
9
10
# File 'lib/krikri/parsers/mods_parser.rb', line 7

def initialize(record, root_path = '//mods:mods', ns = {})
  ns = { mods: 'http://www.loc.gov/mods/v3' }.merge(ns)
  super(record, root_path, ns)
end