From a1974c10b8b06676649b2e19baa6480bb55081b3 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Wed, 13 Jan 2010 11:11:08 +0100 Subject: [PATCH] (bug #3950) only show on shelf items This fix pending reserves to show only on shelf items. --- C4/Reserves.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index bf9d76d90e..19f483fdde 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -262,7 +262,11 @@ sub GetPendingReserves { $line->{title} = $biblio->{title}; foreach my $item (@items){ - next if ($indepbranch && $indepbranch ne $item->{holdingbranch}); + next if ( ($indepbranch && $indepbranch ne $item->{holdingbranch}) + or $item->{onloan} + or $item->{notforloan} + or $item->{itemlost} + or $item->{count_reserves} eq "Waiting" or $item->{count_reserves} eq "Transit"); $line->{count}++; $line->{holdingbranches}->{$item->{holdingbranch}} = 1; $line->{callnumbers}->{$item->{itemcallnumber}} = 1; @@ -852,6 +856,9 @@ sub CheckReserves { # Found it return ( "Waiting", $res ); } + elsif( $res->{'itemnumber'} == $item && $res->{'found'} eq 'T' ){ + return ( "Transit", $res ); + } else { # See if this item is more important than what we've got # so far. -- 2.39.5