[Koha-cvs] CVS: koha/C4 SearchMarc.pm,1.30,1.31
Paul POULAIN
tipaul at users.sourceforge.net
Fri Nov 5 11:10:51 CET 2004
Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11386/C4
Modified Files:
SearchMarc.pm
Log Message:
Limit search to 30 days when the order is by acquisition date desc (ie when the user want to see new books)
Index: SearchMarc.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/SearchMarc.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** SearchMarc.pm 27 Oct 2004 08:11:44 -0000 1.30
--- SearchMarc.pm 5 Nov 2004 10:10:48 -0000 1.31
***************
*** 260,263 ****
--- 260,264 ----
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( biblio.timestamp ) <30" if $orderby =~ "biblio.timestamp";
my $sth;
if ($sql_where2) {
More information about the Koha-cvs
mailing list