[Koha-cvs] CVS: koha/opac opac-user.pl,1.14,1.14.2.1

Owen Leonard oleonard at users.sourceforge.net
Fri Jan 28 20:34:17 CET 2005


Update of /cvsroot/koha/koha/opac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4384/opac

Modified Files:
      Tag: rel_2_2
	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.  Copying this fix from HEAD to rel_2_2. Helps fix Bug 670

Index: opac-user.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-user.pl,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -C2 -r1.14 -r1.14.2.1
*** opac-user.pl	4 May 2004 15:46:58 -0000	1.14
--- opac-user.pl	28 Jan 2005 19:34:15 -0000	1.14.2.1
***************
*** 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