|
Lines 249-256
sub shelfpage {
Link Here
|
| 249 |
my $items; |
249 |
my $items; |
| 250 |
my $tag_quantity; |
250 |
my $tag_quantity; |
| 251 |
my $sortfield = ( $sorton ? $sorton : 'title' ); |
251 |
my $sortfield = ( $sorton ? $sorton : 'title' ); |
| 252 |
$sortfield = $query->param('sort') || $sortfield; ## Passed in sorting overrides default sorting |
252 |
$sortfield = $query->param('sort') || $sortfield || 'title'; ## Passed in sorting overrides default sorting |
| 253 |
my $direction = $query->param('direction'); |
253 |
my $direction = $query->param('direction') || 'asc'; |
|
|
254 |
$template->param( |
| 255 |
sort => $sortfield, |
| 256 |
direction => $direction, |
| 257 |
); |
| 254 |
( $items, $totitems ) = GetShelfContents( $shelfnumber, $shelflimit, $shelfoffset, $sortfield, $direction ); |
258 |
( $items, $totitems ) = GetShelfContents( $shelfnumber, $shelflimit, $shelfoffset, $sortfield, $direction ); |
| 255 |
for my $this_item (@$items) { |
259 |
for my $this_item (@$items) { |
| 256 |
my $biblionumber = $this_item->{'biblionumber'}; |
260 |
my $biblionumber = $this_item->{'biblionumber'}; |
|
Lines 461-468
sub shelfpage {
Link Here
|
| 461 |
barshelvesloop => $barshelves, |
465 |
barshelvesloop => $barshelves, |
| 462 |
pubshelves => $total->{pubtotal}, |
466 |
pubshelves => $total->{pubtotal}, |
| 463 |
pubshelvesloop => $pubshelves, |
467 |
pubshelvesloop => $pubshelves, |
| 464 |
sort => $query->param('sort'), |
|
|
| 465 |
direction => $query->param('direction'), |
| 466 |
); |
468 |
); |
| 467 |
|
469 |
|
| 468 |
output_html_with_http_headers $query, $cookie, $template->output; |
470 |
output_html_with_http_headers $query, $cookie, $template->output; |