Bug 19502: (follow-up) Pass parameters to avoid making templates depend on search...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / tools-menu.inc
index 4ef2a8e..d3e03a9 100644 (file)
@@ -1,21 +1,3 @@
-<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>
@@ -26,6 +8,9 @@
     [% 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 %]
@@ -75,7 +60,7 @@
     <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>
+        <li><a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a></li>
     [% END %]
     [% IF ( CAN_user_tools_label_creator ) %]
        <li><a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a></li>
     [% 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 %]
+    [% IF ( CAN_user_tools_access_files ) %]
+    <li><a href="/cgi-bin/koha/tools/access_files.pl">Access files</a></li>
+    [% END %]
 </ul></div></div>