[Koha-cvs] CVS: koha moredetail.pl,1.10,1.11

Steve Tonnesen tonnesen at users.sourceforge.net
Wed Oct 9 20:02:19 CEST 2002


Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv9521

Modified Files:
	moredetail.pl 
Log Message:
Switched from "picktemplate" to "gettemplate"


Index: moredetail.pl
===================================================================
RCS file: /cvsroot/koha/koha/moredetail.pl,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** moredetail.pl	5 Oct 2002 09:46:02 -0000	1.10
--- moredetail.pl	9 Oct 2002 18:02:15 -0000	1.11
***************
*** 31,44 ****
  my $includes = C4::Context->config('includes') ||
  	"/usr/local/www/hdl/htdocs/includes";
- my $templatebase="catalogue/moredetail.tmpl";
  my $startfrom=$query->param('startfrom') || 0;
- my $theme=picktemplate($includes, $templatebase);
  
! my $subject=$query->param('subject');
! # if its a subject we need to use the subject.tmpl
! if ($subject){
!   $templatebase=~ s/searchresults\.tmpl/subject\.tmpl/;
! }
! my $template = HTML::Template->new(filename => "$includes/templates/$theme/$templatebase", die_on_bad_params => 0, path => [$includes]);
  
  # get variables 
--- 31,38 ----
  my $includes = C4::Context->config('includes') ||
  	"/usr/local/www/hdl/htdocs/includes";
  my $startfrom=$query->param('startfrom') || 0;
  
! 
! my $template = gettemplate("catalogue/moredetail.tmpl");
  
  # get variables 





More information about the Koha-cvs mailing list