Class: Mods::Date::MarcFormat

Inherits:
Mods::Date show all
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

#date, #xml

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


72
73
74
75
76
# File 'lib/mods/date.rb', line 72

def self.normalize_to_edtf(text)
  return nil if text == "9999" || text == "uuuu" || text == '||||'

  super
end