@@ -, +, @@ patroncards/add_user_search (common/patron_search.tt). observe that that value is not in the per page drop down. and that value is selected by default. PatronsPerPage system preference. --- .../prog/en/modules/patroncards/edit-batch.tt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt @@ -250,6 +250,21 @@ }; $(document).ready(function() { + // Prepare DataTables settings + var aLengthMenu = [10, 20, 50, 100, -1]; + var aLengthMenuLabel = [10, 20, 50, 100, _("All")]; + var patronsPerPage = [% Koha.Preference('PatronsPerPage') | html %]; + for ( var i = 0; i < aLengthMenu.length; i++ ) { + if ( aLengthMenu[i] == patronsPerPage ) { + break; + } + if ( aLengthMenu[i] > patronsPerPage || aLengthMenu[i] == -1 ) { + aLengthMenu.splice(i, 0, patronsPerPage); + aLengthMenuLabel.splice(i, 0, patronsPerPage); + break; + } + } + [% IF table_loop %] $("#description").show(); [% ELSE %] @@ -261,6 +276,8 @@ ], "aaSorting": [[ 0, "asc" ]], "sPaginationType": "full", + "aLengthMenu": [aLengthMenu, aLengthMenuLabel], + "pageLength": patronsPerPage, "autoWidth": false })); $("#additems").click(function(){ --