Class: Mods::Date::MarcFormat
- Inherits:
-
Mods::Date
- Object
- Mods::Date
- Mods::Date::MarcFormat
- Defined in:
- lib/mods/date.rb
Overview
MARC-formatted date parser, similar to EDTF, but with special support for MARC-specific encodings
Instance Attribute Summary
Attributes inherited from Mods::Date
Class Method Summary collapse
Methods inherited from Mods::Date
#approximate?, #as_range, #encoding, #encoding?, #end?, from_element, #inferred?, #initialize, #key?, parse_date, #point, #precision, #qualifier, #questionable?, #single?, #start?, #text, #to_a, #type
Constructor Details
This class inherits a constructor from Mods::Date
Class Method Details
.normalize_to_edtf(text) ⇒ Object
85 86 87 88 89 |
# File 'lib/mods/date.rb', line 85 def self.normalize_to_edtf(text) return nil if text == "9999" || text == "uuuu" || text == '||||' super end |