From 31392f5fc25d037637758d67034cc4d932b10963 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Jun 2021 15:38:29 +0200 Subject: [PATCH] Bug 3142: Add itemlost, withdrawn and notforloan Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- Koha/Items.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 193e6e58d2..2855192f95 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -48,7 +48,15 @@ Return the items of the set that are holdable sub filter_by_for_hold { my ($self) = @_; - return $self->search( { notforloan => { '<=' => 0 } } ); # items with negative or zero notforloan value are holdable + + return $self->search( + { + itemlost => 0, + withdrawn => 0, + notforloan => { '<=' => 0 } + , # items with negative or zero notforloan value are holdable + } + ); } =head3 filter_by_visible_in_opac -- 2.39.5