Lines 191-210
foreach my $biblionumber (@biblionumbers) {
Link Here
|
191 |
|
191 |
|
192 |
my $dat = GetBiblioData($biblionumber); |
192 |
my $dat = GetBiblioData($biblionumber); |
193 |
|
193 |
|
194 |
my $canReserve = CanBookBeReserved($borrowerinfo->{borrowernumber}, $biblionumber); |
194 |
my $canReserve = CanBookBeReserved( $borrowerinfo->{borrowernumber}, $biblionumber ); |
195 |
if ($canReserve eq 'OK') { |
195 |
if ( $canReserve eq 'OK' ) { |
196 |
#All is OK and we can continue |
196 |
|
197 |
} |
197 |
#All is OK and we can continue |
198 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
198 |
} |
199 |
$maxreserves = 1; |
199 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
|
|
200 |
$maxreserves = 1; |
201 |
} |
202 |
elsif ( $canReserve eq 'ageRestricted' ) { |
203 |
$template->param( $canReserve => 1 ); |
204 |
$biblioloopiter{$canReserve} = 1; |
205 |
} |
206 |
else { |
207 |
$biblioloopiter{$canReserve} = 1; |
200 |
} |
208 |
} |
201 |
elsif ( $canReserve eq 'ageRestricted' ) { |
|
|
202 |
$template->param( $canReserve => 1 ); |
203 |
$biblioloopiter{ $canReserve } = 1; |
204 |
} |
205 |
else { |
206 |
$biblioloopiter{ $canReserve } = 1; |
207 |
} |
208 |
|
209 |
|
209 |
my $alreadypossession; |
210 |
my $alreadypossession; |
210 |
if (not C4::Context->preference('AllowHoldsOnPatronsPossessions') and CheckIfIssuedToPatron($borrowerinfo->{borrowernumber},$biblionumber)) { |
211 |
if (not C4::Context->preference('AllowHoldsOnPatronsPossessions') and CheckIfIssuedToPatron($borrowerinfo->{borrowernumber},$biblionumber)) { |
211 |
- |
|
|