Lines 367-375
sub shelfpage ($$$$$) {
Link Here
|
367 |
$qhash{$_} = $query->param($_) if $query->param($_); |
367 |
$qhash{$_} = $query->param($_) if $query->param($_); |
368 |
} |
368 |
} |
369 |
( scalar keys %qhash ) and $url .= '?' . join '&', map { "$_=$qhash{$_}" } keys %qhash; |
369 |
( scalar keys %qhash ) and $url .= '?' . join '&', map { "$_=$qhash{$_}" } keys %qhash; |
370 |
if ( $shelfnumber ) { |
370 |
if ( $shelfnumber && $totitems ) { |
371 |
$template->param( pagination_bar => pagination_bar( $url, ( int( $totitems / $shelflimit ) ) + ( ( $totitems % $shelflimit ) > 0 ? 1 : 0 ), $itemoff, "itemoff" ) ); |
371 |
$template->param( pagination_bar => pagination_bar( $url, ( int( $totitems / $shelflimit ) ) + ( ( $totitems % $shelflimit ) > 0 ? 1 : 0 ), $itemoff, "itemoff" ) ); |
372 |
} else { |
372 |
} elsif ( $totshelves ) { |
373 |
$template->param( |
373 |
$template->param( |
374 |
pagination_bar => pagination_bar( $url, ( int( $totshelves / $shelveslimit ) ) + ( ( $totshelves % $shelveslimit ) > 0 ? 1 : 0 ), $shelfoff, "shelfoff" ) ); |
374 |
pagination_bar => pagination_bar( $url, ( int( $totshelves / $shelveslimit ) ) + ( ( $totshelves % $shelveslimit ) > 0 ? 1 : 0 ), $shelfoff, "shelfoff" ) ); |
375 |
} |
375 |
} |
376 |
- |
|
|