Lines 263-270
if ( $op eq 'view' ) {
Link Here
|
263 |
$sortfield = $shelf->sortfield; |
263 |
$sortfield = $shelf->sortfield; |
264 |
$direction = 'asc'; |
264 |
$direction = 'asc'; |
265 |
} |
265 |
} |
266 |
$sortfield = 'title' unless grep $_ eq $sortfield, qw( title author copyrightdate itemcallnumber dateadded ); |
266 |
$sortfield = 'title' if !$sortfield or !grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded ); |
267 |
$direction = 'asc' if $direction ne 'asc' and $direction ne 'desc'; |
267 |
$direction = 'asc' if !$direction or ( $direction ne 'asc' and $direction ne 'desc' ); |
268 |
my ( $page, $rows ); |
268 |
my ( $page, $rows ); |
269 |
unless ( $query->param('print') or $query->param('rss') ) { |
269 |
unless ( $query->param('print') or $query->param('rss') ) { |
270 |
$rows = C4::Context->preference('OPACnumSearchResults') || 20; |
270 |
$rows = C4::Context->preference('OPACnumSearchResults') || 20; |
271 |
- |
|
|