Module: BerkeleyLibrary::AV::Constants

Included in:
Metadata, Metadata::Fields, Metadata::Source, RecordId, RecordId::Type, Track, Track
Defined in:
lib/berkeley_library/av/constants.rb

Constant Summary collapse

TAG_TITLE_FIELD =
'245'.freeze
'856'.freeze
TAG_TRACK_FIELD =
'998'.freeze
TAG_TIND_ID =
'001'.freeze
TAG_TRANSCRIPT_FIELD =
'856'.freeze
SUBFIELD_CODE_URI =
:u
SUBFIELD_CODE_LINKTEXT =
:y
TAG_TIND_CATALOG_ID =

TODO: use marc/spec

'901'.freeze
SUBFIELD_CODE_TIND_BIB_NUMBER =
'm'.freeze
TAG_ALMA_MIGRATION_INFO =

TODO: use marc/spec

'996'.freeze
SUBFIELD_CODE_ALMA_BIB_NUMBER =
'a'.freeze
SUBFIELD_CODE_DURATION =
:a
SUBFIELD_CODE_TITLE =
:t
SUBFIELD_CODE_PATH =
:g
SUBFIELD_CODES_TRACKS =
[SUBFIELD_CODE_DURATION, SUBFIELD_CODE_TITLE, SUBFIELD_CODE_PATH].freeze
UNKNOWN_TITLE =
'Unknown title'.freeze
ALMA_RECORD_RE =

‘99’ is the Alma prefix for a Metadata Management System ID

/^(?<type>99)[0-9]{9,12}(?<institution>[0-9]{4})$/
MILLENNIUM_RECORD_RE =
/^b(?<digits>[0-9]{8})(?<check>[0-9ax])?$/
OCLC_RECORD_RE =
/^o[0-9]+$/