[Koha-patches] [PATCH] Bug 1807, can now search with : in the box if you want to use ccl do ccl: title=fish

Chris Cormack chris at bigballofwax.co.nz
Sat Dec 12 10:09:13 CET 2009


---
 C4/Search.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index bec44d2..e3f9258 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1092,7 +1092,9 @@ sub buildQuery {
     }
 
     # Normalize the query and limit strings
-    $query =~ s/:/=/g;
+    # This is flawed , means we can't search anything with : in it
+    # if user wants to do ccl or cql, start the query with that
+#    $query =~ s/:/=/g;
     $limit =~ s/:/=/g;
     for ( $query, $query_desc, $limit, $limit_desc ) {
         s/  / /g;    # remove extra spaces
-- 
1.6.3.3




More information about the Koha-patches mailing list