[Koha-cvs] CVS: koha/opac opac-searchresults.pl,1.1.2.9,1.1.2.10

Steve Tonnesen tonnesen at users.sourceforge.net
Fri Dec 6 21:36:06 CET 2002


Update of /cvsroot/koha/koha/opac
In directory sc8-pr-cvs1:/tmp/cvs-serv32674

Modified Files:
      Tag: rel-1-2
	opac-searchresults.pl 
Log Message:
Next and Previous buttons (and arrows) were also broken.


Index: opac-searchresults.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-searchresults.pl,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -C2 -r1.1.2.9 -r1.1.2.10
*** opac-searchresults.pl	6 Dec 2002 20:24:58 -0000	1.1.2.9
--- opac-searchresults.pl	6 Dec 2002 20:36:03 -0000	1.1.2.10
***************
*** 65,68 ****
--- 65,69 ----
  my $count;
  my $startfrom = $query->param('startfrom');
+ ($startfrom) || ($startfrom=0);
  my $subjectitems=$query->param('subjectitems');
  if ($subjectitems) {
***************
*** 88,93 ****
  
  
- my $startfrom=$query->param('startfrom');
- ($startfrom) || ($startfrom=0);
  
  my $resultsarray=\@results;
--- 89,92 ----
***************
*** 99,104 ****
  ($startfrom+$num<=$count) ? ($template->param(endat => $startfrom+$num)) : ($template->param(endat => $count));
  $template->param(numrecords => $count);
! my $nextstartfrom=($startfrom+$num<$count) ? ($startfrom+$num) : (-1);
! my $prevstartfrom=($startfrom-$num>=0) ? ($startfrom-$num) : (-1);
  $template->param(nextstartfrom => $nextstartfrom);
  my $displaynext=1;
--- 98,103 ----
  ($startfrom+$num<=$count) ? ($template->param(endat => $startfrom+$num)) : ($template->param(endat => $count));
  $template->param(numrecords => $count);
! my $nextstartfrom=($startfrom+$number_of_results_per_page<$count) ? ($startfrom+$number_of_results_per_page) : (-1);
! my $prevstartfrom=($startfrom-$number_of_results_per_page>=0) ? ($startfrom-$number_of_results_per_page) : (-1);
  $template->param(nextstartfrom => $nextstartfrom);
  my $displaynext=1;





More information about the Koha-cvs mailing list