[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Search.pm
From: |
Bruno Toumi |
Subject: |
[Koha-cvs] koha/C4 Search.pm |
Date: |
Thu, 29 Mar 2007 09:28:07 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Changes by: Bruno Toumi <btoumi> 07/03/29 09:28:07
Modified files:
C4 : Search.pm
Log message:
modify advanced search query structure :
use 'or' instead of 'and' (you have no result if you use 'and')
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Search.pm?cvsroot=koha&r1=1.127&r2=1.128
Patches:
Index: Search.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Search.pm,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -b -r1.127 -r1.128
--- Search.pm 9 Mar 2007 14:31:47 -0000 1.127
+++ Search.pm 29 Mar 2007 09:28:07 -0000 1.128
@@ -25,7 +25,7 @@
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.127 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.128 $' =~ /\d+/g;
shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v );
};
@@ -725,8 +725,8 @@
# these are treated as AND
elsif ($limit_query) {
- $limit_query .= " and $limit" if $limit;
- $limit_search_desc .= " and $limit" if $limit;
+ $limit_query .= " or $limit" if $limit;
+ $limit_search_desc .= " or $limit" if $limit;
}
# otherwise, there is nothing but the limit
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/C4 Search.pm,
Bruno Toumi <=