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

(-)a/Koha/Items.pm (-2 / +9 lines)
Lines 48-54 Return the items of the set that are holdable Link Here
48
48
49
sub filter_by_for_hold {
49
sub filter_by_for_hold {
50
    my ($self) = @_;
50
    my ($self) = @_;
51
    return $self->search( { notforloan => { '<=' => 0 } } ); # items with negative or zero notforloan value are holdable
51
52
    return $self->search(
53
        {
54
            itemlost   => 0,
55
            withdrawn  => 0,
56
            notforloan => { '<=' => 0 }
57
            ,    # items with negative or zero notforloan value are holdable
58
        }
59
    );
52
}
60
}
53
61
54
=head3 filter_by_visible_in_opac
62
=head3 filter_by_visible_in_opac
55
- 

Return to bug 3142