@@ -, +, @@ --- 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(-) --- a/Koha/Patron/Category.pm +++ a/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 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt @@ -361,6 +361,11 @@ [% ELSE %] [% END %] + [% IF category and category.BlockExpiredPatronOpacActions_contains('ill_request') %] + + [% ELSE %] + + [% END %]
--- a/koha-tmpl/intranet-tmpl/prog/js/categories.js +++ a/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 --