Module: Median::Aleph::Search
- Included in:
- Median::Aleph
- Defined in:
- lib/median/aleph/search.rb
Instance Method Summary collapse
Instance Method Details
#find_items(record_id, patron_id = nil) ⇒ Object
4 5 6 7 8 |
# File 'lib/median/aleph/search.rb', line 4 def find_items(record_id, patron_id = nil) url = "#{Median.config.aleph_rest_service_base_url}/record/#{record_id}/items" xml = get_url(url, view: 'full') xml.xpath('//items/item').collect { |xml| Item.new(xml) } end |