From 45168eb68cb5e1727a60b089210117505c0215fb Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 31 Oct 2012 16:45:14 +0100 Subject: [PATCH] [SIGNED-OFF] Bug 8996: In result page items with negative notforloan are available Content-Type: text/plain; charset="utf-8" Signed-off-by: Owen Leonard --- Before --- 4 items, 2 available: Athens [YA Taylor] (2) Circulating 2 unavailable: Athens [YA Taylor] Download (1) Circulating The Plains [YA Taylor] Staff Collection (1) Circulating --- After --- 4 items, 1 available: Athens [YA Taylor] (1) Circulating 3 unavailable: Athens [YA Taylor] Ordered (1) Circulating Athens [YA Taylor] Download (1) Circulating The Plains [YA Taylor] Staff Collection (1) Circulating --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3a63fcd..f95cb83 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1799,7 +1799,7 @@ sub searchResults { else { # item is on order - if ( $item->{notforloan} == -1 ) { + if ( $item->{notforloan} < 0 ) { $ordered_count++; } @@ -1837,7 +1837,7 @@ sub searchResults { if ( $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} - || $item->{notforloan} > 0 + || $item->{notforloan} || $reservestatus eq 'Waiting' || ($transfertwhen ne '')) { -- 1.7.9.5