Lines 283-288
sub CanBookBeReserved{
Link Here
|
283 |
} |
283 |
} |
284 |
} |
284 |
} |
285 |
|
285 |
|
|
|
286 |
# Check that patron have not checked out this biblio (if AllowHoldsOnPatronsPossessions set) |
287 |
if ( !C4::Context->preference('AllowHoldsOnPatronsPossessions') |
288 |
&& C4::Circulation::CheckIfIssuedToPatron( $patron->borrowernumber, $biblionumber ) ) { |
289 |
return { status =>'itemAlreadyOnLoan' }; |
290 |
} |
291 |
|
286 |
# Check if borrower has reached the maximum number of holds allowed |
292 |
# Check if borrower has reached the maximum number of holds allowed |
287 |
my $maxreserves = C4::Context->preference('maxreserves'); |
293 |
my $maxreserves = C4::Context->preference('maxreserves'); |
288 |
if ($maxreserves && $holds->count >= $maxreserves) { |
294 |
if ($maxreserves && $holds->count >= $maxreserves) { |
Lines 368-373
sub CanItemBeReserved {
Link Here
|
368 |
} |
374 |
} |
369 |
} |
375 |
} |
370 |
|
376 |
|
|
|
377 |
# Check that patron have not checked out this biblio (if AllowHoldsOnPatronsPossessions set) |
378 |
if ( !C4::Context->preference('AllowHoldsOnPatronsPossessions') |
379 |
&& C4::Circulation::CheckIfIssuedToPatron( $patron->borrowernumber, $biblio->biblionumber ) ) { |
380 |
return { status =>'itemAlreadyOnLoan' }; |
381 |
} |
382 |
|
371 |
# Check if borrower has reached the maximum number of holds allowed |
383 |
# Check if borrower has reached the maximum number of holds allowed |
372 |
my $maxreserves = C4::Context->preference('maxreserves'); |
384 |
my $maxreserves = C4::Context->preference('maxreserves'); |
373 |
if ($maxreserves && $holds->count >= $maxreserves) { |
385 |
if ($maxreserves && $holds->count >= $maxreserves) { |
374 |
- |
|
|