From 89b54e67294737090e24d43f76d589f241cba384 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 1 Jun 2015 15:21:32 +0200 Subject: [PATCH] Bug 3333: Confusing item status for not-for-loans Content-Type: text/plain; charset=utf-8 A first try. Please hang on.. --- C4/Search.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Search.pm b/C4/Search.pm index 990ed39..3e9078d 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -2126,6 +2126,8 @@ sub searchResults { # items not on loan, but still unavailable ( lost, withdrawn, damaged ) else { + $item->{notforloan}=1 if !$item->{notforloan} && $itemtypes{ C4::Context->preference("item-level_itypes")? $item->{itype}: $oldbiblio->{itemtype} }->{notforloan}; + # item is on order if ( $item->{notforloan} < 0 ) { $ordered_count++; -- 1.7.10.4