Bug 38784

Summary: Authority does not update in basic editor when manually linking
Product: Koha Reporter: Esther Melander <esther.melander>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: 24.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: bibliographic record to use for testing
Example authority to use for testing

Description Esther Melander 2024-12-24 17:34:47 UTC
Created attachment 175936 [details]
bibliographic record to use for testing

To replicate:

Ensure the authority module is setup and configured.

AutoLinkBiblios is set to DO
CatalogModuleRelink is set to DO
LinkerKeepStale is set to Don't
LinkerRelink is set to Do
AuthorityMergeLimit is set to 50
AuthorityMergeMode is loose
AutoCreateAuthorities is don't generate

1. Have a bibliographic record with an authority for a personal name that includes a date. Have a corresponding authority record that does not include the date in the authority. (examples uploaded).
2. Edit the bibliographic record in the basic editor.
3. Use the tag editor to search for the authority and link it to the authority record.
4. See the authority record number in subfield 9. Also notice the authority record is not updated to remove the date.
5. Save the record.
6. View the bibliographic record in the normal view and see the authority link was not saved.

Repeat the above steps, but use the Advanced Editor instead. Notice the authority heading is updated in the editor to match the authority record. Save and see the authority link is correctly saved.

I would expect the basic editor to behave the same as the Advanced Editor. Tested this in 24.05, 23.11, and 23.05.

Also tested with setting LinkerKeepStale set to DO. With this enabled the link created in the Basic Editor will be retained, but the heading will not be updated. The heading will still be updated in the Advanced Editor.

There are likely a few different things happening. The primary thing to note is the difference in behavior between the basic and advanced editors when manually linking. Whether the heading is updated or not may be a matter of preference. Regardless, the link should have been saved in the basic editor.
Comment 1 Esther Melander 2024-12-24 17:35:25 UTC
Created attachment 175937 [details]
Example authority to use for testing