Adding the order (ASC, DESC) parameter when calling catalogsearch
This commit is contained in:
parent
ec62b5e32a
commit
331e8497d6
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue