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 |
- |
|
|