[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Search.pm [dev_week]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/C4 Search.pm [dev_week] |
Date: |
Wed, 09 May 2007 19:41:06 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Joshua Ferraro <kados> 07/05/09 19:41:06
Modified files:
C4 : Search.pm
Log message:
fix for bug 1249: Searching for a title beginning with And, Or, or Not
results
in an error
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Search.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.99.2.11.2.39&r2=1.99.2.11.2.40
Patches:
Index: Search.pm
===================================================================
RCS file: /sources/koha/koha/C4/Search.pm,v
retrieving revision 1.99.2.11.2.39
retrieving revision 1.99.2.11.2.40
diff -u -b -r1.99.2.11.2.39 -r1.99.2.11.2.40
--- Search.pm 19 Apr 2007 16:19:55 -0000 1.99.2.11.2.39
+++ Search.pm 9 May 2007 19:41:06 -0000 1.99.2.11.2.40
@@ -40,7 +40,7 @@
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.99.2.11.2.39 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.99.2.11.2.40 $' =~ /\d+/g;
shift(@v) . "." . join("_", map {sprintf "%03d", $_ } @v); };
=head1 NAME
@@ -3239,6 +3239,7 @@
my $stemmed_operand;
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) {
- [Koha-cvs] koha/C4 Search.pm [dev_week],
Joshua Ferraro <=