From 331e8497d6d40bd2318cdf6bad607b9a9ee6fce6 Mon Sep 17 00:00:00 2001 From: doxulting Date: Thu, 3 Mar 2005 09:33:14 +0000 Subject: [PATCH] Adding the order (ASC, DESC) parameter when calling catalogsearch --- opac/opac-search.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index ca99955f41..e8c074b128 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -50,6 +50,7 @@ if ($op eq "do_search") { $resultsperpage= $query->param('resultsperpage'); $resultsperpage = 19 if(!defined $resultsperpage); my $orderby = $query->param('orderby'); + my $desc_or_asc = $query->param('desc_or_asc'); # builds tag and subfield arrays my @tags; @@ -69,7 +70,7 @@ if ($op eq "do_search") { findseealso($dbh,\@tags); my ($results,$total) = catalogsearch($dbh, \@tags,\@and_or, \@excluding, \@operator, \@value, - $startfrom*$resultsperpage, $resultsperpage,$orderby); + $startfrom*$resultsperpage, $resultsperpage,$orderby, $desc_or_asc); ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "opac-searchresults.tmpl", -- 2.39.5