Update datagraph when MARC authority record is updated
Description
Overview
Authority resources in Data graph should be kept in sync with the corresponding MARC authority record in SRS. When a MARC authority record is updated in SRS, the corresponding authority resource in data graph also should be updated.
Scenario 1: Changes in MARC record results in creation of a new authtority resource new fingerprint.
Current state of graph:
Folio Metadata
resource_id
inv_id
srs_id
1000
inv_1234567890
srs_1234567890
New MARC record & proposed state of graph:
010 $a n123456789
010 $a John Doe $d 1924-2024
999 $i inv_1234567890 $s srs_1234567890
The actual value of the “redirect” predicate is: https://bibfra.me/vocab/lite/replacedBy
Folio Metadata
resource_id
inv_id
srs_id
1001
inv_1234567890
srs_1234567890
This is applicable for any authority record - 100, 110, 111, 155
Scenario 2: Changes in MARC record do not result in fingerprint change
Data from incoming MARC will be merged to existing resource
On BE verified that non-fingerprint fields update results into properties merge; fingerprint fields update sets "http://library.link/vocab/resourcePreferred" = false for original authority record and "https://bibfra.me/vocab/lite/replacedBy" edge created with a ID of a new (updated) authority resource.
On FE verified that UI data on Search and linked authority records on Work edit form are updated after authority records edited in MARC Authority app (according to attached TC).
Create Work, create Authority record, Assign created authority record to Work “Creator”;
Go to MARC authority and update fingerprint fields → Save
Re-open Work resource and Check “Creator”
AR: Authority record is not linked anymore.
ER: Authority record should be linked and display updated values
Tetiana Kovalchuk October 7, 2024 at 3:19 PM
When merge of properties takes place (for non-fingerprint fields), the “resourcePreferred” field has different values:
Pavel Bobylev October 1, 2024 at 12:20 PM
Please consider including such proposal in this task for visibility sake:
We could change our API used by the FrontEnd, making it return not an authority linked to a bib resource, but substitute of it with latest version. No additional effort is required, it’s in review already.
Overview
Authority resources in Data graph should be kept in sync with the corresponding MARC authority record in SRS. When a MARC authority record is updated in SRS, the corresponding authority resource in data graph also should be updated.
Scenario 1: Changes in MARC record results in creation of a new authtority resource new fingerprint.
Current state of graph:
Folio Metadata
resource_id
inv_id
srs_id
1000
inv_1234567890
srs_1234567890
New MARC record & proposed state of graph:
010 $a n123456789
010 $a John Doe $d 1924-2024
999 $i inv_1234567890 $s srs_1234567890
The actual value of the “redirect” predicate is:
https://bibfra.me/vocab/lite/replacedBy
Folio Metadata
resource_id
inv_id
srs_id
1001
inv_1234567890
srs_1234567890
This is applicable for any authority record - 100, 110, 111, 155
Scenario 2: Changes in MARC record do not result in fingerprint change
Data from incoming MARC will be merged to existing resource