/[koha]/koha/C4/SearchMarc.pm
ViewVC logotype

Diff of /koha/C4/SearchMarc.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36.2.18 by tipaul, Tue Oct 4 14:48:23 2005 UTC revision 1.36.2.19 by tipaul, Thu Dec 1 15:30:53 2005 UTC
# Line 278  sub catalogsearch { Line 278  sub catalogsearch {
278          # Finds the basic results without the NOT requests          # Finds the basic results without the NOT requests
279          my ($sql_tables, $sql_where1, $sql_where2) = create_request($dbh,\@normal_tags, \@normal_and_or, \@normal_operator, \@normal_value);          my ($sql_tables, $sql_where1, $sql_where2) = create_request($dbh,\@normal_tags, \@normal_and_or, \@normal_operator, \@normal_value);
280    
281          $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   ;
282          $desc_or_asc="DESC" if $orderby eq "biblio.timestamp";          $desc_or_asc="DESC" if $orderby eq "biblio.timestamp";
283  #       $offset=0 if $orderby eq "biblio.timestamp";  #       $offset=0 if $orderby eq "biblio.timestamp";
284          my $sth;          my $sth;

Legend:
Removed from v.1.36.2.18  
changed lines
  Added in v.1.36.2.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26