Done
Details
Details
Assignee
Denys Bohdan
Denys BohdanReporter
Brad Berkotte
Brad BerkotteLabels
Priority
Story Points
0
Sprint
None
Development Team
Spitfire
RCA Group
Not a bug
Affected releases
Orchid (R1 2023)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created November 13, 2023 at 3:30 AM
Updated November 20, 2023 at 2:41 PM
Resolved November 15, 2023 at 3:22 AM
In both our development and production environment we have issues using the unlink feature in the quickmark UI. The main issue here is that the save seems to hang and must be cancelled to exit the UI making and changes unsaved.
Very similar issues to this ticket: https://folio-org.atlassian.net/browse/UIQM-462
We saw this was tagged as cannot reproduce, our steps below.
Steps:
Log into ANY pre poppy folio environment.
Go to inventory app and find a record with a linked authority, preferably a protected authority.
Click actions and edit marc bibliographic record.
Go to relevant marc authority field.
Use the unlink feature.
A pop up should return confirming unlink or cancel.
Click unlink.
Should be returned to the quickmarc UI.
Attempt to save and close.
Expected result: Record should save and close with the unlinked marc field.
Current result: Record attempts to save, is unable to be saved and only way to exit the UI is to cancel the edited content.
Our linking Algorithm
For an input authority HRID (human readable ID), get the associated UUID (unique ID) and authority name from FOLIO.
For each instance HRID (Bib ID) that is associated with this authority in Voyager, get the current version of the instance (bibliographic) record from FOLIO.
Update the contents of its Marc 100 field, as long as it does not already contain the authority UUID, or an existing $0 or $9 subfield in the content field. This is to avoid updating a record which is already linked to an authority.
The existing content field must also contain the authority name as a substring. This is to avoid linking records which should not be linked.
If the checks above are passed, insert the authority HRID and UUID into new fields in the JSON for the 100 field.
In the "content" field in the JSON, insert a new $0 subfield which will contain the authority HRID. Insert a new $9 subfield (FOLIO specific), which will contain the authority UUID.
Insert the required "authorityControlledSubfields" field, and the appropriate "linkingRuleId" for the Marc 100 field.
Perform a HTTP PUT call to the FOLIO "records-editor" endpoint, with the contents of the updated record.
The field types for records which have the error
610
700
710
Note:
It has seemed near impossible to manually unlink the authority after the change. For some records the UI is unable to save the change and the browser reports a JS error, where "authorityControlledSubfields" is undefined.