[Koha-patches] [PATCH] Fix for Bug 3689 - Searching for a single keyword returns no results

Ricardo Dias Marques koha at ricmarques.net
Fri Oct 2 15:57:27 CEST 2009


This fix should be applied to the 3.0.x branch.

For more information, read the following Bug:

Bug 3689 - Searching for a single keyword returns no results, although they exist
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3689
---
 C4/Search.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index 809bc87..8b475b1 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1125,7 +1125,11 @@ sub buildQuery {
                 }
 
                 if ($auto_truncation){
-					unless ( $index =~ /(st-|phr|ext)/ ) {
+                    # unless ( $index =~ /(st-|phr|ext)/ ) {
+                    # Adding "kw" as FIX for Bug 3689 - Searching 
+                    #   for a single keyword returns no results,
+                    #   although they exist :
+                    unless ( $index =~ /(st-|phr|ext|kw)/ ) {
 						#FIXME only valid with LTR scripts
 						$operand=join(" ",map{ 
 												"$_*" 
-- 
1.5.6.5




More information about the Koha-patches mailing list