pulibrary / bibdata

Local API for retrieving bibliographic and other useful data from Alma (Ruby 3.2.0, Rails 7.1.3.4)
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

Set on_reserve flag to correct value #1363

Closed carolyncole closed 3 years ago

carolyncole commented 3 years ago

I did a search in alma for where (In temporary location equals "Yes") and found this item that is in a reserve location - https://catalog-alma-qa.princeton.edu/catalog/99106282523506421

I then looked that item up in bibdata: https://bibdata-alma-staging.princeton.edu/bibliographic/99106282523506421/holdings/22158920250006421/availability.json

You can see the on_reserve in the metadata is N, not Y

There are a few use cases here:

Additional investigation is needed for both:

The alma locations API returns this information in the “fulfillment_unit” key. Value would be “reserves”. Mark will follow up to ensure the list of reserves locations is correct.

hackartisan commented 3 years ago

@carolyncole the reserves listing has been removed from orangelight and at one point it looked like the alma reserve feature may not be used so we just hard-coded that to 'N' for everything. I'll check on this.

hackartisan commented 3 years ago

@carolyncole I assume you're asking because it's used in Requests?

carolyncole commented 3 years ago

Yes, it is used in requests. We use it to check and see if a person can request a copy. If it is on reserve is should not be able to be requested for pickup.

hackartisan commented 3 years ago

We expect some use of alma reserves in the fall; I updated the description.

hackartisan commented 3 years ago

This is a lower priority right now because there won't be any reserves yet at go-live.

kevinreiss commented 3 years ago

another example https://bibdata-alma-staging.princeton.edu/bibliographic/9931973043506421/holdings/22185253590006421/availability.json

christinach commented 3 years ago

https://api-na.hosted.exlibrisgroup.com/almaws/v1/conf/libraries/firestone/locations?apikey=apikeyvalue { "code": "vidlr", "name": "vidlr: Video Lib Res", "external_name": "Video Library Reserve", "type": { "value": "OPEN", "desc": "Open" }, "remote_storage": "", "map": "", "suppress_from_publishing": "false", "fulfillment_unit": { "value": "Reserves", "desc": "Reserves" }, "accession_placement": { "value": "none", "desc": "None" }, "call_number_type": { "value": "", "desc": null }, "link": "https://api-na.hosted.exlibrisgroup.com/almaws/v1/conf/libraries/firestone/locations/vidlr"