Bug 18891 - Download Reports Directly
Summary: Download Reports Directly
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Reports (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-03 18:55 UTC by Chris Slone
Modified: 2018-11-28 19:02 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Slone 2017-07-03 18:55:43 UTC
There should be an option to download a report directly, rather than having to run the report and then choose to download it (effectively running it twice). This would be especially helpful when dealing with reports that take a while to load, though it would also be convenient for reports that are run regularly for distribution and therefore really don't need to be previewed on the screen before downloading.
Comment 1 Owen Leonard 2018-02-07 12:43:21 UTC
As far as I can tell the main problem with implementing this is that before initiating a download, Koha has to have received any search parameters you're submitting along with the SQL. A direct download button would give you unlimited results in cases where runtime parameters are used.
Comment 2 Chris Slone 2018-02-09 17:46:43 UTC
(In reply to Owen Leonard from comment #1)
> As far as I can tell the main problem with implementing this is that before
> initiating a download, Koha has to have received any search parameters
> you're submitting along with the SQL. A direct download button would give
> you unlimited results in cases where runtime parameters are used.

I was thinking that too. Perhaps this can be addressed in two steps:

1.) Add a download link to the options menu (along with run, duplicate, etc...) there can be an option to download the report on the page where you set the parameters. 
   a.)If the report requires no parameters to be set before being run, then it would download it directly.
   b.) If parameters do need to be set it would continue on to the page where these may be entered

2.) Add an option next to the parameters page to download the report directly
Comment 3 Christopher Brannon 2018-11-28 18:53:45 UTC
How about on the parameters page, just put a button to download next to the Run the report button?
Comment 4 Chris Slone 2018-11-28 19:02:33 UTC
Thanks, Chris. I believe that's what I intended to suggest by 2.), but see that I didn't really type that (I believe I meant to type "add an option on the param..." instead of saying "next to"). 

I figure that we'd still need it as an option along with the run/show/etc... choices since not all reports require parameters to be entered before you run them (and hence wouldn't have a parameters page where one could choose to download or run).