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