|
Lines 314-320
sub CanBookBeReserved{
Link Here
|
| 314 |
# Check that patron have not checked out this biblio (if AllowHoldsOnPatronsPossessions set) |
314 |
# Check that patron have not checked out this biblio (if AllowHoldsOnPatronsPossessions set) |
| 315 |
if ( !C4::Context->preference('AllowHoldsOnPatronsPossessions') |
315 |
if ( !C4::Context->preference('AllowHoldsOnPatronsPossessions') |
| 316 |
&& C4::Circulation::CheckIfIssuedToPatron( $borrowernumber, $biblionumber ) ) { |
316 |
&& C4::Circulation::CheckIfIssuedToPatron( $borrowernumber, $biblionumber ) ) { |
| 317 |
return { status =>'itemAlreadyOnLoan' }; |
317 |
return { status =>'alreadypossession' }; |
| 318 |
} |
318 |
} |
| 319 |
|
319 |
|
| 320 |
my @itemnumbers = Koha::Items->search({ biblionumber => $biblionumber})->get_column("itemnumber"); |
320 |
my @itemnumbers = Koha::Items->search({ biblionumber => $biblionumber})->get_column("itemnumber"); |
|
Lines 384-390
sub CanItemBeReserved {
Link Here
|
| 384 |
# Check that patron have not checked out this biblio (if AllowHoldsOnPatronsPossessions set) |
384 |
# Check that patron have not checked out this biblio (if AllowHoldsOnPatronsPossessions set) |
| 385 |
if ( !C4::Context->preference('AllowHoldsOnPatronsPossessions') |
385 |
if ( !C4::Context->preference('AllowHoldsOnPatronsPossessions') |
| 386 |
&& C4::Circulation::CheckIfIssuedToPatron( $patron->borrowernumber, $biblio->biblionumber ) ) { |
386 |
&& C4::Circulation::CheckIfIssuedToPatron( $patron->borrowernumber, $biblio->biblionumber ) ) { |
| 387 |
return { status =>'itemAlreadyOnLoan' }; |
387 |
return { status =>'alreadypossession' }; |
| 388 |
} |
388 |
} |
| 389 |
|
389 |
|
| 390 |
my $controlbranch = C4::Context->preference('ReservesControlBranch'); |
390 |
my $controlbranch = C4::Context->preference('ReservesControlBranch'); |