Lines 1406-1417
sub CanBookBeIssued {
Link Here
|
1406 |
if ( $restriction_age && $patron->dateofbirth && $restriction_age > $patron->get_age() ) { |
1406 |
if ( $restriction_age && $patron->dateofbirth && $restriction_age > $patron->get_age() ) { |
1407 |
if ( C4::Context->preference('AgeRestrictionOverride') ) { |
1407 |
if ( C4::Context->preference('AgeRestrictionOverride') ) { |
1408 |
$needsconfirmation{AGE_RESTRICTION} = "$agerestriction"; |
1408 |
$needsconfirmation{AGE_RESTRICTION} = "$agerestriction"; |
1409 |
if ($message) { |
1409 |
if ($issueconfirmed) { |
1410 |
$message = "$message + age restriction"; |
1410 |
if ($message) { |
1411 |
} else { |
1411 |
$message = "$message + age restriction"; |
1412 |
$message = "age restriction"; |
1412 |
} else { |
|
|
1413 |
$message = "age restriction"; |
1414 |
} |
1415 |
push( @message_log, "age restriction" ); |
1413 |
} |
1416 |
} |
1414 |
push( @message_log, "age restriction" ); |
|
|
1415 |
} else { |
1417 |
} else { |
1416 |
$issuingimpossible{AGE_RESTRICTION} = "$agerestriction"; |
1418 |
$issuingimpossible{AGE_RESTRICTION} = "$agerestriction"; |
1417 |
} |
1419 |
} |
1418 |
- |
|
|