|
Lines 701-706
if ( not $viewallitems and @items > $max_items_to_display ) {
Link Here
|
| 701 |
items_count => scalar( @items ), |
701 |
items_count => scalar( @items ), |
| 702 |
); |
702 |
); |
| 703 |
} else { |
703 |
} else { |
|
|
704 |
my $allow_damaged_holds = C4::Context->preference('AllowHoldsOnDamagedItems'); |
| 704 |
for my $itm (@items) { |
705 |
for my $itm (@items) { |
| 705 |
my $item = Koha::Items->find( $itm->{itemnumber} ); |
706 |
my $item = Koha::Items->find( $itm->{itemnumber} ); |
| 706 |
$itm->{holds_count} = $item_reserves{ $itm->{itemnumber} }; |
707 |
$itm->{holds_count} = $item_reserves{ $itm->{itemnumber} }; |
|
Lines 709-715
if ( not $viewallitems and @items > $max_items_to_display ) {
Link Here
|
| 709 |
if $norequests |
710 |
if $norequests |
| 710 |
&& !$itm->{'withdrawn'} |
711 |
&& !$itm->{'withdrawn'} |
| 711 |
&& !$itm->{'itemlost'} |
712 |
&& !$itm->{'itemlost'} |
| 712 |
&& ( !$itm->{'damaged'} || C4::Context->preference('AllowHoldsOnDamagedItems') ) |
713 |
&& ( !$itm->{'damaged'} || $allow_damaged_holds ) |
| 713 |
&& ($itm->{'itemnotforloan'}<0 || not $itm->{'itemnotforloan'}) |
714 |
&& ($itm->{'itemnotforloan'}<0 || not $itm->{'itemnotforloan'}) |
| 714 |
&& !$itemtypes->{$itm->{'itype'}}->{notforloan} |
715 |
&& !$itemtypes->{$itm->{'itype'}}->{notforloan} |
| 715 |
&& $itm->{'itemnumber'}; |
716 |
&& $itm->{'itemnumber'}; |
| 716 |
- |
|
|