Bugzilla – Attachment 191246 Details for
Bug 35953
Add delete_any_record cataloguing subpermission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35953: Allow patron with delete_bibliographic_records permission to delete records with Batch item deletion tool
0002-Bug-35953-Allow-patron-with-delete_bibliographic_rec.patch (text/plain), 2.25 KB, created by
Emmi Takkinen
on 2026-01-12 09:39:19 UTC
(
hide
)
Description:
Bug 35953: Allow patron with delete_bibliographic_records permission to delete records with Batch item deletion tool
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2026-01-12 09:39:19 UTC
Size:
2.25 KB
patch
obsolete
>From 2f9ae8bc1a9c8ba2d6773fa2574f12017fbc111f Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >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 @@ > <input type="hidden" name="op" value="[% op | html %]" /> > <p>This will delete [% IF ( too_many_items_display ) %]all the[% ELSE %]the selected[% END %] items.</p> > <input type="hidden" name="del" value="1" /> >- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_delete_bibliographic_records ) %] > <div style="display: flex; flex-direction: column; gap: 5px;"> > <div> > <input type="checkbox" name="del_records" id="del_records" /> >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35953
:
161720
|
161859
|
162129
|
162402
|
190281
|
190282
|
190283
|
191245
| 191246