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