Bug 19664: Reports sidebar menu should match list of reports on reports home page
authorOwen Leonard <oleonard@myacpl.org>
Tue, 21 Nov 2017 13:31:49 +0000 (13:31 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Dec 2017 16:34:10 +0000 (13:34 -0300)
This patch makes the reports sidebar menu a little more consistent with
the reports home page menu by adding missing links to reports.

To test, observer the reports sidebar menu before and after the patch
and confirm that missing reports are linked in the update.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/reports-menu.inc

index 03b4b64..9ae019d 100644 (file)
@@ -1,6 +1,15 @@
 <h5>Guided reports</h5>
        <ul>
         <li><a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports</a></li>
+        [% IF ( CAN_user_reports_create_reports ) %]
+            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build new</a></li>
+        [% END %]
+        [% IF ( CAN_user_reports_execute_reports ) %]
+            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Use saved</a></li>
+        [% END %]
+        [% IF ( CAN_user_reports_create_reports ) %]
+            <li><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL">Create from SQL</a></li>
+        [% END %]
        </ul>
 
 <h5>Statistics wizards</h5>
         <li><a href="/cgi-bin/koha/reports/reserves_stats.pl">Holds</a></li>        
        </ul>
 
+    [% IF UseKohaPlugins %]
+        <h5>Report plugins</h5>
+        <ul>
+            <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">Report plugins</a></li>
+        </ul>
+    [% END %]
 
     <h5>Top lists</h5>
        <ul>
@@ -31,6 +46,7 @@
        <h5>Other</h5>
        <ul>
         <li><a href="/cgi-bin/koha/reports/itemslost.pl">Lost items</a></li>
+        <li><a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a></li>
         <li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by item type</a></li>
                <li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a></li>
        </ul>