|
Lines 442-447
sub CanBookBeReserved{
Link Here
|
| 442 |
return 'tooManyReserves'; |
442 |
return 'tooManyReserves'; |
| 443 |
} |
443 |
} |
| 444 |
|
444 |
|
|
|
445 |
# Check for the age restriction |
| 446 |
my $biblioData = C4::Biblio::GetBiblioData( $biblionumber ); |
| 447 |
my $borrower = C4::Members::GetMember(borrowernumber => $borrowernumber); |
| 448 |
my ($ageRestriction, $daysToAgeRestriction) = C4::Circulation::GetAgeRestriction( $biblioData->{agerestriction}, $borrower ); |
| 449 |
return 'ageRestricted' if $daysToAgeRestriction && $daysToAgeRestriction > 0; |
| 450 |
|
| 445 |
my $items = GetItemnumbersForBiblio($biblionumber); |
451 |
my $items = GetItemnumbersForBiblio($biblionumber); |
| 446 |
#get items linked via host records |
452 |
#get items linked via host records |
| 447 |
my @hostitems = get_hostitemnumbers_of($biblionumber); |
453 |
my @hostitems = get_hostitemnumbers_of($biblionumber); |