Bugzilla – Attachment 166668 Details for
Bug 34597
Expired patrons can still place ILL requests through OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34597: Add 'ill_request' to patron category admin page
Bug-34597-Add-illrequest-to-patron-category-admin-.patch (text/plain), 2.75 KB, created by
David Nind
on 2024-05-14 07:21:19 UTC
(
hide
)
Description:
Bug 34597: Add 'ill_request' to patron category admin page
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-05-14 07:21:19 UTC
Size:
2.75 KB
patch
obsolete
>From ee1732c7f60b11133fab73cd71c1bb85b233a874 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 28 Mar 2024 11:26:58 +0000 >Subject: [PATCH] Bug 34597: Add 'ill_request' to patron category admin page > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/Patron/Category.pm | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt | 5 +++++ > koha-tmpl/intranet-tmpl/prog/js/categories.js | 1 + > 3 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/Koha/Patron/Category.pm b/Koha/Patron/Category.pm >index a7358c2acc..8a9a77a320 100644 >--- a/Koha/Patron/Category.pm >+++ b/Koha/Patron/Category.pm >@@ -46,7 +46,7 @@ Return if the provided action is blocked by BlockExpiredPatronOpacActions, accou > > =item action > >-Action, can be one of: ['hold', 'renew'] >+Action, can be one of: ['hold', 'renew', 'ill_request'] > > =back > >@@ -74,7 +74,7 @@ Return if the provided action is blocked by this category's BlockExpiredPatronOp > > =item action > >-Action, can be one of: ['hold', 'renew'] >+Action, can be one of: ['hold', 'renew', 'ill_request'] > > =back > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >index 215f41dba3..d1285f6d5b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >@@ -361,6 +361,11 @@ > [% ELSE %] > <option value="renew"> Renewing an item </option> > [% END %] >+ [% IF category and category.BlockExpiredPatronOpacActions_contains('ill_request') %] >+ <option value="ill_request" selected="selected"> Placing an ILL request </option> >+ [% ELSE %] >+ <option value="ill_request"> Placing an ILL request </option> >+ [% END %] > </optgroup> > </select> > <div class="hint"> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/categories.js b/koha-tmpl/intranet-tmpl/prog/js/categories.js >index 615e5554f7..65ec948afd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/categories.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/categories.js >@@ -133,6 +133,7 @@ $(document).ready(function () { > ) { > blocked_actions_select.multipleSelect("uncheck", "hold"); > blocked_actions_select.multipleSelect("uncheck", "renew"); >+ blocked_actions_select.multipleSelect("uncheck", "ill_request"); > } else if ( > view.value != "follow_syspref_BlockExpiredPatronOpacActions" && > view.selected >-- >2.39.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 34597
:
164052
|
164053
|
164054
|
164055
|
165415
|
165416
|
165417
|
165418
|
166563
|
166564
|
166668
|
166669
|
166670
|
166671
|
166672
|
167481
|
167482
|
167483
|
167484
|
167485
|
167486