From d74e452db51f12cda6a185b37585ee55247b1b96 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. --- C4/Search.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index a680d3e..ac0b54b 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