[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/opac opac-searchresults.pl,1.1.2.9,1.1.2.10
From: |
Steve Tonnesen |
Subject: |
[Koha-cvs] CVS: koha/opac opac-searchresults.pl,1.1.2.9,1.1.2.10 |
Date: |
Fri, 06 Dec 2002 12:36:06 -0800 |
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 address@hidden;
--- 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/opac opac-searchresults.pl,1.1.2.9,1.1.2.10,
Steve Tonnesen <=