@@ -, +, @@ reports print layout --- .../bug_20679_-_add_reportRowsPerPage_syspref.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + .../en/modules/admin/preferences/web_services.pref | 6 ++++++ .../en/modules/reports/guided_reports_start.tt | 25 ++++++++++++---------- 4 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_20679_-_add_reportRowsPerPage_syspref.sql --- a/installer/data/mysql/atomicupdate/bug_20679_-_add_reportRowsPerPage_syspref.sql +++ a/installer/data/mysql/atomicupdate/bug_20679_-_add_reportRowsPerPage_syspref.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('reportRowsPerPage', '1', NULL, 'Show/hide the rows per page dropdown when running a report', 'YesNo'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -480,6 +480,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'), ('ReplyToDefault','',NULL,'Use this email address as the replyto in emails','Free'), ('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'), +('reportRowsPerPage', '1', NULL, 'Show/hide the rows per page dropdown when running a report', 'YesNo'), ('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'), ('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'), ('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref @@ -65,6 +65,12 @@ Web services: - pref: SvcMaxReportRows class: integer - rows of a report requested via the reports web service. + - + - pref: reportRowsPerPage + choices: + yes: Show + no: "Don't show" + - rows per page option when running a report. IdRef: - - pref: IdRef --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -714,17 +714,20 @@ canned reports and writing custom SQL reports.

[% END %] - - + [% IF ( Koha.Preference('reportRowsPerPage') ) %] + + + [% END %] +
[% pagination_bar | $raw %]
--