[Koha-cvs] CVS: koha/opac opac-new.pl,1.1.2.1,1.1.2.2

Paul POULAIN tipaul at users.sourceforge.net
Mon Mar 15 18:30:29 CET 2004


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

Modified Files:
      Tag: rel_2_0
	opac-new.pl 
Log Message:
bugfixes in opac new acquisitions

Index: opac-new.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-new.pl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** opac-new.pl	6 Jan 2004 15:46:17 -0000	1.1.2.1
--- opac-new.pl	15 Mar 2004 17:30:26 -0000	1.1.2.2
***************
*** 27,32 ****
  ($startfrom) || ($startfrom=0);
  my $subjectitems=$query->param('subjectitems');
! my (@results) = newsearch($itemtype,$duration,$number_of_results,$startfrom);
! my $count= $#results+1;
  my $num = 1;
  foreach my $res (@results) {
--- 27,33 ----
  ($startfrom) || ($startfrom=0);
  my $subjectitems=$query->param('subjectitems');
! my $count;
! my @results;
! ($count, at results) = newsearch($itemtype,$duration,$number_of_results,$startfrom);
  my $num = 1;
  foreach my $res (@results) {
***************
*** 60,64 ****
  				searchnew => 1,
  				itemtype => ItemType($itemtype),
! 				duration => $duration);
  
  $template->param(SEARCH_RESULTS => $resultsarray,
--- 61,67 ----
  				searchnew => 1,
  				itemtype => ItemType($itemtype),
! 				itemtypecode => $itemtype,
! 				duration => $duration,
! 				opacnew => 1);
  
  $template->param(SEARCH_RESULTS => $resultsarray,
***************
*** 73,77 ****
  		my $themelang = $template->param('themelang');
  		($startfrom==($i-1)*$number_of_results+1) && ($highlight=1);
! 		push @$numbers, { number => $i, highlight => $highlight , startfrom => ($i-1)*$number_of_results+1 };
  	}
  }
--- 76,80 ----
  		my $themelang = $template->param('themelang');
  		($startfrom==($i-1)*$number_of_results+1) && ($highlight=1);
! 		push @$numbers, { number => $i, highlight => $highlight , startfrom => ($i-1)*$number_of_results };
  	}
  }





More information about the Koha-cvs mailing list