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 <anke.bruns@gwdg.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2022-09-26 15:26:51 +00:00 committed by Tomas Cohen Arazi
parent c70e82ea4f
commit 0f2ebedcf1
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 13 additions and 5 deletions

View File

@ -39,7 +39,7 @@
<li><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch extend due dates</a></li>
[% END %]
[% IF ( CAN_user_tools_moderate_tags ) %]
<li><a href="/cgi-bin/koha/tags/review.pl">Tag moderation</a></li>
<li><a href="/cgi-bin/koha/tags/review.pl">Tags</a></li>
[% END %]
[% IF ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) %]
<li><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></li>
@ -73,8 +73,8 @@
[% END %]
[% IF ( CAN_user_tools_label_creator ) %]
<li><a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a></li>
<li><a href="/cgi-bin/koha/labels/spinelabel-home.pl">Quick spine label creator</a></li>
<li><a href="/cgi-bin/koha/labels/barcode-print.pl">Barcode image generator</a></li>
<li><a href="/cgi-bin/koha/labels/spinelabel-home.pl">Quick spine label creator</a></li>
[% END %]
[% IF ( CAN_user_tools_rotating_collections ) %]
<li><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a></li>
@ -83,7 +83,7 @@
<li><a href="/cgi-bin/koha/tools/stockrotation.pl">Stock rotation</a></li>
[% END %]
[% IF ( CAN_user_tools_marc_modification_templates ) %]
<li><a href="/cgi-bin/koha/tools/marc_modification_templates.pl">Manage MARC modification templates</a></li>
<li><a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC modification templates</a></li>
[% END %]
[% IF ( CAN_user_tools_stage_marc_import ) %]
<li><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC for import</a></li>
@ -124,7 +124,7 @@
<li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">Tool plugins</a></li>
[% END %]
[% IF ( CAN_user_tools_upload_general_files ) %]
<li><a href="/cgi-bin/koha/tools/upload.pl">Upload any file</a></li>
<li><a href="/cgi-bin/koha/tools/upload.pl">Uploads</a></li>
[% END %]
[% IF ( CAN_user_tools_access_files ) %]
<li><a href="/cgi-bin/koha/tools/access_files.pl">Access files</a></li>
@ -134,5 +134,13 @@
[% END %]
</ul>
[% END # /IF ( CAN_user_tools_edit_calendar... %]
[% IF ( Koha.Preference('UseCashRegisters') && ( CAN_user_cash_management_cashup || CAN_user_cash_management_anonymous_refund ) ) %]
<h5>Cash management</h5>
<ul>
<li><a href="/cgi-bin/koha/pos/registers.pl">Cash summary</a></li>
<li><a href="/cgi-bin/koha/pos/register.pl">Transaction history</a></li>
</ul>
[% END # /IF ( Koha.Preference('UseCashRegisters')... %]
</div> <!-- /#navmenulist -->
</div> <!-- /#navmenu -->

View File

@ -161,7 +161,7 @@
[% END # /IF ( plugins_enabled... %]
[% IF ( CAN_user_tools_upload_general_files ) %]
<dt><a href="/cgi-bin/koha/tools/upload.pl">Upload</a></dt>
<dt><a href="/cgi-bin/koha/tools/upload.pl">Uploads</a></dt>
<dd>Upload any type of file, manage uploads</dd>
[% END %]