[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/C4 SearchMarc.pm,1.30,1.31
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/C4 SearchMarc.pm,1.30,1.31 |
Date: |
Fri, 05 Nov 2004 02:10:51 -0800 |
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,address@hidden, address@hidden, address@hidden,
address@hidden);
+ $sql_where1 .= "and TO_DAYS( NOW( ) ) - TO_DAYS( biblio.timestamp )
<30" if $orderby =~ "biblio.timestamp";
my $sth;
if ($sql_where2) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/C4 SearchMarc.pm,1.30,1.31,
Paul POULAIN <=