Lines 225-231
if ( $op eq 'view' ) {
Link Here
|
225 |
if ( $shelf ) { |
225 |
if ( $shelf ) { |
226 |
if ( $shelf->can_be_viewed( $loggedinuser ) ) { |
226 |
if ( $shelf->can_be_viewed( $loggedinuser ) ) { |
227 |
$category = $shelf->category; |
227 |
$category = $shelf->category; |
228 |
my $sortfield = $query->param('sortfield') || $shelf->sortfield; # Passed in sorting overrides default sorting |
228 |
my $sortfield = $query->param('sortfield') || $shelf->sortfield || 'title'; # Passed in sorting overrides default sorting |
229 |
my $direction = $query->param('direction') || 'asc'; |
229 |
my $direction = $query->param('direction') || 'asc'; |
230 |
$direction = 'asc' if $direction ne 'asc' and $direction ne 'desc'; |
230 |
$direction = 'asc' if $direction ne 'asc' and $direction ne 'desc'; |
231 |
my ( $page, $rows ); |
231 |
my ( $page, $rows ); |
232 |
- |
|
|