@@ -, +, @@ --- .../mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + .../intranet-tmpl/prog/en/modules/admin/preferences/tools.pref | 6 ++++++ .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 2 ++ 4 files changed, 10 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql --- a/installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql +++ a/installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('NumSavedReports', '20', NULL, 'By default, show this number of saved reports.', 'Integer'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -285,6 +285,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('NovelistSelectStaffView','tab','tab|above|below','Where to display Novelist Select content in the staff client','Choice'), ('NovelistSelectView','tab','tab|above|below|right','Where to display Novelist Select content','Choice'), ('numReturnedItemsToShow','20',NULL,'Number of returned items to show on the check-in page','Integer'), +('NumSavedReports', '20', NULL, 'By default, show this number of saved reports.', 'Integer'), ('numSearchResults','20',NULL,'Specify the maximum number of results to display on a page of results','Integer'), ('numSearchRSSResults','50',NULL,'Specify the maximum number of results to display on a RSS page of results','Integer'), ('OAI-PMH','0',NULL,'if ON, OAI-PMH server is enabled','YesNo'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref @@ -32,3 +32,9 @@ Tools: - pref: UploadPurgeTemporaryFilesDays class: integer - "days in cleanup_database cron job. NOTE: If you leave this field empty, the cron job will not delete any files. On the other hand a value of 0 means: delete all temporary files." + Reports: + - + - By default, show + - pref: NumSavedReports + class: integer + - reports on the Saved Reports page. --- 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 @@ -1,4 +1,5 @@ [% USE KohaDates %] +[% USE Koha %] [%- BLOCK area_name -%] [%- SWITCH area -%] @@ -86,6 +87,7 @@ $("#delColumn").on("click",function(){ [% IF (saved1) %] var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { + 'iDisplayLength': [% Koha.Preference('NumSavedReports') %], 'bAutoWidth': false, 'sPaginationType': 'four_button', 'aaSorting': [[ 1, "asc" ]], --