[Koha-cvs] CVS: koha/html-template cmsdsearchresults.tmpl,1.2,1.3 search.pl,1.4,1.5 searchheader.tmpl,1.1,1.2 searchresults.tmpl,1.5,1.6

Steve Tonnesen tonnesen at users.sourceforge.net
Fri May 10 23:26:26 CEST 2002


Update of /cvsroot/koha/koha/html-template
In directory usw-pr-cvs1:/tmp/cvs-serv26831

Modified Files:
	cmsdsearchresults.tmpl search.pl searchheader.tmpl 
	searchresults.tmpl 
Log Message:
Fixed startfrom in template links in header


Index: cmsdsearchresults.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/html-template/cmsdsearchresults.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** cmsdsearchresults.tmpl	10 May 2002 21:22:18 -0000	1.2
--- cmsdsearchresults.tmpl	10 May 2002 21:26:24 -0000	1.3
***************
*** 13,17 ****
    </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>
  </table>
  <hr>
--- 13,17 ----
    </tr>
  </TMPL_LOOP>
! <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>

Index: search.pl
===================================================================
RCS file: /cvsroot/koha/koha/html-template/search.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** search.pl	10 May 2002 21:22:18 -0000	1.4
--- search.pl	10 May 2002 21:26:24 -0000	1.5
***************
*** 17,21 ****
  
  
- print STDERR "SF: $startfrom\n";
  my $template = HTML::Template->new(filename => $templatename, die_on_bad_params => 0);
  
--- 17,20 ----
***************
*** 29,34 ****
  
  
- $startfrom+=20;
  $template->param(startfrom => $startfrom);
  $template->param(template => $templatename);
  $template->param(SEARCH_RESULTS => \@results);
--- 28,34 ----
  
  
  $template->param(startfrom => $startfrom);
+ $startfrom+=20;
+ $template->param(nextstartfrom => $startfrom);
  $template->param(template => $templatename);
  $template->param(SEARCH_RESULTS => \@results);

Index: searchheader.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/html-template/searchheader.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** searchheader.tmpl	10 May 2002 17:41:05 -0000	1.1
--- searchheader.tmpl	10 May 2002 21:26:24 -0000	1.2
***************
*** 1,2 ****
! <a href=search.pl?template=cmsdsearchresults.tmpl>Template #1</a> | <a href=search.pl?template=searchresults.tmpl>Template #2</a>
  <hr>
--- 1,2 ----
! <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>

Index: searchresults.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/html-template/searchresults.tmpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** searchresults.tmpl	10 May 2002 21:22:18 -0000	1.5
--- searchresults.tmpl	10 May 2002 21:26:24 -0000	1.6
***************
*** 13,17 ****
    </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>
  </table>
  <hr>
--- 13,17 ----
    </tr>
  </TMPL_LOOP>
! <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>





More information about the Koha-cvs mailing list