Auto_truncation is used even though exact search selected. This patch removes this side effect
Conflicts solved: C4/Search.pm Cherry-picked from 3.0.x : 3287252c0 --- C4/Search.pm | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 2fe57ed..c8eddab 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -932,7 +932,13 @@ sub buildQuery { } if ($auto_truncation){ - $operand=~join(" ",map{ "$_*" }split (/\s+/,$operand)); + unless ( $index =~ /(st-|phr|ext)/ ) { + #FIXME only valid with LTR scripts + $operand=join(" ",map{ + "$_*" + }split (/\s+/,$operand)); + warn $operand if $DEBUG; + } } # Detect Truncation @@ -1202,6 +1208,7 @@ 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] ); + my $biblionumber; if ($bibliotag<10){ $fw = GetFrameworkCode($marcrecord->field($bibliotag)->data); -- 1.6.3.3 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches