sul-dlss / dor-services-app

A Rails application exposing Digital Object Registry functions as a RESTful HTTP API
https://sul-dlss.github.io/dor-services-app/
Other
3 stars 2 forks source link

Add FOLIO HRIDs to Lane records with catkeys #4335

Closed arcadiafalcone closed 1 year ago

arcadiafalcone commented 1 year ago

Currently Lane objects in SDR use the Symphony catkey for their source records. However, Lane records will be migrated to FOLIO not from Symphony, but from their own Voyager ILS, and their FOLIO HRIDs will derive from the Voyager identifier. In order to maintain the link between the digital object and the Lane source record, the Voyager identifier must be used to generate the corresponding FOLIO HRID.

The Lane Voyager identifier is entered in the 001 field of the Symphony MARC record (note that this is not true in the SearchWorks Librarian View of MARC).

To generate Lane FOLIO HRIDs:

  1. Get report of Lane (or potentially-Lane) objects in the SDR with catkeys. (see #4334)
  2. Get MARC records in Symphony from catkeys.
  3. If MARC 001 value starts with LL, generate the FOLIO HRID by replacing LL with L.
  4. Add the FOLIO HRID to Cocina with same refresh status as the Symphony catkey used for the lookup.

Example (12208745/by152np7439) MARC: 001 LL235413 Cocina:

"identification": {
        "catalogLinks": [
           {
                "catalog": "folio",
                "refresh": true,
                "catalogRecordId": "L235413"
            }
        ],
        "sourceId": "lane:H154H_F61"
    }
arcadiafalcone commented 1 year ago

Superseded by #4388