From 2bbd0067e968ffb5b91cfb8fc91c4b90adcff8eb 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 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. --- C4/Search.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 9670769..78b3062 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1544,6 +1544,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.2.5