Lines 283-288
sub CanBookBeReserved{
Link Here
|
283 |
return { status => 'tooManyReserves' }; |
283 |
return { status => 'tooManyReserves' }; |
284 |
} |
284 |
} |
285 |
|
285 |
|
|
|
286 |
# Check for the age restriction |
287 |
my $biblioData = C4::Biblio::GetBiblioData( $biblionumber ); |
288 |
my $borrower = $patron->unblessed; |
289 |
my ($ageRestriction, $daysToAgeRestriction) = C4::Circulation::GetAgeRestriction( $biblioData->{agerestriction}, $borrower ); |
290 |
return { status => 'ageRestricted' } if $daysToAgeRestriction && $daysToAgeRestriction > 0; |
291 |
|
286 |
my @itemnumbers = Koha::Items->search({ biblionumber => $biblionumber})->get_column("itemnumber"); |
292 |
my @itemnumbers = Koha::Items->search({ biblionumber => $biblionumber})->get_column("itemnumber"); |
287 |
|
293 |
|
288 |
#get items linked via host records |
294 |
#get items linked via host records |
289 |
- |
|
|