Bugzilla – Attachment 183305 Details for
Bug 36135
Add tool to batch modify holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36135: Add batch_modify_holds permissions
Bug-36135-Add-batchmodifyholds-permissions.patch (text/plain), 3.10 KB, created by
Lucas Gass (lukeg)
on 2025-06-17 14:38:39 UTC
(
hide
)
Description:
Bug 36135: Add batch_modify_holds permissions
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-06-17 14:38:39 UTC
Size:
3.10 KB
patch
obsolete
>From 99e35ba32df0ad9cd311e5b854aff5b2024f77d0 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 17 Jun 2025 13:57:08 +0000 >Subject: [PATCH] Bug 36135: Add batch_modify_holds permissions > >Sponsored-by: Koha-Suomi Oy >--- > installer/data/mysql/atomicupdate/bug_36135.pl | 16 ++++++++++++++++ > .../data/mysql/mandatory/userpermissions.sql | 1 + > .../prog/en/includes/permissions.inc | 5 +++++ > 3 files changed, 22 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_36135.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_36135.pl b/installer/data/mysql/atomicupdate/bug_36135.pl >new file mode 100755 >index 00000000000..40aa318e1ec >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36135.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "36135", >+ description => "Add new permission batch_modify_holds", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{INSERT IGNORE permissions (module_bit, code, description) VALUES (13, 'batch_modify_holds', 'Perform batch modification of holds')} >+ ); >+ >+ say $out "Added new permission 'batch_modify_holds'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/userpermissions.sql b/installer/data/mysql/mandatory/userpermissions.sql >index d5121c91fd2..768aa9cee18 100644 >--- a/installer/data/mysql/mandatory/userpermissions.sql >+++ b/installer/data/mysql/mandatory/userpermissions.sql >@@ -112,6 +112,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > (13, 'edit_patrons', 'Perform batch modification of patrons'), > (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'), > (13, 'batch_extend_due_dates', 'Perform batch extend due dates'), >+ (13, 'batch_modify_holds', 'Perform batch modification of holds'), > (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'), > (13, 'schedule_tasks', 'Schedule tasks to run'), > (13, 'items_batchmod', 'Perform batch modification of items'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index a0e17a2d418..e42fcf8e67d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -368,6 +368,11 @@ > [%- CASE 'batch_extend_due_dates' -%] > <span class="sub_permission batch_extend_due_dates_subpermission"> Perform batch extend due dates </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'batch_modify_holds' -%] >+ <span class="sub_permission batch_modify_holds_subpermission"> >+ Perform batch modification of holds >+ </span> >+ <span class="permissioncode">([% name | html %])</span > [%- CASE 'edit_calendar' -%] > <span class="sub_permission edit_calendar_subpermission"> Define days when the library is closed </span> > <span class="permissioncode">([% name | html %])</span> >-- >2.39.5
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 36135
:
163021
|
163022
|
163023
|
163024
|
163529
|
163530
|
163540
|
163541
|
163542
|
163543
|
163544
|
163796
|
164037
|
164051
|
164057
|
164058
|
164059
|
164060
|
164061
|
164062
|
164063
|
177518
|
177519
|
177959
|
177960
|
177961
|
177962
|
177963
|
177964
|
177965
|
177966
|
177967
|
177968
|
177969
|
177975
|
177976
|
177981
|
177982
|
178154
|
178155
|
178156
|
178157
|
178158
|
178159
|
178160
|
178161
|
178162
|
178163
|
178164
|
178165
|
178166
|
178167
|
178954
|
179028
|
179029
|
179030
|
179031
|
179032
|
179033
|
179034
|
179035
|
179036
|
179037
|
179038
|
179039
|
179040
|
179041
|
179042
|
179081
|
179082
|
181049
|
183151
|
183294
|
183295
|
183296
|
183297
|
183298
|
183299
|
183300
| 183305 |
183306
|
183307
|
183308
|
183771