Revert "C4/Search.pm followup auto_truncation 3.0.x cherry-pick"
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Dec 2009 16:01:00 +0000 (17:01 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 28 Jan 2010 14:11:46 +0000 (15:11 +0100)
This reverts commit 58406a5e4bb50e18c9620e91b90295d8219842b8.

Conflicts:

C4/Search.pm

C4/Search.pm

index 993a92f..b35ca9f 100644 (file)
@@ -934,13 +934,7 @@ sub buildQuery {
                 }
 
                 if ($auto_truncation){
-                                       unless ( $index =~ /(st-|phr|ext)/ ) {
-                                               #FIXME only valid with LTR scripts
-                                               $operand=join(" ",map{ 
-                                                                                       (index($_,"*")>0?"$_":"$_*")
-                                                                                        }split (/\s+/,$operand));
-                                               warn $operand if $DEBUG;
-                                       }
+                                       $operand=~join(" ",map{ "$_*" }split (/\s+/,$operand));
                                }
 
                 # Detect Truncation
@@ -1212,12 +1206,6 @@ sub searchResults {
     # loop through all of the records we've retrieved
     for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) {
         my $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] );
-<<<<<<< HEAD:C4/Search.pm
-
-=======
-               my $biblionumber;
-        
->>>>>>> C4/Search.pm followup auto_truncation 3.0.x cherry-pick:C4/Search.pm
         if ($bibliotag<10){
             $fw = GetFrameworkCode($marcrecord->field($bibliotag)->data);
         }else{