Sha256: 93c33352495f2c6d5b43f48553443e3b14cb258921c2493ac8fdc289009cb0c4

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

= Exlibris::Primo

Exlibris::Primo offers a set of libraries for interacting with the ExLibris Primo APIs.

== Exlibris::Primo::Searcher
The Exlibris::Primo::Searcher class performs a search against Primo for given parameters
and exposes the set of holdings (availibrary elements), rsrcs, tocs, and related links (addlink elements).

== Example of Exlibris::Primo::Searcher in action
  setup = {
    :base_url => "http://primo.institution.edu", :vid => "VID", :institution => "INSTITUTION",
    :config => {
      "libraries" => 
        {"library_code1" => "library_display_1", "library_code2" => "library_display_1"}, 
      "statuses" => 
        {"status_code1" => "status_display_1", "status_code2" => "status_display_2"}}
  }
  params = {
     :primo_id => primo_id,
     :isbn => isbn, 
     :issn => issn,
     :title => title,
     :author => author,
     :genre => genre
  }
  searcher = Exlibris::Primo::Searcher.new(setup, params)
  count = search.count
  holdings = searcher.holdings
  rsrcs = searcher.rsrcs
  tocs = searcher.tocs
  related_links = searcher.related_links

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exlibris-primo-0.1.0 README.rdoc