Approach to update SRS MARC Records and corresponding inventory Instances
- UXPROD-2273Getting issue details... STATUS
- MODSOURMAN-262Getting issue details... STATUS
Requirements
Required to enable quickMarc updates.
Whenever an SRS MARC Bib record is updated, then the corresponding changes need to be made in the Instance fields that are controlled by the tenant's default map.
The default MARC Bib-Inventory Instance map may vary from tenant to tenant. Updates should be made based on the Instance fields mapped/controlled by the specific tenant's default map.
The FOLIO-supplied default MARC-Instance map: https://github.com/folio-org/mod-source-record-manager/blob/master/mod-source-record-manager-server/src/main/resources/rules/rules.json
Approach & Design
SRM exposes the following endpoints for quickMarc to retrieve the MARC record by instanceId and to save the updated MARC record:
Method | Path | Permissions | Request | Response | Description | Notes |
---|---|---|---|---|---|---|
GET | change-manager/parsedRecords?instanceId={instanceId} | change-manager.parsedrecords.get | NA | 200 OK | (A) GET MARC record | {instanceId} - corresponding Instance id |
PUT | /change-manager/parsedRecords/{id} | change-manager.parsed-records.put | Updated | 202 ACCEPTED | (B) Update MARC record | {id} - record id |