Lines 76-87
sub shelfpage {
Link Here
|
76 |
my ( $shelflimit, $shelfoffset, $shelveslimit, $shelvesoffset ); |
76 |
my ( $shelflimit, $shelfoffset, $shelveslimit, $shelvesoffset ); |
77 |
my $marcflavour = C4::Context->preference("marcflavour"); |
77 |
my $marcflavour = C4::Context->preference("marcflavour"); |
78 |
|
78 |
|
79 |
$shelflimit = ( $type eq 'opac' ? C4::Context->preference('OPACnumSearchResults') : C4::Context->preference('numSearchResults') ); |
79 |
unless ( $query->param('print') ) { |
80 |
$shelflimit = $shelflimit || ShelvesMax('MGRPAGE'); |
80 |
$shelflimit = ( $type eq 'opac' ? C4::Context->preference('OPACnumSearchResults') : C4::Context->preference('numSearchResults') ); |
81 |
$shelflimit = undef if $query->param('rss'); |
81 |
$shelflimit = $shelflimit || ShelvesMax('MGRPAGE'); |
82 |
$shelfoffset = ( $itemoff - 1 ) * $shelflimit; # Sets the offset to begin retrieving items at |
82 |
$shelflimit = undef if $query->param('rss'); |
83 |
$shelveslimit = $shelflimit; # Limits number of shelves returned for a given query (row_count) |
83 |
$shelfoffset = ( $itemoff - 1 ) * $shelflimit; # Sets the offset to begin retrieving items at |
84 |
$shelvesoffset = ( $shelfoff - 1 ) * $shelflimit; # Sets the offset to begin retrieving shelves at (offset) |
84 |
$shelveslimit = $shelflimit; # Limits number of shelves returned for a given query (row_count) |
|
|
85 |
$shelvesoffset = ( $shelfoff - 1 ) * $shelflimit; # Sets the offset to begin retrieving shelves at (offset) |
86 |
} |
85 |
|
87 |
|
86 |
# getting the Shelves list |
88 |
# getting the Shelves list |
87 |
my $category = ( ( $displaymode eq 'privateshelves' ) ? 1 : 2 ); |
89 |
my $category = ( ( $displaymode eq 'privateshelves' ) ? 1 : 2 ); |
Lines 469-474
sub shelfpage {
Link Here
|
469 |
pagination_bar => pagination_bar( $url, ( int( $totshelves / $shelveslimit ) ) + ( ( $totshelves % $shelveslimit ) > 0 ? 1 : 0 ), $shelfoff, "shelfoff" ) ); |
471 |
pagination_bar => pagination_bar( $url, ( int( $totshelves / $shelveslimit ) ) + ( ( $totshelves % $shelveslimit ) > 0 ? 1 : 0 ), $shelfoff, "shelfoff" ) ); |
470 |
} |
472 |
} |
471 |
} |
473 |
} |
|
|
474 |
|
472 |
$template->param( |
475 |
$template->param( |
473 |
shelveslooppriv => \@shelveslooppriv, |
476 |
shelveslooppriv => \@shelveslooppriv, |
474 |
shelvesloop => \@shelvesloop, |
477 |
shelvesloop => \@shelvesloop, |