[Koha-cvs] CVS: koha/opac opac-user.pl,1.14,1.15
Owen Leonard
oleonard at users.sourceforge.net
Wed Jan 19 22:18:10 CET 2005
Update of /cvsroot/koha/koha/opac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6934/opac
Modified Files:
opac-user.pl
Log Message:
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.
Index: opac-user.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-user.pl,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** opac-user.pl 4 May 2004 15:46:58 -0000 1.14
--- opac-user.pl 19 Jan 2005 21:18:06 -0000 1.15
***************
*** 124,128 ****
--- 124,133 ----
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++;
More information about the Koha-cvs
mailing list