Bugzilla – Attachment 164057 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 new permission batch_modify_holds
Bug-36135-Add-new-permission-batchmodifyholds.patch (text/plain), 3.21 KB, created by
Lucas Gass (lukeg)
on 2024-03-28 14:12:53 UTC
(
hide
)
Description:
Bug 36135: Add new permission batch_modify_holds
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-03-28 14:12:53 UTC
Size:
3.21 KB
patch
obsolete
>From f847078cf40f86d47777164c58b4987a54341d6b Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Wed, 28 Feb 2024 10:39:35 +0200 >Subject: [PATCH] Bug 36135: Add new permission batch_modify_holds > >This patch adds new permission "batch_modify_holds". > >To test: >1. Apply this patch. >2. Run updatedatabase.pl. >3. Check that new permission was added to Patrons->Set permissions. > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > installer/data/mysql/atomicupdate/bug_36135.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/userpermissions.sql | 1 + > .../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ > 3 files changed, 20 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 0000000000..4bd58cbac7 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36135.pl >@@ -0,0 +1,14 @@ >+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 729c075548..70ab856377 100644 >--- a/installer/data/mysql/mandatory/userpermissions.sql >+++ b/installer/data/mysql/mandatory/userpermissions.sql >@@ -104,6 +104,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 742e6e1c35..0f31798f18 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -512,6 +512,11 @@ > 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 >-- >2.30.2
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