diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 4566e72a95..aa0aaf2359 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1605,6 +1605,7 @@ return e; }); var CAN_user_reserveforothers_modify_holds_priority = [%CAN_user_reserveforothers_modify_holds_priority ? 1 : 0 | html %]; + var CAN_user_recalls = [%CAN_user_recalls ? 1 : 0 | html %]; var borrowernumber = "[% patron.borrowernumber | $raw %]"; var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]"; var override_items = {[% FOREACH biblio_info IN biblioloop %][% FOREACH itemloo IN biblio_info.itemloop %][% IF ( itemloo.override ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index ed6e80cb19..a6d9ee2fc1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -1983,9 +1983,11 @@ async function load_patron_holds_table(biblio_id, split_data) { $("#convert_hold_alert").html( MSG_CONVERT_ALERT.format(selectedCount, selectedCount) ); - $(".convert_selected_holds").html( - MSG_RECALL_SELECTED.format(selectedCount) - ); + if (CAN_user_recalls) { + $(".convert_selected_holds").html( + MSG_RECALL_SELECTED.format(selectedCount) + ); + } if (selectedCount > 0) { $("#cancel_hold_alert").show(); $("#convert_hold_alert").show();