Comparing reserves' destination branch to the current holding branch to determine...
authoroleonard <oleonard>
Wed, 19 Jan 2005 21:39:25 +0000 (21:39 +0000)
committeroleonard <oleonard>
Wed, 19 Jan 2005 21:39:25 +0000 (21:39 +0000)
request.pl

index 1f28e76..39ccc26 100755 (executable)
@@ -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'};