From 95b94dc6e1591f584ae63c16c7acede7df54f8fd Mon Sep 17 00:00:00 2001 From: oleonard Date: Wed, 19 Jan 2005 21:18:06 +0000 Subject: [PATCH] Comparing reserves' destination branch to the current holding branch to determine actual waiting status. If destination branch is equal to holding branch, the item has been checked in at its destination and can be accurately shown as waiting. If not, the item is still in transit and should not be shown as waiting. --- opac/opac-user.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 5a498dd734..4deac05388 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -123,7 +123,12 @@ my @waiting; my $wcount = 0; foreach my $res (@$reserves) { if ($res->{'itemnumber'}) { + my $item = getiteminformation('',$res->{'itemnumber'},''); + $res->{'holdingbranch'} = $branches->{$item->{'holdingbranch'}}->{'branchname'}; $res->{'branch'} = $branches->{$res->{'branchcode'}}->{'branchname'}; + if($res->{'holdingbranch'} eq $res->{'branch'}){ + $res->{'atdestination'} = 1; + } push @waiting, $res; $wcount++; } -- 2.39.5