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

Mark items with shared retention agreements, with a CGD of "Committed" when accessioned into SCSB #2076

Closed mzelesky closed 1 year ago

mzelesky commented 1 year ago

User story

Items marked for retention commitment in ReCAP will have the proper Collection Group Designation (CGD) of 'Committed' assigned in SCSB after accession.

Acceptance criteria

Notes

Concrete example

In the sandbox, see https://api-na.hosted.exlibrisgroup.com/almaws/v1/bibs/99126831126106421/holdings/22961480120006421/items/23961480110006421

The barcode is 32101119327524.

Re-index required?

Implementation notes, if any

Records are anticipated to be loaded in March 2023.

kevinreiss commented 1 year ago

The updated CGDs will be included in the response of the bibdata barcode controller that SCSB's accession processing calls.

carolyncole commented 1 year ago

https://github.com/pulibrary/bibdata/blob/main/app/controllers/barcode_controller.rb#L14

Location that "Shared" is in now... https://github.com/pulibrary/bibdata/blob/a26c5d30aefa2ef3f19ad499bb3bae4348f0e7c2/app/adapters/alma_adapter/alma_item.rb#L178

sandbergja commented 1 year ago

The desired end result is that:

  1. The SCSB goes to https://bibdata.princeton.edu/barcode/[BARCODE_OF_SCSB_ITEM]/scsb
  2. If the alma endpoint @mzelesky documented has "committed_to_retain": { "value": "true", "desc": "Yes" }, bibdata will return a MARC record that includes an 876$xCommitted, rather than 876$xShared.
  3. If the alma endpoint doesn't have this committed_to_retain info, then keep the current behavior.
mzelesky commented 1 year ago

I updated the description with a ReCAP record to allow for better testing.

christinach commented 1 year ago

3. committed_to_retain

@mzelesky and I reviewed again the ticket and we should also consider the retention_reason with value "ReCAPItalianImprints". We expect to have more values in the future. Some values will not result in a "Committed" CGD. When a new value comes @mzelesky will create a ticket.

christinach commented 1 year ago

The desired end result is that:

  1. The SCSB goes to https://bibdata.princeton.edu/barcode/[BARCODE_OF_SCSB_ITEM]/scsb
  2. If the alma endpoint @mzelesky documented has "committed_to_retain": { "value": "true", "desc": "Yes" }, bibdata will return a MARC record that includes an 876$xCommitted, rather than 876$xShared.
  3. If the alma endpoint doesn't have this committed_to_retain info, then keep the current behavior.

@mzelesky and I reviewed again the ticket and we should also consider the retention_reason with value "ReCAPItalianImprints". We expect to have more values in the future. Some values will not result in a "Committed" CGD. When a new value comes @mzelesky will create a ticket.