Module: BerkeleyLibrary::AV::Metadata::Readers::Base

Includes:
Util
Included in:
Alma, TIND
Defined in:
lib/berkeley_library/av/metadata/readers/base.rb

Constant Summary

Constants included from Util

Util::DEFAULT_USER_AGENT

Instance Method Summary collapse

Methods included from Util

#class_name, #compare_by_attributes, #compare_values, #do_get, #tidy_value

Instance Method Details

#record_for(record_id) ⇒ MARC::Record

Returns the MARC record.

Returns:

  • (MARC::Record)

    the MARC record



12
13
14
15
16
17
18
# File 'lib/berkeley_library/av/metadata/readers/base.rb', line 12

def record_for(record_id)
  first_record_for(record_id)
rescue AV::RecordNotFound
  raise
rescue StandardError => e
  raise not_found(record_id, e.message)
end