Comparing reserves' destination branch to the current holding branch to determine...
authoroleonard <oleonard>
Wed, 19 Jan 2005 21:18:06 +0000 (21:18 +0000)
committeroleonard <oleonard>
Wed, 19 Jan 2005 21:18:06 +0000 (21:18 +0000)
opac/opac-user.pl

index 5a498dd..4deac05 100755 (executable)
@@ -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++;
     }