Lines 612-618
sub search {
Link Here
|
612 |
if ( $status eq 'not_for_loan' ) { |
612 |
if ( $status eq 'not_for_loan' ) { |
613 |
my @item_types_notforloan = |
613 |
my @item_types_notforloan = |
614 |
Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype'); |
614 |
Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype'); |
615 |
$self = $self->search( [ { notforloan => { '>' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] ); |
615 |
$self = $self->search( [ { notforloan => { '!=' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] ); |
616 |
} |
616 |
} |
617 |
if ( $status eq 'on_hold' ) { |
617 |
if ( $status eq 'on_hold' ) { |
618 |
$self = $self->filter_by_has_holds; |
618 |
$self = $self->filter_by_has_holds; |
619 |
- |
|
|