Lines 267-272
if ( $op eq 'view' ) {
Link Here
|
267 |
$sortfield = $shelf->sortfield; |
267 |
$sortfield = $shelf->sortfield; |
268 |
$direction = 'asc'; |
268 |
$direction = 'asc'; |
269 |
} |
269 |
} |
|
|
270 |
if( defined( $query->param('direction') ) ){ $direction = $query->param('direction'); } |
270 |
$sortfield = 'title' if !$sortfield or !grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded ); |
271 |
$sortfield = 'title' if !$sortfield or !grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded ); |
271 |
$direction = 'asc' if !$direction or ( $direction ne 'asc' and $direction ne 'desc' ); |
272 |
$direction = 'asc' if !$direction or ( $direction ne 'asc' and $direction ne 'desc' ); |
272 |
my ( $page, $rows ); |
273 |
my ( $page, $rows ); |
273 |
- |
|
|