Module: Mods
- Defined in:
- lib/mods.rb,
lib/mods/date.rb,
lib/mods/name.rb,
lib/mods/reader.rb,
lib/mods/record.rb,
lib/mods/subject.rb,
lib/mods/version.rb,
lib/mods/constants.rb,
lib/mods/title_info.rb,
lib/mods/origin_info.rb,
lib/mods/nom_terminology.rb
Defined Under Namespace
Classes: Date, Name, OriginInfo, Reader, Record, Subject, TitleInfo
Constant Summary collapse
- ORIGIN_INFO_DATE_ELEMENTS =
Mods::OriginInfo::DATE_ELEMENTS
- VERSION =
this is the Ruby Gem version
'3.0.4'.freeze
- MODS_VERSION =
the version of MODS supported by this gem
'3.4'
- MODS_NS_V3 =
"http://www.loc.gov/mods/v3"
- MODS_NS =
MODS_NS_V3
- MODS_XSD =
"http://www.loc.gov/standards/mods/mods.xsd"
- DOC_URL =
"http://www.loc.gov/standards/mods/"
- TOP_LEVEL_ELEMENTS_SIMPLE =
top level elements that cannot have subelement children
[ 'abstract', 'accessCondition', 'classification', 'extension', 'genre', 'identifier', 'note', 'tableOfContents', 'targetAudience', 'typeOfResource', ]
- TOP_LEVEL_ELEMENTS_COMPLEX =
top level elements that can have subelement children
[ 'language', 'location', 'name', 'originInfo', 'part', 'physicalDescription', 'recordInfo', 'relatedItem', 'subject', 'titleInfo' ]
- TOP_LEVEL_ELEMENTS =
Array.new(TOP_LEVEL_ELEMENTS_SIMPLE).concat(TOP_LEVEL_ELEMENTS_COMPLEX)
- TITLE_INFO_TYPES =
enumerated attribute values
['abbreviated', 'translated', 'alternative', 'uniform']
- RELATED_ITEM_TYPES =
[ 'preceding', 'succeeding', 'original', 'host', 'constituent', 'series', 'otherVersion', 'otherFormat', 'isReferencedBy', 'references', 'reviewOf' ]
- TYPE_OF_RESOURCE_VALUES =
enumerated values
[ 'text', 'cartographic', 'notated music', 'sound recording-musical', 'sound recording-nonmusical', 'sound recording', 'still image', 'moving image', 'three dimensional object', 'software', 'multimedia', 'mixed material']
- LANG_ATTRIBS =
Nokogiri 1.6.6 introduced lang as a built-in attribute
['script', 'transliteration']
- LINKING_ATTRIBS =
['xlink', 'ID']
- DATE_ATTRIBS =
['encoding', 'point', 'keyDate', 'qualifier']
- ENCODING_ATTRIB_VALUES =
['w3cdtf', 'iso8601', 'marc', 'edtf', 'temper']
- POINT_ATTRIB_VALUES =
['start', 'end']
- KEY_DATE_ATTRIB_VALUES =
['yes']
- QUALIFIER_ATTRIB_VALUES =
['approximate', 'inferred', 'questionable']
- AUTHORITY_ATTRIBS =
['authority', 'authorityURI', 'valueURI']