From e827353bb2b3d1c79ea1f32ea07287190fbc662e Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Fri, 1 Mar 2024 08:21:38 +0200 Subject: [PATCH] Bug 36135: Add links to the batch modify holds tool This patch adds links to new tool batch modify holds tool. To test: 1. Apply this patch. 2. Add patron permission "batch_modify_holds". 3. Login as chosen patron. 4. Navigate to Tools page. => Note there's a link "Batch modify holds". 5. Remove permission from user. => Link to new tool is not displayed. Sponsored-by: Koha-Suomi Oy Signed-off-by: Laura Escamilla --- koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc | 3 +++ .../intranet-tmpl/prog/en/modules/tools/tools-home.tt | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc index b106cffbea..8714deddf0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -40,6 +40,9 @@ [% IF ( CAN_user_tools_batch_extend_due_dates ) %]
  • Batch extend due dates
  • [% END %] + [% IF ( CAN_user_tools_batch_modify_holds ) %] +
  • Batch modify holds
  • + [% END %] [% IF ( CAN_user_tools_moderate_tags ) %]
  • Tags
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt index 86ee4426f6..b110a5ee05 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt @@ -30,7 +30,7 @@

    Tools

    - [% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons || CAN_user_tools_edit_patrons || CAN_user_tools_batch_extend_due_dates || CAN_user_tools_moderate_tags || CAN_user_tools_rotating_collections || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) ) %] + [% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons || CAN_user_tools_edit_patrons || CAN_user_tools_batch_extend_due_dates || CAN_user_tools_batch_modify_holds || CAN_user_tools_moderate_tags || CAN_user_tools_rotating_collections || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) ) %]

    Patrons and circulation

    [% END %]
    @@ -89,6 +89,12 @@
    Modify the due date checkouts in batch
    [% END %] + [% IF ( CAN_user_tools_batch_modify_holds ) %] +
    Batch modify holds
    +
    Modify holds in batch
    + [% END %] + + [% IF ( CAN_user_tools_moderate_tags ) %]
    Tags -- 2.30.2