Bug 16782: Disclose JSON URL for reports on the saved report page
authorLiz Rea <liz@catalyst.net.nz>
Thu, 19 Oct 2017 03:23:43 +0000 (16:23 +1300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 15 Jan 2018 15:36:34 +0000 (15:36 +0000)
commitafbbfce0eeafb8dc9703d9c7fa3c3a0434155cfb
tree89c01014e49cfb91d8e04a7e2cb767b03a41d557
parente1bfe98d856ca849a48c728118a9e05fcbe2b31c
Bug 16782: Disclose JSON URL for 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 report.
This patch works it out and displays it for you in a new column on the saved reports table.

Requirements:
- OPACBaseURL and staffClientBaseURL preferences must be set for the urls to be complete. It's ok if they are not, but it's better if they are.
- You must have a saved report that is public to your OPAC, and one that is not public.

To test:
- create a public saved report and a private staff report. They can be anything.
- view the saved reports page, note that under a new heading of JSON URL the link to the json feed for that report shows.
- copying and pasting that link into the address bar, or clicking it, should take you to the results of the selected report.

sponsored-by: Catalyst IT

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Bug 16782 - missing </td>, fixed now

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt