View | Details | Raw Unified | Return to bug 4319
Collapse All | Expand All

(-)a/C4/Search.pm (-3 / +7 lines)
Lines 1671-1677 sub searchResults { Link Here
1671
		    ($reservestatus, $reserveitem) = C4::Reserves::CheckReserves($item->{itemnumber});
1671
		    ($reservestatus, $reserveitem) = C4::Reserves::CheckReserves($item->{itemnumber});
1672
                }
1672
                }
1673
1673
1674
                # item is withdrawn, lost or damaged
1674
                # item is withdrawn, lost, damaged, not for loan, reserved or in transit
1675
                if (   $item->{wthdrawn}
1675
                if (   $item->{wthdrawn}
1676
                    || $item->{itemlost}
1676
                    || $item->{itemlost}
1677
                    || $item->{damaged}
1677
                    || $item->{damaged}
Lines 1684-1691 sub searchResults { Link Here
1684
                    $itemlost_count++        if $item->{itemlost};
1684
                    $itemlost_count++        if $item->{itemlost};
1685
                    $itemdamaged_count++     if $item->{damaged};
1685
                    $itemdamaged_count++     if $item->{damaged};
1686
                    $item_in_transit_count++ if $transfertwhen ne '';
1686
                    $item_in_transit_count++ if $transfertwhen ne '';
1687
		    $item_onhold_count++     if $reservestatus eq 'Waiting';
1687
                    $item_onhold_count++     if $reservestatus eq 'Waiting';
1688
                    
1688
                    $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan};
1689
                    $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan};
1690
                    
1691
                    # only withdrawn, lost and damaged avoid placing hold on item
1692
                    $can_place_holds = 1 unless ($item->{withdrawn} || $item->{itemlost} || $item->{damaged});
1693
1689
                    $other_count++;
1694
                    $other_count++;
1690
1695
1691
                    my $key = $prefix . $item->{status};
1696
                    my $key = $prefix . $item->{status};
1692
- 

Return to bug 4319