followup : auto_truncation 3287252c0
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 13 Oct 2009 14:22:24 +0000 (16:22 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 14 Oct 2009 16:34:46 +0000 (18:34 +0200)
truncated words bore a double * which would create an error

C4/Search.pm

index f600685..a468821 100644 (file)
@@ -1133,7 +1133,7 @@ sub buildQuery {
                                        unless ( $index =~ /(st-|phr|ext)/ ) {
                                                #FIXME only valid with LTR scripts
                                                $operand=join(" ",map{ 
-                                                                                               "$_*" 
+                                                                                       (index($_,"*")>0?"$_":"$_*")
                                                                                         }split (/\s+/,$operand));
                                                warn $operand if $DEBUG;
                                        }