From 479323612e0c4c7ed3ba9b8365f95e94e462a490 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 26 Sep 2022 15:26:51 +0000 Subject: [PATCH] Bug 31402: Update tools sidebar to match tools start page This patch updates the tools sidebar so that it better matches the tools home page: - Sidebar menu should say Tags instead of Tag moderation - Barcode image generator and Quick spine label creator links reversed. - Upload any file -> Uploads - Cash management section is added to sidebar using brief text This patch does not make changes to the way plugins are displayed in the sidebar. In order for the sidebar to correctly display according to the presence of tool plugins I think some kind of global variable would need to be set. Signed-off-by: Anke Bruns Signed-off-by: Katrin Fischer --- .../prog/en/includes/tools-menu.inc | 16 ++++++++++++---- .../prog/en/modules/tools/tools-home.tt | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) 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 849b17120c..93328b2d06 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -39,7 +39,7 @@
  • Batch extend due dates
  • [% END %] [% IF ( CAN_user_tools_moderate_tags ) %] -
  • Tag moderation
  • +
  • Tags
  • [% END %] [% IF ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) %]
  • Upload patron images
  • @@ -73,8 +73,8 @@ [% END %] [% IF ( CAN_user_tools_label_creator ) %]
  • Label creator
  • -
  • Quick spine label creator
  • Barcode image generator
  • +
  • Quick spine label creator
  • [% END %] [% IF ( CAN_user_tools_rotating_collections ) %]
  • Rotating collections
  • @@ -83,7 +83,7 @@
  • Stock rotation
  • [% END %] [% IF ( CAN_user_tools_marc_modification_templates ) %] -
  • Manage MARC modification templates
  • +
  • MARC modification templates
  • [% END %] [% IF ( CAN_user_tools_stage_marc_import ) %]
  • Stage MARC for import
  • @@ -124,7 +124,7 @@
  • Tool plugins
  • [% END %] [% IF ( CAN_user_tools_upload_general_files ) %] -
  • Upload any file
  • +
  • Uploads
  • [% END %] [% IF ( CAN_user_tools_access_files ) %]
  • Access files
  • @@ -134,5 +134,13 @@ [% END %] [% END # /IF ( CAN_user_tools_edit_calendar... %] + + [% IF ( Koha.Preference('UseCashRegisters') && ( CAN_user_cash_management_cashup || CAN_user_cash_management_anonymous_refund ) ) %] +
    Cash management
    + + [% END # /IF ( Koha.Preference('UseCashRegisters')... %] 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 5aee6ec6f3..d82267cc2f 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 @@ -161,7 +161,7 @@ [% END # /IF ( plugins_enabled... %] [% IF ( CAN_user_tools_upload_general_files ) %] -
    Upload
    +
    Uploads
    Upload any type of file, manage uploads
    [% END %] -- 2.30.2