From 7e48dd51149d47527722a76702199ffa9908715b Mon Sep 17 00:00:00 2001 From: tonnesen Date: Fri, 10 May 2002 21:26:24 +0000 Subject: [PATCH] Fixed startfrom in template links in header --- html-template/cmsdsearchresults.tmpl | 2 +- html-template/search.pl | 4 ++-- html-template/searchheader.tmpl | 2 +- html-template/searchresults.tmpl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html-template/cmsdsearchresults.tmpl b/html-template/cmsdsearchresults.tmpl index 3ffb0f5145..f857d0bb08 100644 --- a/html-template/cmsdsearchresults.tmpl +++ b/html-template/cmsdsearchresults.tmpl @@ -12,7 +12,7 @@ -&startfrom=>Next Records +&startfrom=>Next Records
diff --git a/html-template/search.pl b/html-template/search.pl index 0fb067253b..09e2e19e17 100755 --- a/html-template/search.pl +++ b/html-template/search.pl @@ -16,7 +16,6 @@ my $startfrom=$query->param('startfrom'); my $dbh=&C4Connect; -print STDERR "SF: $startfrom\n"; my $template = HTML::Template->new(filename => $templatename, die_on_bad_params => 0); my @results; @@ -28,8 +27,9 @@ while (my $data=$sth->fetchrow_hashref){ -$startfrom+=20; $template->param(startfrom => $startfrom); +$startfrom+=20; +$template->param(nextstartfrom => $startfrom); $template->param(template => $templatename); $template->param(SEARCH_RESULTS => \@results); diff --git a/html-template/searchheader.tmpl b/html-template/searchheader.tmpl index c2dc399767..bb8fc2fda5 100644 --- a/html-template/searchheader.tmpl +++ b/html-template/searchheader.tmpl @@ -1,2 +1,2 @@ -Template #1 | Template #2 +>Template #1 | >Template #2
diff --git a/html-template/searchresults.tmpl b/html-template/searchresults.tmpl index 3db4a47d90..fa0852ed34 100644 --- a/html-template/searchresults.tmpl +++ b/html-template/searchresults.tmpl @@ -12,7 +12,7 @@ -&startfrom=>Next Records +&startfrom=>Next Records
-- 2.39.5