From 8bebcfb2a56fe1e895f8c19363c7e57903e80b0a Mon Sep 17 00:00:00 2001 From: gmccullagh Date: Thu, 2 Jun 2005 13:47:47 +0000 Subject: [PATCH] just declared $totalResults and added an indent at the end --- opac/opac-search.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index d23c80a797..2fa016d154 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -22,6 +22,9 @@ my $brancheslist; my $categorylist; my $subcategorylist; my $mediatypelist; +# added by Gavin +my $totalresults; + my $dbh=C4::Context->dbh; my $sth=$dbh->prepare("select description,itemtype from itemtypes order by description"); $sth->execute; @@ -180,8 +183,9 @@ if ($op eq "do_search") { # 3. It provides the variables necessary for the spellchecking (look below for # how this is done # 4. -# + $totalresults = $total; + ## This formats the 'search results' string and populates ## the 'OPLIN' variable as well as the 'spellcheck' variable ## with appropriate values based on the user's search input @@ -407,5 +411,5 @@ if ($totalresults == 1){ print $query->redirect("/cgi-bin/koha/opac-detail.pl?bib=$firstbiblionumber"); } else { -output_html_with_http_headers $query, $cookie, $template->output; + output_html_with_http_headers $query, $cookie, $template->output; } -- 2.39.5