Lines 384-396
sub shelfpage {
Link Here
|
384 |
} |
384 |
} |
385 |
my $contents; |
385 |
my $contents; |
386 |
( $contents, $totshelves ) = GetShelfContents( $number, $shelveslimit, $shelvesoffset ); |
386 |
( $contents, $totshelves ) = GetShelfContents( $number, $shelveslimit, $shelvesoffset ); |
387 |
if ( my $count = scalar @$contents ) { |
387 |
if ( $totshelves > 0 ) { |
388 |
unless ( scalar grep { /^CONFIRM-$number$/ } $query->param() ) { |
388 |
unless ( scalar grep { /^CONFIRM-$number$/ } $query->param() ) { |
389 |
if ( defined $shelflist->{$number} ) { |
389 |
if ( defined $shelflist->{$number} ) { |
390 |
push( @paramsloop, { need_confirm => $shelflist->{$number}->{shelfname}, count => $count, single => ($count eq 1 ? 1:0) } ); |
390 |
push( @paramsloop, { need_confirm => $shelflist->{$number}->{shelfname}, count => $totshelves, single => ($totshelves eq 1 ? 1:0) } ); |
391 |
$shelflist->{$number}->{confirm} = $number; |
391 |
$shelflist->{$number}->{confirm} = $number; |
392 |
} else { |
392 |
} else { |
393 |
push( @paramsloop, { need_confirm => $privshelflist->{$number}->{shelfname}, count => $count } ); |
393 |
push( @paramsloop, { need_confirm => $privshelflist->{$number}->{shelfname}, count => $totshelves } ); |
394 |
$privshelflist->{$number}->{confirm} = $number; |
394 |
$privshelflist->{$number}->{confirm} = $number; |
395 |
} |
395 |
} |
396 |
$stay = 0; |
396 |
$stay = 0; |