[Koha-cvs] CVS: koha/C4 Authorities.pm,1.7.2.1,1.7.2.2

Paul POULAIN tipaul at users.sourceforge.net
Fri Feb 6 15:15:58 CET 2004


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

Modified Files:
      Tag: rel_2_0
	Authorities.pm 
Log Message:
modifying order (mysql auto sort by relevance)

Index: Authorities.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Authorities.pm,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -C2 -r1.7.2.1 -r1.7.2.2
*** Authorities.pm	26 Jan 2004 10:36:42 -0000	1.7.2.1
--- Authorities.pm	6 Feb 2004 14:15:56 -0000	1.7.2.2
***************
*** 193,199 ****
  		}
  #	$query .= " and freelib like \"$searchstring%\"" if ($searchstring);
! 	$query .= " order by category,freelib limit ?,?";
  	push(@bind,$offset,($pagesize*4));
! # 	warn "q : $query";
  	my $sth=$dbh->prepare($query);
  	$sth->execute(@bind);
--- 193,199 ----
  		}
  #	$query .= " and freelib like \"$searchstring%\"" if ($searchstring);
! 	$query .= " limit ?,?";
  	push(@bind,$offset,($pagesize*4));
! 	warn "q : $query". at bind;
  	my $sth=$dbh->prepare($query);
  	$sth->execute(@bind);





More information about the Koha-cvs mailing list