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

Environment

None

Potential Workaround

None

Attachments

16

Checklist

hide

Activity

Show:

Tetiana Kovalchuk October 23, 2024 at 10:20 AM

Tested on rld env.

Build version: #663

Test cases and evidences attached.

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).

Tested for 100 - Person, 100 - Concept/Person, 100(ind1=3) - Family, 100 (ind1=3) - Concept/Family, 110 - Organization, 110 - Concept/Organization, 111 - Meeting, 111 - Concept/Meeting.

Tetiana Kovalchuk October 8, 2024 at 10:57 AM

The following scenario requires investigation:

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.

cc

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Citation

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created September 13, 2024 at 1:44 PM
Updated November 21, 2024 at 10:42 PM
Resolved October 24, 2024 at 9:07 PM
TestRail: Cases
TestRail: Runs