From 2f9ae8bc1a9c8ba2d6773fa2574f12017fbc111f Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Wed, 17 Dec 2025 12:52:17 +0200 Subject: [PATCH 2/2] Bug 35953: Allow patron with delete_bibliographic_records permission to delete records with Batch item deletion tool Bug 39848 blocked patrons without edit_catalogue permission from deleting bibliographic records with Batch item deletion tool. This can be problematic for those libraries who want to allow their staff to delete records without giving them permission to edit records. This patch allows patrons with delete_bibliographic_records to delete bibliographic record with Batch item deletion tool. To test: 1. Add permission delete_bibliographic_records and items_batchdel for patron. 2. Navigate to Batch item deletion tool, provide barcodes for items to delete and press "Continue". => When lisst of items to delete is loaded note that option to delete records if no items remain is not displayed. 3. Apply this patch and refresh the page. => Note that option to delete the record is now displayed. Sponsored-by: Koha-Suomi Oy --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index 422c665cf5..a25998ce10 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -174,7 +174,7 @@

This will delete [% IF ( too_many_items_display ) %]all the[% ELSE %]the selected[% END %] items.

- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] + [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_delete_bibliographic_records ) %]
-- 2.34.1