From b566a203d8b923cb4563df1e2611d25c39bb84f7 Mon Sep 17 00:00:00 2001 From: oleonard Date: Wed, 19 Jan 2005 21:39:25 +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 display that information. --- request.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/request.pl b/request.pl index 1f28e766d5..39ccc269ee 100755 --- a/request.pl +++ b/request.pl @@ -133,10 +133,14 @@ foreach my $res (sort {$a->{'found'} cmp $b->{'found'}} @$reserves){ my %env; my $item = $res->{'itemnumber'}; $item = getiteminformation(\%env,$item); + $reserve{'holdingbranch'}=$item->{'holdingbranch'}; $reserve{'barcode'}=$item->{'barcode'}; $reserve{'biblionumber'}=$item->{'biblionumber'}; $reserve{'wbrcode'} = $res->{'branchcode'}; $reserve{'wbrname'} = $branches->{$res->{'branchcode'}}->{'branchname'}; + if($reserve{'holdingbranch'} eq $reserve{'wbrcode'}){ + $reserve{'atdestination'} = 1; + } } $reserve{'date'} = format_date($res->{'reservedate'}); $reserve{'borrowernumber'}=$res->{'borrowernumber'}; -- 2.39.5