Sha256: 211a6a4422679f4a31d78f75d52c6a1f1531c7738cdd6e374208e0a5c7c096d5

Contents?: true

Size: 727 Bytes

Versions: 2

Compression:

Stored size: 727 Bytes

Contents

require 'berkeley_library/alma/module_info'

module BerkeleyLibrary
  module Alma
    module Constants
      # 'x' represents a calculated check digit of 10; 'a' is a wildcard
      MILLENNIUM_RECORD_RE = /^b(?<digits>[0-9]{8})(?<check>[0-9ax])?$/.freeze

      # '99' is the Alma prefix for a Metadata Management System ID
      # see https://knowledge.exlibrisgroup.com/Alma/Product_Documentation/010Alma_Online_Help_(English)/Metadata_Management/005Introduction_to_Metadata_Management/020Record_Numbers
      ALMA_RECORD_RE = /^(?<type>99)(?<unique_part>[0-9]{9,12})(?<institution>[0-9]{4})$/.freeze

      DEFAULT_USER_AGENT = "#{ModuleInfo::NAME} #{ModuleInfo::VERSION} (#{ModuleInfo::HOMEPAGE})".freeze
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
berkeley_library-alma-0.0.2 lib/berkeley_library/alma/constants.rb
berkeley_library-alma-0.0.1 lib/berkeley_library/alma/constants.rb