<td> <TMPL_VAR NAME=notes> </td>
</tr>
</TMPL_LOOP>
-<tr><td colspan=3><a href=search.pl?template=<TMPL_VAR NAME="template">&startfrom=<TMPL_VAR NAME="startfrom">>Next Records</a></td></tr>
+<tr><td colspan=3><a href=search.pl?template=<TMPL_VAR NAME="template">&startfrom=<TMPL_VAR NAME="nextstartfrom">>Next Records</a></td></tr>
</table>
<hr>
</body>
my $dbh=&C4Connect;
-print STDERR "SF: $startfrom\n";
my $template = HTML::Template->new(filename => $templatename, die_on_bad_params => 0);
my @results;
-$startfrom+=20;
$template->param(startfrom => $startfrom);
+$startfrom+=20;
+$template->param(nextstartfrom => $startfrom);
$template->param(template => $templatename);
$template->param(SEARCH_RESULTS => \@results);
-<a href=search.pl?template=cmsdsearchresults.tmpl>Template #1</a> | <a href=search.pl?template=searchresults.tmpl>Template #2</a>
+<a href=search.pl?template=cmsdsearchresults.tmpl&startfrom=<TMPL_VAR NAME="startfrom">>Template #1</a> | <a href=search.pl?template=searchresults.tmpl&startfrom=<TMPL_VAR NAME="startfrom">>Template #2</a>
<hr>
<td> <TMPL_VAR NAME=biblionumber> </td>
</tr>
</TMPL_LOOP>
-<tr><td colspan=3><a href=search.pl?template=<TMPL_VAR NAME="template">&startfrom=<TMPL_VAR NAME="startfrom">>Next Records</a></td></tr>
+<tr><td colspan=3><a href=search.pl?template=<TMPL_VAR NAME="template">&startfrom=<TMPL_VAR NAME="nextstartfrom">>Next Records</a></td></tr>
</table>
<hr>
</body>