From 51b62f891926eec923b0187f3f0612023cf2ea73 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 6 Apr 2011 11:55:47 +0200 Subject: [PATCH] BUG6081 In search results, do not show notforloan if false --- C4/Search.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index c69e787..9eac229 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1675,7 +1675,8 @@ sub searchResults { } $other_items->{$key}->{intransit} = ($transfertwhen ne '') ? 1 : 0; $other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0; - $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value; + $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) + if ($notforloan_authorised_value && $item->{notforloan}); $other_items->{$key}->{count}++ if $item->{$hbranch}; $other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); -- 1.7.1