projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63e9b14
)
Fix for bug 1249: Searching for a title beginning with And, Or, or Not
author
kados
<kados>
Wed, 9 May 2007 19:39:02 +0000
(19:39 +0000)
committer
kados
<kados>
Wed, 9 May 2007 19:39:02 +0000
(19:39 +0000)
results in an error
C4/Search.pm
patch
|
blob
|
history
diff --git
a/C4/Search.pm
b/C4/Search.pm
index
78901e6
..
03edac1
100755
(executable)
--- a/
C4/Search.pm
+++ b/
C4/Search.pm
@@
-558,6
+558,7
@@
sub buildQuery {
my $weight_fields = C4::Context->parameters("WeightFields") || 0;
if ( $operands[$i] ) {
+ $operand =~ s/^(and|or|not)//i;
# STEMMING FIXME: need to refine the field weighting so stemmed operands don't disrupt the query ranking
if ($stemming) {