Bug 41828

Summary: New Permission for Deleting Records in Batch Delete if no Items Remain
Product: Koha Reporter: Avery Campbell (Butte County Library (CA)) <acampbell>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: emmi.takkinen, m.de.rooy
Version: 25.05   
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 Avery Campbell (Butte County Library (CA)) 2026-02-12 01:24:41 UTC
Bug 39848 fixed the issue where users without edit_catalogue permission can delete the record if no items remain from the batch item deletion. We and some others (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39848#c7) however have need where we do want staff to be able to delete records when no items remain during batch deletion. Can there be a new permission to allow record deletions the record if no items remain from the batch item deletion? 

Edit_catalog (per manual): importing records through z39.50/SRU, and duplicating records), edit existing bibliographic records, merge existing bibliographic records, and delete bibliographic records

New permission (maybe no_items_delete_record?): remove record if no items remain.
         I also know that a button can appear when manually (not batch) removing items and the last item has appeared -- something like 'No more items remain. Delete Record?'. Maybe we could have that permission turned on with this permission too since it does the same thing as the checkbox when batch deleting.
Comment 1 Emmi Takkinen 2026-02-12 10:35:01 UTC
Please take a look at bug 35953. The second patch covers this issue and allows patrons with suggested new permission delete_bibliographic_records and items_batchdel permission to delete biblio record if no items remain.