From b0317e746bb6c607b7088d298977f0822aa1ad31 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 29 May 2014 07:11:45 -0400 Subject: [PATCH] Bug 9810 [Followup] - Hide items with notforloan < 0 when limiting to available items Content-Type: text/plain; charset=utf-8 Not for loan statuses of less then 0 are considered 'unavailable' in Koha parlance, whereas items with a not for loan status greater than 0 are considered available, but not checkout-able ( i.g. reference items ). This should be taken into account by the availability filter. Signed-off-by: Marcel de Rooy --- C4/Search.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index b4baace..4d31359 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1520,6 +1520,7 @@ sub buildQuery { and (lost,st-numeric=0) and (damaged,st-numeric=0) and (withdrawn,st-numeric=0) + and (notforloan,st-numeric,ge:0) )"; $limit_cgi .= "&limit=available"; $limit_desc .= ""; -- 1.7.7.6