|
Lines 602-612
foreach my $biblioNum (@biblionumbers) {
Link Here
|
| 602 |
$biblioLoopIter{holdable} = undef; |
602 |
$biblioLoopIter{holdable} = undef; |
| 603 |
$biblioLoopIter{itemholdable} = undef; |
603 |
$biblioLoopIter{itemholdable} = undef; |
| 604 |
} |
604 |
} |
| 605 |
if(not C4::Context->preference('AllowHoldsOnPatronsPossessions') and CheckIfIssuedToPatron($borrowernumber,$biblioNum)) { |
|
|
| 606 |
$biblioLoopIter{holdable} = undef; |
| 607 |
$biblioLoopIter{already_patron_possession} = 1; |
| 608 |
} |
| 609 |
|
| 610 |
if ( $biblioLoopIter{holdable} ) { |
605 |
if ( $biblioLoopIter{holdable} ) { |
| 611 |
@not_available_at = uniq @not_available_at; |
606 |
@not_available_at = uniq @not_available_at; |
| 612 |
$biblioLoopIter{not_available_at} = \@not_available_at ; |
607 |
$biblioLoopIter{not_available_at} = \@not_available_at ; |
|
Lines 621-627
foreach my $biblioNum (@biblionumbers) {
Link Here
|
| 621 |
} |
616 |
} |
| 622 |
} |
617 |
} |
| 623 |
|
618 |
|
| 624 |
$biblioLoopIter{holdable} &&= CanBookBeReserved( $borrowernumber, $biblioNum )->{status} eq 'OK'; |
619 |
my $status = CanBookBeReserved( $borrowernumber, $biblioNum )->{status}; |
|
|
620 |
$biblioLoopIter{holdable} &&= $status eq 'OK'; |
| 621 |
$biblioLoopIter{already_patron_possession} = $status eq 'alreadypossession'; |
| 625 |
|
622 |
|
| 626 |
# For multiple holds per record, if a patron has previously placed a hold, |
623 |
# For multiple holds per record, if a patron has previously placed a hold, |
| 627 |
# the patron can only place more holds of the same type. That is, if the |
624 |
# the patron can only place more holds of the same type. That is, if the |