Owen Leonard
822509eee5
This patch makes multiple changes to the plugins home page template to bring it up to date with current interface patterns. Test the following changes: - Breacrumb links have been corrected to include "Tools" in the path. Verify that this link is correct. - A toolbar has been added for an "Upload plugin" button. Uploading is an action, not a view, so it should be displayed in a toolbar. Verify that the button works correctly. - Messages are now formatted as messages rather than as headings. To test, trigger a message by, for instance, uninstalling all plugins or passing an invalid "method" parameter with the URL. - Incorrect capitalization corrected. - Plugin actions are moved to a single "Actions" dropdown menu. This includes 'Run report,' 'Run tool,' 'Configure,' and 'Uninstall.' Test that all these menu options work correctly. - The standard "Tools" sidebar menu has been added. - An "onclick" attribute has been removed in favor of defining the event in JavaScript. Test by choosing the 'Uninstall' menu item for a plugin. Test both confirm and cancel actions. Also changed: - Corrected capitalization on the tools home page. - Adding missing plugins link to the tools sidebar menu. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
126 lines
5.5 KiB
HTML
126 lines
5.5 KiB
HTML
<script type="text/javascript">//<![CDATA[
|
|
$(document).ready(function() {
|
|
var path = location.pathname.substring(1);
|
|
var url = window.location.toString();
|
|
var params = '';
|
|
if ( url.match(/\?(.+)$/) ) {
|
|
params = "?" + RegExp.$1;
|
|
}
|
|
if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
|
|
} else if (path.indexOf("patroncards") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold');
|
|
} else {
|
|
$('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold');
|
|
}
|
|
});
|
|
//]]>
|
|
</script>
|
|
<div id="navmenu">
|
|
<div id="navmenulist">
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/tools/tools-home.pl">Tools home</a></li>
|
|
</ul>
|
|
<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_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 & 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/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_moderate_tags ) %]
|
|
<li><a href="/cgi-bin/koha/tags/review.pl">Tag moderation</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_batch_upload_patron_images ) %]
|
|
<li><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></li>
|
|
[% END %]
|
|
</ul>
|
|
<h5>Catalog</h5>
|
|
<ul>
|
|
[% IF ( CAN_user_tools_items_batchdel ) %]
|
|
<li><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Batch item deletion</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_items_batchmod ) %]
|
|
<li><a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a></li>
|
|
[% END %]
|
|
[% IF CAN_user_tools_records_batchdel %]
|
|
<li><a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a></li>
|
|
[% END %]
|
|
[% IF CAN_user_tools_records_batchmod %]
|
|
<li><a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a></li>
|
|
[% END %]
|
|
[% IF CAN_user_tools_items_batchmod %]
|
|
<li><a href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">Automatic item modifications by age</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_export_catalog ) %]
|
|
<li><a href="/cgi-bin/koha/tools/export.pl">Export data</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_inventory ) %]
|
|
<li><a href="/cgi-bin/koha/tools/inventory.pl">Inventory/stocktaking</a></li>
|
|
[% 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>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_rotating_collections ) %]
|
|
<li><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</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>
|
|
[% 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>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_manage_staged_marc ) %]
|
|
<li><a href="/cgi-bin/koha/tools/manage-marc-import.pl">Staged MARC management</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_tools_upload_local_cover_images ) %]
|
|
<li><a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a></li>
|
|
[% END %]
|
|
</ul>
|
|
<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_news ) %]
|
|
<li><a href="/cgi-bin/koha/tools/koha-news.pl">News</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 ( UseKohaPlugins && 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">Upload any file</a></li>
|
|
[% END %]
|
|
</ul></div></div>
|