koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] Changes to koha/C4/SearchMarc.pm [rel_2_2]


From: paul poulain
Subject: [Koha-cvs] Changes to koha/C4/SearchMarc.pm [rel_2_2]
Date: Thu, 01 Dec 2005 10:30:53 -0500

Index: koha/C4/SearchMarc.pm
diff -u koha/C4/SearchMarc.pm:1.36.2.18 koha/C4/SearchMarc.pm:1.36.2.19
--- koha/C4/SearchMarc.pm:1.36.2.18     Tue Oct  4 14:48:23 2005
+++ koha/C4/SearchMarc.pm       Thu Dec  1 15:30:53 2005
@@ -278,7 +278,7 @@
        # Finds the basic results without the NOT requests
        my ($sql_tables, $sql_where1, $sql_where2) = 
create_request($dbh,address@hidden, address@hidden, address@hidden, 
address@hidden);
 
-       $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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]