Bugzilla – Attachment 179226 Details for
Bug 31698
Add ability to move a hold to a new bibliographic record/item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31698: Add alter_hold_targets permission
Bug-31698-Add-alterholdtargets-permission.patch (text/plain), 3.06 KB, created by
Lucas Gass (lukeg)
on 2025-03-12 17:31:03 UTC
(
hide
)
Description:
Bug 31698: Add alter_hold_targets permission
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-03-12 17:31:03 UTC
Size:
3.06 KB
patch
obsolete
>From 6b5de1f1fd035554299015da53a23fde79d29f11 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 12 Mar 2025 17:30:24 +0000 >Subject: [PATCH] Bug 31698: Add alter_hold_targets permission > >--- > .../data/mysql/atomicupdate/bug_31698.pl | 20 +++++++++++++++++++ > .../data/mysql/mandatory/userpermissions.sql | 1 + > .../prog/en/includes/permissions.inc | 3 +++ > 3 files changed, 24 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_31698.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_31698.pl b/installer/data/mysql/atomicupdate/bug_31698.pl >new file mode 100755 >index 00000000000..7ca94bcb7e0 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_31698.pl >@@ -0,0 +1,20 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "31698", >+ description => "Add a new permission for moving holds", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{ >+ INSERT IGNORE permissions (module_bit, code, description) VALUES (6, 'alter_hold_targets', 'Move holds between items and records') >+ >+ } >+ ); >+ say $out "Added new permission 'alter_hold_targets'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/userpermissions.sql b/installer/data/mysql/mandatory/userpermissions.sql >index 1d8b7d034f2..055565087c7 100644 >--- a/installer/data/mysql/mandatory/userpermissions.sql >+++ b/installer/data/mysql/mandatory/userpermissions.sql >@@ -51,6 +51,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'), > ( 6, 'place_holds', 'Place holds for patrons'), > ( 6, 'modify_holds_priority', 'Modify holds priority'), >+ ( 6, 'alter_hold_targets', 'Move holds between items and records'), > ( 9, 'edit_catalogue', 'Edit catalog (Modify bibliographic/holdings data)'), > ( 9, 'fast_cataloging', 'Fast cataloging'), > ( 9, 'advanced_editor', 'Use the advanced cataloging editor (requires edit_catalogue)'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index 4ca590e4b8d..f2243097854 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -245,6 +245,9 @@ > [%- CASE 'place_holds' -%] > <span class="sub_permission place_holds_subpermission"> Place holds for patrons </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'alter_hold_targets' -%] >+ <span class="sub_permission place_holds_subpermission"> Move holds between items and records </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- CASE 'delete_all_items' -%] > <span class="sub_permission delete_all_items_subpermission"> Delete all items at once </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 31698
:
179226
|
179235
|
179236
|
179279
|
179287
|
179290
|
179291
|
179292
|
179295
|
179704
|
179711
|
179713
|
181222
|
181223
|
181224
|
181225
|
181226
|
181228
|
181229
|
181230
|
181231
|
181232
|
181233
|
181234
|
181929
|
181930
|
181944
|
181945
|
181946
|
181947
|
181948
|
181951
|
181952
|
181953
|
181954
|
181955
|
181956
|
181957
|
181958
|
181959
|
181960
|
181961
|
181962
|
182639
|
182640
|
182641