Lines 350-356
my $notforloan_label_of = get_notforloan_label_of();
Link Here
|
350 |
my $biblioLoop = []; |
350 |
my $biblioLoop = []; |
351 |
my $numBibsAvailable = 0; |
351 |
my $numBibsAvailable = 0; |
352 |
my $itemdata_enumchron = 0; |
352 |
my $itemdata_enumchron = 0; |
353 |
my $anyholdable; |
353 |
my $anyholdable = 0; |
354 |
my $itemLevelTypes = C4::Context->preference('item-level_itypes'); |
354 |
my $itemLevelTypes = C4::Context->preference('item-level_itypes'); |
355 |
$template->param('item_level_itypes' => $itemLevelTypes); |
355 |
$template->param('item_level_itypes' => $itemLevelTypes); |
356 |
|
356 |
|
Lines 527-547
foreach my $biblioNum (@biblionumbers) {
Link Here
|
527 |
$numBibsAvailable++; |
527 |
$numBibsAvailable++; |
528 |
$biblioLoopIter{bib_available} = 1; |
528 |
$biblioLoopIter{bib_available} = 1; |
529 |
$biblioLoopIter{holdable} = 1; |
529 |
$biblioLoopIter{holdable} = 1; |
530 |
$anyholdable = 1; |
|
|
531 |
} |
530 |
} |
532 |
if ($biblioLoopIter{already_reserved}) { |
531 |
if ($biblioLoopIter{already_reserved}) { |
533 |
$biblioLoopIter{holdable} = undef; |
532 |
$biblioLoopIter{holdable} = undef; |
534 |
$anyholdable = undef; |
|
|
535 |
} |
533 |
} |
536 |
if(not CanBookBeReserved($borrowernumber,$biblioNum)){ |
534 |
if(not CanBookBeReserved($borrowernumber,$biblioNum)){ |
537 |
$biblioLoopIter{holdable} = undef; |
535 |
$biblioLoopIter{holdable} = undef; |
538 |
$anyholdable = undef; |
|
|
539 |
} |
536 |
} |
540 |
|
537 |
|
|
|
538 |
if( $biblioLoopIter{holdable} ){ $anyholdable = 1; } |
539 |
|
541 |
push @$biblioLoop, \%biblioLoopIter; |
540 |
push @$biblioLoop, \%biblioLoopIter; |
542 |
} |
541 |
} |
543 |
|
542 |
|
544 |
if ( $numBibsAvailable == 0 || !$anyholdable) { |
543 |
if ( $numBibsAvailable == 0 || $anyholdable == 0) { |
545 |
$template->param( none_available => 1 ); |
544 |
$template->param( none_available => 1 ); |
546 |
} |
545 |
} |
547 |
|
546 |
|
548 |
- |
|
|