},
'bFilter': false,
'bAutoWidth': false,
- [% IF orderby_cardnumber_0 %]
- 'aaSorting': [[0, 'asc']],
- [% ELSE %]
+ [% IF CAN_user_tools_manage_patron_lists %]
'aaSorting': [[1, 'asc']],
+ [% ELSE %]
+ 'aaSorting': [[0, 'asc']],
[% END %]
"aLengthMenu": [aLengthMenu, aLengthMenuLabel],
'sPaginationType': 'full_numbers',
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
-my $orderby = $input->param('orderby') // '';
-if(defined $orderby and $orderby ne '') {
- $orderby =~ s/[, ]/_/g;
-}
-
my $view = $input->request_method() eq "GET" ? "show_form" : "show_results";
$template->param(
categorycode => $patron->{categorycode},
searchtype => $input->param('searchtype') || 'start_with',
searchfieldstype => $searchfieldstype,
- "orderby_$orderby" => 1,
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20,
view => $view,
);