|
Lines 929-941
sub CanBookBeIssued {
Link Here
|
| 929 |
} |
929 |
} |
| 930 |
} |
930 |
} |
| 931 |
} |
931 |
} |
| 932 |
elsif ($biblioitem->notforloan == 1){ |
932 |
else { |
| 933 |
if (!C4::Context->preference("AllowNotForLoanOverride")) { |
933 |
my $itemtype = Koha::ItemTypes->find($biblioitem->itemtype); |
| 934 |
$issuingimpossible{NOT_FOR_LOAN} = 1; |
934 |
if ( $itemtype and $itemtype->notforloan == 1){ |
| 935 |
$issuingimpossible{itemtype_notforloan} = $effective_itemtype; |
935 |
if (!C4::Context->preference("AllowNotForLoanOverride")) { |
| 936 |
} else { |
936 |
$issuingimpossible{NOT_FOR_LOAN} = 1; |
| 937 |
$needsconfirmation{NOT_FOR_LOAN_FORCING} = 1; |
937 |
$issuingimpossible{itemtype_notforloan} = $effective_itemtype; |
| 938 |
$needsconfirmation{itemtype_notforloan} = $effective_itemtype; |
938 |
} else { |
|
|
939 |
$needsconfirmation{NOT_FOR_LOAN_FORCING} = 1; |
| 940 |
$needsconfirmation{itemtype_notforloan} = $effective_itemtype; |
| 941 |
} |
| 939 |
} |
942 |
} |
| 940 |
} |
943 |
} |
| 941 |
} |
944 |
} |
| 942 |
- |
|
|