if $norequests
&& !$item->withdrawn
&& !$item->itemlost
&& ( !$item->damaged || C4::Context->preference('AllowHoldsOnDamagedItems') )
&& ($item->notforloan < 0 || not $item->notforloan )
&& !Koha::ItemTypes->find($item->effective_itemtype)->notforloan
&& $item->itemnumber;
&& !$itm->{'withdrawn'}
&& !$itm->{'itemlost'}
&& ( !$itm->{'damaged'} || C4::Context->preference('AllowHoldsOnDamagedItems') )
&& ($itm->{'itemnotforloan'}<0 || not $itm->{'itemnotforloan'})
&& !$itemtypes->{$itm->{'itype'}}->{notforloan}
&& $itm->{'itemnumber'};
-