[Koha-cvs] CVS: koha/C4 SearchMarc.pm,1.36.2.14,1.36.2.15

Paul POULAIN tipaul at users.sourceforge.net
Fri Sep 23 11:45:11 CEST 2005


Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30610/C4

Modified Files:
      Tag: rel_2_2
	SearchMarc.pm 
Log Message:
fixing bug for recent acquisitions. Now works well.

Index: SearchMarc.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/SearchMarc.pm,v
retrieving revision 1.36.2.14
retrieving revision 1.36.2.15
diff -C2 -r1.36.2.14 -r1.36.2.15
*** SearchMarc.pm	14 Sep 2005 16:00:15 -0000	1.36.2.14
--- SearchMarc.pm	23 Sep 2005 09:45:09 -0000	1.36.2.15
***************
*** 279,283 ****
  	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 ) <300" if $orderby =~ "biblio.timestamp";
  	my $sth;
  	if ($sql_where2) {
--- 279,285 ----
  	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";
! 	$desc_or_asc="DESC" if $orderby="biblio.timestamp";
! # 	$offset=0 if $orderby eq "biblio.timestamp";
  	my $sth;
  	if ($sql_where2) {





More information about the Koha-cvs mailing list