View | Details | Raw Unified | Return to bug 9811
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-3 / +3 lines)
Lines 205-214 $(document).ready(function() { Link Here
205
        },
205
        },
206
        'bFilter': false,
206
        'bFilter': false,
207
        'bAutoWidth': false,
207
        'bAutoWidth': false,
208
        [% IF orderby_cardnumber_0 %]
208
        [% IF CAN_user_tools_manage_patron_lists %]
209
            'aaSorting': [[0, 'asc']],
210
        [% ELSE %]
211
            'aaSorting': [[1, 'asc']],
209
            'aaSorting': [[1, 'asc']],
210
        [% ELSE %]
211
            'aaSorting': [[0, 'asc']],
212
        [% END %]
212
        [% END %]
213
        "aLengthMenu": [aLengthMenu, aLengthMenuLabel],
213
        "aLengthMenu": [aLengthMenu, aLengthMenuLabel],
214
        'sPaginationType': 'full_numbers',
214
        'sPaginationType': 'full_numbers',
(-)a/members/member.pl (-7 lines)
Lines 108-118 if ( $patron->{categorycode} ) { Link Here
108
108
109
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
109
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
110
110
111
my $orderby = $input->param('orderby') // '';
112
if(defined $orderby and $orderby ne '') {
113
    $orderby =~ s/[, ]/_/g;
114
}
115
116
my $view = $input->request_method() eq "GET" ? "show_form" : "show_results";
111
my $view = $input->request_method() eq "GET" ? "show_form" : "show_results";
117
112
118
$template->param(
113
$template->param(
Lines 124-130 $template->param( Link Here
124
    categorycode        => $patron->{categorycode},
119
    categorycode        => $patron->{categorycode},
125
    searchtype          => $input->param('searchtype') || 'start_with',
120
    searchtype          => $input->param('searchtype') || 'start_with',
126
    searchfieldstype    => $searchfieldstype,
121
    searchfieldstype    => $searchfieldstype,
127
    "orderby_$orderby"  => 1,
128
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
122
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
129
    view                => $view,
123
    view                => $view,
130
);
124
);
131
- 

Return to bug 9811