Browse Source

Adding the order (ASC, DESC) parameter when calling catalogsearch

3.0.x
doxulting 18 years ago
parent
commit
331e8497d6
  1. 3
      opac/opac-search.pl

3
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",

Loading…
Cancel
Save