Module: BerkeleyLibrary::AV::Metadata::Readers::Alma

Includes:
Base
Defined in:
lib/berkeley_library/av/metadata/readers/alma.rb

Constant Summary

Constants included from Util

Util::DEFAULT_USER_AGENT

Instance Method Summary collapse

Methods included from Base

#record_for

Methods included from Util

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

Instance Method Details

#marc_uri_for(record_id) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/berkeley_library/av/metadata/readers/alma.rb', line 14

def marc_uri_for(record_id)
  query_string = URI.encode_www_form(
    'version' => '1.2',
    'operation' => 'searchRetrieve',
    'query' => sru_query_value_for(record_id)
  )

  URIs.append(AV::Config.alma_sru_base_uri, '?', query_string)
end