Bug 40998

Summary: Fix batch authority deletions of linked authorities to either unlink or prevent the process
Product: Koha Reporter: Enica Davis <enica>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: angela.berrett, esther.melander, m.de.rooy, mspinney, phil
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Enica Davis 2025-10-10 16:10:35 UTC
When batch deleting authorities that are still linked to the records, the bibliographic MARC tags associated with those authorities are also deleted.

It would be helpful if:

a) Koha could automatically unlink these authorities upon batch deletion, preserving the bib MARC tags.

OR

b) Koha could prevent them from happening altogether.
Comment 1 Angela Berrett 2025-10-10 19:16:08 UTC
Could we make this a choice if we want the info in the bibs to be deleted? Sometimes we are deleting authorities because they are completely wrong and we want the info removed from the bib records.  I can see a use case for keeping that info in the bib records, too.  If we can have a toggle to say "delete all linked data" for it to erase what is in the bib records that would be really helpful with this enhancement.
Comment 2 Phil Ringnalda 2025-10-13 21:15:25 UTC
There is an option for b), just not very clear and easily forgotten: when you get to the step that lists all the things you are about to delete, clicking "Clear used authorities" unchecks the ones which are still linked.

*** This bug has been marked as a duplicate of bug 24125 ***