Lines 1413-1418
sub IsAvailableForItemLevelRequest {
Link Here
|
1413 |
my $any_available = 0; |
1413 |
my $any_available = 0; |
1414 |
|
1414 |
|
1415 |
foreach my $i (@items) { |
1415 |
foreach my $i (@items) { |
|
|
1416 |
|
1417 |
my $circ_control_branch = C4::Circulation::_GetCircControlBranch( $i->unblessed(), $borrower ); |
1418 |
my $branchitemrule = C4::Circulation::GetBranchItemRule( $circ_control_branch, $i->itype ); |
1419 |
|
1416 |
$any_available = 1 |
1420 |
$any_available = 1 |
1417 |
unless $i->itemlost |
1421 |
unless $i->itemlost |
1418 |
|| $i->notforloan > 0 |
1422 |
|| $i->notforloan > 0 |
Lines 1421-1427
sub IsAvailableForItemLevelRequest {
Link Here
|
1421 |
|| IsItemOnHoldAndFound( $i->id ) |
1425 |
|| IsItemOnHoldAndFound( $i->id ) |
1422 |
|| ( $i->damaged |
1426 |
|| ( $i->damaged |
1423 |
&& !C4::Context->preference('AllowHoldsOnDamagedItems') ) |
1427 |
&& !C4::Context->preference('AllowHoldsOnDamagedItems') ) |
1424 |
|| Koha::ItemTypes->find( $i->effective_itemtype() )->notforloan; |
1428 |
|| Koha::ItemTypes->find( $i->effective_itemtype() )->notforloan |
|
|
1429 |
|| $branchitemrule->{holdallowed} == 1 && $borrower->{branchcode} ne $i->homebranch; |
1425 |
} |
1430 |
} |
1426 |
|
1431 |
|
1427 |
return $any_available ? 0 : 1; |
1432 |
return $any_available ? 0 : 1; |
1428 |
- |
|
|