Koha/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
Martin Renvoize b2fdd8f745
Bug 31417: Update and reference cat-menu.inc
This patch reinstates the cat-menu.inc include and references it from
the various 'tools' that are closely tied to cataloging.

We use the new cataloging home page submission as a reference for which
options should appear in the menu.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-18 10:28:34 -03:00

100 lines
6.3 KiB
HTML

[% USE Koha %]
[% USE Branches %]
[% USE Registers %]
<div id="navmenu">
<div id="navmenulist">
<ul>
<li><a href="/cgi-bin/koha/tools/tools-home.pl">Tools home</a></li>
</ul>
[% 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_moderate_tags || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) || CAN_user_tools_rotating_collections ) %]
<h5>Patrons and circulation</h5>
<ul>
[% IF ( CAN_user_tools_manage_patron_lists ) %]
<li><a href="/cgi-bin/koha/patron_lists/lists.pl">Patron lists</a></li>
[% END %]
[% IF (CAN_user_clubs) %]
<li><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a></li>
[% END %]
[% IF ( CAN_user_tools_moderate_comments ) %]
<li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a></li>
[% END %]
[% IF ( CAN_user_tools_import_patrons ) %]
<li><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></li>
[% END %]
[% IF ( CAN_user_tools_edit_notices ) %]
<li><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></li>
[% END %]
[% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
<li><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></li>
[% END %]
[% IF ( CAN_user_tools_label_creator ) %]
<li><a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a></li>
[% END %]
[% IF ( CAN_user_tools_delete_anonymize_patrons ) %]
<li><a href="/cgi-bin/koha/tools/cleanborrowers.pl">Batch patron deletion and anonymization</a></li>
[% END %]
[% IF ( CAN_user_tools_edit_patrons ) %]
<li><a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a></li>
[% END %]
[% IF ( CAN_user_tools_batch_extend_due_dates ) %]
<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">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>
[% END %]
[% IF ( CAN_user_tools_rotating_collections ) %]
<li><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a></li>
[% END %]
</ul>
[% END # /IF ( CAN_user_tools_items_batchdel... %]
[% IF ( CAN_user_tools_edit_calendar || CAN_user_tools_manage_csv_profiles || CAN_user_tools_view_system_logs || CAN_user_tools_edit_additional_contents || CAN_user_tools_schedule_tasks || CAN_user_tools_edit_quotes || ( Koha.ArePluginsEnabled() && CAN_user_plugins_tool ) || CAN_user_tools_upload_general_files || CAN_user_tools_access_files ) %]
<h5>Additional tools</h5>
<ul>
[% IF ( CAN_user_tools_edit_calendar ) %]
<li><a href="/cgi-bin/koha/tools/holidays.pl">Calendar</a></li>
[% END %]
[% IF ( CAN_user_tools_manage_csv_profiles ) %]
<li><a href="/cgi-bin/koha/tools/csv-profiles.pl">CSV profiles</a></li>
[% END %]
[% IF ( CAN_user_tools_view_system_logs ) %]
<li><a href="/cgi-bin/koha/tools/viewlog.pl">Log viewer</a></li>
[% END %]
[% IF ( CAN_user_tools_edit_additional_contents ) %]
<li><a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a></li>
<li><a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a></li>
<li><a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a></li>
[% END %]
[% IF ( CAN_user_tools_schedule_tasks ) %]
<li><a href="/cgi-bin/koha/tools/scheduler.pl">Task scheduler</a></li>
[% END %]
[% IF ( CAN_user_tools_edit_quotes ) %]
<li><a href="/cgi-bin/koha/tools/quotes.pl">Quote editor</a></li>
[% END %]
[% IF ( plugins_enabled && CAN_user_plugins_tool ) %]
<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">Uploads</a></li>
[% END %]
[% IF ( CAN_user_tools_access_files ) %]
<li><a href="/cgi-bin/koha/tools/access_files.pl">Access files</a></li>
[% END %]
[% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports ) %]
<li><a href="/cgi-bin/koha/tools/problem-reports.pl">OPAC problem reports</a></li>
[% 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 for [% Branches.GetLoggedInBranchname | html %]</a></li>
<li><a href="/cgi-bin/koha/pos/register.pl">Transaction history for [% Registers.session_register_name | html %]</a></li>
</ul>
[% END %]
</div> <!-- /#navmenulist -->
</div> <!-- /#navmenu -->