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

(-)a/opac/opac-shelves.pl (-2 / +3 lines)
Lines 317-323 if ( $op eq 'view' ) { Link Here
317
            $sortfield = 'title' if !$sortfield or !grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded );
317
            $sortfield = 'title' if !$sortfield or !grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded );
318
318
319
            my $rows;
319
            my $rows;
320
            unless ( $query->param('print') or $query->param('rss') ) {
320
            if ( $query->param('print') or $query->param('rss') ) {
321
                $page="";
322
            } else {
321
                $rows = C4::Context->preference('OPACnumSearchResults') || 20;
323
                $rows = C4::Context->preference('OPACnumSearchResults') || 20;
322
            }
324
            }
323
            my $order_by = $sortfield eq 'itemcallnumber' ? 'items.cn_sort' : $sortfield;
325
            my $order_by = $sortfield eq 'itemcallnumber' ? 'items.cn_sort' : $sortfield;
324
- 

Return to bug 38362