diff --git a/acqui/add_user_search.pl b/acqui/add_user_search.pl index 7b8b9697fc..ca302e4796 100755 --- a/acqui/add_user_search.pl +++ b/acqui/add_user_search.pl @@ -63,5 +63,6 @@ $template->param( alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => [ C4::Category->all ], branches => [ map { { branchcode => $_->{branchcode}, branchname => $_->{branchname} } } values %$branches ], + aaSorting => 1, ); output_html_with_http_headers( $input, $cookie, $template->output ); diff --git a/admin/add_user_search.pl b/admin/add_user_search.pl index bafc9e1561..fdce4beb07 100755 --- a/admin/add_user_search.pl +++ b/admin/add_user_search.pl @@ -64,5 +64,6 @@ $template->param( alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => [ C4::Category->all ], branches => [ map { { branchcode => $_->{branchcode}, branchname => $_->{branchname} } } values %$branches ], + aaSorting => 1, ); output_html_with_http_headers( $input, $cookie, $template->output ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt index 44117b251d..2b3b541d28 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt @@ -90,6 +90,7 @@ $(document).ready(function(){ 'sPaginationType': 'full_numbers', "iDisplayLength": [% Koha.Preference('PatronsPerPage') %], [% END %] + 'aaSorting': [[[% aaSorting || 0 %], 'asc']], 'bFilter': false, 'bProcessing': true, })); diff --git a/members/guarantor_search.pl b/members/guarantor_search.pl index ac9d1ceac3..70b28d4343 100755 --- a/members/guarantor_search.pl +++ b/members/guarantor_search.pl @@ -55,5 +55,6 @@ $template->param( alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => [ C4::Category->all ], branches => [ map { { branchcode => $_->{branchcode}, branchname => $_->{branchname} } } values %$branches ], + aaSorting => 1, ); output_html_with_http_headers( $input, $cookie, $template->output ); diff --git a/patroncards/add_user_search.pl b/patroncards/add_user_search.pl index bc860766ea..9bc36859f9 100755 --- a/patroncards/add_user_search.pl +++ b/patroncards/add_user_search.pl @@ -55,5 +55,6 @@ $template->param( alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => [ C4::Category->all ], branches => [ map { { branchcode => $_->{branchcode}, branchname => $_->{branchname} } } values %$branches ], + aaSorting => 1, ); output_html_with_http_headers( $input, $cookie, $template->output ); diff --git a/serials/add_user_search.pl b/serials/add_user_search.pl index 8fc15af128..aa7ffaf3ba 100755 --- a/serials/add_user_search.pl +++ b/serials/add_user_search.pl @@ -55,5 +55,6 @@ $template->param( alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => [ C4::Category->all ], branches => [ map { { branchcode => $_->{branchcode}, branchname => $_->{branchname} } } values %$branches ], + aaSorting => 1, ); output_html_with_http_headers( $input, $cookie, $template->output );