[Koha-patches] [PATCH] [SIGNED-OFF] Bug 2341: items marked 'on order' not reserveable from search results

Nicole Engard nengard at bywatersolutions.com
Mon Jan 31 03:43:55 CET 2011


From: Ian Walls <ian.walls at bywatersolutions.com>

Items created as part of the acquisitions process, and assigned the temporary notforloan value of -1,
cannot be placed on hold from the search results in either the OPAC or staff client (the link is missing).

This patch changes the evaluation of items->notforloan from a Boolean (if $items->{notforloan}) to a comparison
(if $items->{notforloan} > 0).  Any notforloan status with a negative value can therefore be reserved.

Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
---
 C4/Search.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index dd41886..a469948 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1612,7 +1612,7 @@ sub searchResults {
                 if (   $item->{wthdrawn}
                     || $item->{itemlost}
                     || $item->{damaged}
-                    || $item->{notforloan}
+                    || $item->{notforloan} > 0
 		    || $reservestatus eq 'Waiting'
                     || ($transfertwhen ne ''))
                 {
-- 
1.5.6.5



More information about the Koha-patches mailing list