From 5a1ab422365c54e744aab8b243684e2762aeed4d Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Thu, 19 Oct 2017 16:23:43 +1300 Subject: [PATCH] Bug 16782 - disclose URL for public reports on the saved report page It has always annoyed me that you had to look at the help to divine the url for a public report. This patch works it out and displays it for you. Requirements: - OPACBaseURL must be set for the url to be complete. It's ok if it's not, but it's better if it is. - You must have a saved report that is public to your OPAC. To test: - create a public saved report. It can be anything. - view the saved reports page, note that under Public it says: Avaliable at (opacbaseurl)/cgi-bin/koha/svc/report?id=1 - clicking it should take you to the public results of your report. sponsored-by: Catalyst IT --- koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 5902b92..4aece72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -420,7 +420,7 @@ canned reports and writing custom SQL reports.

[% savedreport.last_modified | $KohaDates with_hours => 1 %] [% savedreport.last_run | $KohaDates with_hours => 1 %] [% IF (savedreport.public) %] - Yes + Avaliable at [% OPACBaseURL %]/cgi-bin/koha/svc/report?id=[% savedreport.id | html %] [% ELSE %] No [% END %] -- 2.7.4