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

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

Return to bug 3142