From eeea163fd86d3dffeac7b373d7d78c470918692a Mon Sep 17 00:00:00 2001 From: tipaul Date: Thu, 1 Dec 2005 15:30:53 +0000 Subject: [PATCH] small fix for recent acq --- C4/SearchMarc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SearchMarc.pm b/C4/SearchMarc.pm index 423c14dccf..53573c414e 100644 --- a/C4/SearchMarc.pm +++ b/C4/SearchMarc.pm @@ -278,7 +278,7 @@ sub catalogsearch { # Finds the basic results without the NOT requests my ($sql_tables, $sql_where1, $sql_where2) = create_request($dbh,\@normal_tags, \@normal_and_or, \@normal_operator, \@normal_value); - $sql_where1 .= "and TO_DAYS( NOW( ) ) - TO_DAYS( marc_biblio.datecreated ) <$desc_or_asc" if $orderby =~ "biblio.timestamp"; + $sql_where1 .= "and TO_DAYS( NOW( ) ) - TO_DAYS( marc_biblio.datecreated ) <$desc_or_asc" if $orderby =~ "biblio.timestamp" && $desc_or_asc>0 ; $desc_or_asc="DESC" if $orderby eq "biblio.timestamp"; # $offset=0 if $orderby eq "biblio.timestamp"; my $sth; -- 2.39.5