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

(-)a/C4/Search.pm (-2 / +10 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 1686-1691 sub searchResults { Link Here
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
                    $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan};
1688
                    $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan};
1689
                    
1690
                    # can place hold on item ?
1691
                    if ((!$item->{damaged} || C4::Context->preference('AllowHoldsOnDamagedItems'))
1692
                      && !$item->{itemlost}
1693
                      && !$item->{withdrawn}
1694
                    ) {
1695
                        $can_place_holds = 1;
1696
                    }
1697
                    
1689
                    $other_count++;
1698
                    $other_count++;
1690
1699
1691
                    my $key = $prefix . $item->{status};
1700
                    my $key = $prefix . $item->{status};
1692
- 

Return to bug 4319