Update of linked and protected field via "Data import" leads to link deletion
Description
CSP Request Details
CSP Rejection Details
Potential Workaround
Attachments
blocks
defines
relates to
Checklist
hideTestRail: Results
Activity

Valery_Pilko March 31, 2023 at 5:40 PM
Verified on Orchid BF environment - work as expected (same as on Snapshot).
I'm closing this jira.
cc:

Valery_Pilko March 28, 2023 at 6:07 PM
Here are the test results:
Test 1 - Edit protected and linked fields using update MARC Bib profile:
Fixed, links don't delete after update or protected and repeatable linked field.
See attached screencasts:
Note: handling of $9 should be fixed in scope of (Poppy). It will fix the issue when duplicated field looks like linked on UI (see screenshot).
Test 2 - Can't delete protected and linked fields using update MARC Bib profile
Fixed, links don't delete after deleting protected and linked fields in uploaded file.
See attached screencast:
Test 3 - Use "Overlay source bibliographic record" on record which has linked and protected fields
Fixed, linked and protected fields were not updated (remain links)
See attached screencast:
Test 4 - Edit protected and linked fields using update MARC Bib profile with ignoring field protection setting.
Works as expected, handling of $9 should be fixed in scope of (Poppy). It will fix the issue when duplicated field looks like linked on UI.
See attached screencast:

Khalilah Gambrell March 27, 2023 at 4:58 PM
Thanks - should we create user stories for the issues that did not pass.

Valery_Pilko March 27, 2023 at 11:45 AMEdited
HI ,
There are the testing results:
Test 1 - Edit protected and linked fields using update MARC Bib profile
Protected fields | Existing record | Record that was used for update | Expected result | Actual result | Passed? |
---|---|---|---|---|---|
"100 * * 0 *" | Linked: | 1) Edit controlled and not controlled subfields of 100 field ($a and $e). | 1) "100" didn't change | 1) "100" didn't change | 1-3) Yes |
Test 2 - Edit protected and linked fields using update MARC Bib profile
Protected fields | Existing record | Record that was used for update | Expected result | Actual result | Passed? |
---|---|---|---|---|---|
"100 * * 0 *" | Linked: | Delete linked and protected fields: "100" and "700". | No changes to existing record | Links were deleted on BE for "100" and "700" fields | No |
Test 3 - Use "Overlay source bibliographic record" on record which has linked and protected fields
Protected fields | Existing record | Record that was used for update | Expected result | Actual result | Passed? |
---|---|---|---|---|---|
"100 * * 0 *" | Linked: | Use "Overlay source bibliographic record" with following OCLC: | 1) "100" didn't change | 1 - 3) as expected
| 1-3) Yes |
Test 4 - Edit protected and linked fields using update MARC Bib profile with ignoring field protection setting.
Protected fields | Existing record | Record that was used for update | Expected result | Actual result | Passed? |
---|---|---|---|---|---|
"100 * * 0 *" | Linked: | 1) Edit controlled and not controlled subfields of 100 field ($a and $e). | 1) "100" updated | 1) "100" updated | 1,2) Yes |
UPD: I've used these files for testing:

Khalilah Gambrell March 24, 2023 at 4:06 PM
Thanks . QA team and I will create documentation.
Details
Details
Assignee
Reporter

Overview: The link between protected field of "MARC bibliographic" and "MARC authority" record will be deleted if update this field via "Data import".
Precondition:
1. Following rule must be configured in the "MARC field protection" pane:
"100 * * * *"
2. Following links should be created:
2.1. 100 and 700 fields of "MARC Bibliographic" (
) record with "MARC authority" record (
)
Steps to Reproduce:
Log into Orchid Bugfest FOLIO environment as User with following permissions:
Data import: Can upload files, import, and view logs
Inventory: All permissions
MARC Authority: View MARC authority record
quickMARC: Can Link/unlink authority records to bib records
quickMARC: View, edit MARC bibliographic record
Settings (Data import): Can view, create, edit, and remove
UI: Data export module is enabled
Open "Instance" record with linked and protected field via "Inventory" app.
Export "Instance" record by clicking on "Actions" on second pane >> "Export instances (MARC)"
Go to "Data export" and download the exported record.
Open downloaded via "MarcEdit"
Update:
"100" field (which is linked and protected)
"245" field
"700" field (which is linked only).
Save the record >> Upload it via "Data import" using "Update MARC Bib records by matching 999 ff $s subfield value" job profile.
Open the updated record via "quickmarc" in "Inventory".
Expected Results: Linked and protected field remain link and doesn't change. Only "245" field is updated.
Actual Results:
1) Link was deleted from "100" field and it's displayed as linked because if this issue
2) "245" field is updated.
3) "700" field remains the link and wasn't updated.
Additional Information:
1) See attached screencast for the case with not repeatable field:
2) In the case of repeatable field (for example "700") original field will be duplicated and unlinked on back-end.
See attached screencast:
Interested parties: