[Koha-cvs] CVS: koha/html-template search.pl,1.7,1.8
Chris Cormack
rangi at users.sourceforge.net
Tue May 14 00:29:29 CEST 2002
- Previous message: [Koha-cvs] CVS: koha/C4 Acquisitions.pm,1.12,1.13
- Next message: [Koha-cvs] CVS: koha/html-template cmsd.tmpl,NONE,1.1 default.tmpl,NONE,1.1 cmsdsearchresults.tmpl,1.5,1.6 search.pl,1.8,1.9 searchresults.tmpl,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/koha/koha/html-template
In directory usw-pr-cvs1:/tmp/cvs-serv22361
Modified Files:
search.pl
Log Message:
Will work now with the existing C4/Search.pm at least the one in the main
branch.
Will still break with the version in rel-1.2
Index: search.pl
===================================================================
RCS file: /cvsroot/koha/koha/html-template/search.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** search.pl 10 May 2002 22:34:36 -0000 1.7
--- search.pl 13 May 2002 22:29:27 -0000 1.8
***************
*** 9,16 ****
my $query=new CGI;
my $templatename=$query->param('template');
my $startfrom=$query->param('startfrom');
($startfrom) || ($startfrom=0);
! ($templatename) || ($templatename='searchresults.tmpl');
--- 9,20 ----
my $query=new CGI;
+ # temporary variable for testing. Replace from /etc/koha.conf
+
+ my $templatedir="/usr/share/koha/intranet/htdocs/includes/templates";
+
my $templatename=$query->param('template');
my $startfrom=$query->param('startfrom');
($startfrom) || ($startfrom=0);
! ($templatename) || ($templatename="$templatedir/searchresults.tmpl");
***************
*** 32,37 ****
$search{'keyword'}=$keyword;
! my ($count, $resultshash, @results) = &KeywordSearch(\$blah, 'intra', \%search, 20, $startfrom);
!
--- 36,41 ----
$search{'keyword'}=$keyword;
! my ($count, @results) = &KeywordSearch(\$blah, 'intra', \%search, 20, $startfrom);
! my $resultshash=\@results;
- Previous message: [Koha-cvs] CVS: koha/C4 Acquisitions.pm,1.12,1.13
- Next message: [Koha-cvs] CVS: koha/html-template cmsd.tmpl,NONE,1.1 default.tmpl,NONE,1.1 cmsdsearchresults.tmpl,1.5,1.6 search.pl,1.8,1.9 searchresults.tmpl,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Koha-cvs
mailing list