kohabug 2417 Removing hardcoded query limit from reports
authorChris Nighswonger <chris.nighswonger@liblime.com>
Mon, 4 Aug 2008 15:15:19 +0000 (10:15 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 4 Aug 2008 20:26:50 +0000 (15:26 -0500)
commit953a46a0888b38a3c34e1f01ee1a0e420d904273
tree448687f3c8b28eae4bc0c85aba738e5951d00c92
parent35b3df2e9558677f832f52bdb5b11aac6ef8e53c
kohabug 2417 Removing hardcoded query limit from reports

This patch removes a hardcoded 'LIMIT 20' which was added to all report queries
thus limiting all reports to only the first twenty rows of applicable data. In
its place this patch introduces code to paginate through all applicable data,
regardless of how many rows are available. The code will also honor any user
defined 'LIMIT' in reports based on SQL entered directly by the user.

This patch also adds column labels to 'tab' and 'csv' files generated by reports.
NOTE: Only user defined 'LIMIT's apply to 'tab,' 'csv,' and 'text' files.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Reports.pm
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tmpl
reports/guided_reports.pl