Lines 1312-1318
sub IsAvailableForItemLevelRequest {
Link Here
|
1312 |
return 0 if |
1312 |
return 0 if |
1313 |
$notforloan_per_itemtype || |
1313 |
$notforloan_per_itemtype || |
1314 |
$item->itemlost || |
1314 |
$item->itemlost || |
1315 |
$item->notforloan > 0 || |
1315 |
$item->notforloan > 0 || # item with negative or zero notforloan value is holdable |
1316 |
$item->withdrawn || |
1316 |
$item->withdrawn || |
1317 |
($item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems')); |
1317 |
($item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems')); |
1318 |
|
1318 |
|
Lines 1373-1379
sub ItemsAnyAvailableAndNotRestricted {
Link Here
|
1373 |
# we can return (end the loop) when first one found: |
1373 |
# we can return (end the loop) when first one found: |
1374 |
return 1 |
1374 |
return 1 |
1375 |
unless $i->itemlost |
1375 |
unless $i->itemlost |
1376 |
|| $i->notforloan |
1376 |
|| $i->notforloan # items with non-zero notforloan cannot be checked out |
1377 |
|| $i->withdrawn |
1377 |
|| $i->withdrawn |
1378 |
|| $i->onloan |
1378 |
|| $i->onloan |
1379 |
|| IsItemOnHoldAndFound( $i->id ) |
1379 |
|| IsItemOnHoldAndFound( $i->id ) |
1380 |
- |
|
|