Bug 34597: Add 'ill_request' to patron category admin page

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Pedro Amorim 2024-03-28 11:26:58 +00:00 committed by Martin Renvoize
parent 6307b35fa1
commit 79b95d0b53
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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">

View File

@ -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