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

(-)a/opac/opac-shelves.pl (-2 / +1 lines)
Lines 235-241 if ( $op eq 'view' ) { Link Here
235
        if ( $shelf->can_be_viewed( $loggedinuser ) ) {
235
        if ( $shelf->can_be_viewed( $loggedinuser ) ) {
236
            $category = $shelf->category;
236
            $category = $shelf->category;
237
            my $sortfield = $query->param('sortfield') || $shelf->sortfield;    # Passed in sorting overrides default sorting
237
            my $sortfield = $query->param('sortfield') || $shelf->sortfield;    # Passed in sorting overrides default sorting
238
            $sortfield = 'title' unless grep {/^$sortfield$/}qw( title author copyrightdate itemcallnumber dateadded );
238
            $sortfield = 'title' unless grep $_ eq $sortfield, qw( title author copyrightdate itemcallnumber dateadded );
239
            my $direction = $query->param('direction') || 'asc';
239
            my $direction = $query->param('direction') || 'asc';
240
            $direction = 'asc' if $direction ne 'asc' and $direction ne 'desc';
240
            $direction = 'asc' if $direction ne 'asc' and $direction ne 'desc';
241
            my ( $page, $rows );
241
            my ( $page, $rows );
242
- 

Return to bug 17526