Sha256: 8b8cd8effd4aa9a48d050b3f5e758c5ba12d7f5031a9bba32f9a690ac482eb0e

Contents?: true

Size: 954 Bytes

Versions: 2

Compression:

Stored size: 954 Bytes

Contents

module BerkeleyLibrary
  module AV
    module Constants
      TAG_TITLE_FIELD = '245'.freeze
      TAG_LINK_FIELD = '856'.freeze
      TAG_TRACK_FIELD = '998'.freeze
      TAG_TIND_ID = '001'.freeze

      # TODO: use marc/spec
      TAG_TIND_CATALOG_ID = '901'.freeze
      SUBFIELD_CODE_TIND_BIB_NUMBER = 'm'.freeze

      # TODO: use marc/spec
      TAG_ALMA_MIGRATION_INFO = '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

      # '99' is the Alma prefix for a Metadata Management System ID
      ALMA_RECORD_RE = /^(?<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]+$/
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
berkeley_library-av-core-0.4.1 lib/berkeley_library/av/constants.rb
berkeley_library-av-core-0.4.0 lib/berkeley_library/av/constants.rb