modify advanced search query structure :
authorbtoumi <btoumi>
Thu, 29 Mar 2007 09:28:07 +0000 (09:28 +0000)
committerbtoumi <btoumi>
Thu, 29 Mar 2007 09:28:07 +0000 (09:28 +0000)
use 'or' instead of 'and' (you  have  no result if you use  'and')

C4/Search.pm

index d3fbfca..7d93c55 100755 (executable)
@@ -725,8 +725,8 @@ sub buildQuery {
 
         # 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