Module: Metacrunch::Marcxml
- Defined in:
- lib/metacrunch/marcxml.rb,
lib/metacrunch/marcxml/parser.rb,
lib/metacrunch/marcxml/version.rb,
lib/metacrunch/marcxml/document.rb,
lib/metacrunch/marcxml/document/subfield.rb,
lib/metacrunch/marcxml/document/datafield.rb,
lib/metacrunch/marcxml/document/controlfield.rb,
lib/metacrunch/marcxml/document/subfield_set.rb,
lib/metacrunch/marcxml/document/datafield_set.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"3.1.0"
Class Method Summary collapse
-
.[](xml) ⇒ Object
Convenience method for Metacrunch::Marcxml.parse(xml, collection_mode: false).
-
.parse(xml, collection_mode: false) ⇒ Metacrunch::Marcxml::Document, ...
Parses a MARCXML string into a Document.
Class Method Details
.[](xml) ⇒ Object
Convenience method for Metacrunch::Marcxml.parse(xml, collection_mode: false)
43 44 45 |
# File 'lib/metacrunch/marcxml.rb', line 43 def [](xml) self.parse(xml, collection_mode: false) end |
.parse(xml, collection_mode: false) ⇒ Metacrunch::Marcxml::Document, ...
Parses a MARCXML string into a Document.
34 35 36 |
# File 'lib/metacrunch/marcxml.rb', line 34 def parse(xml, collection_mode: false) Parser.new.parse(xml, collection_mode: collection_mode) end |