[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Search.pm [rel_3_0]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/C4 Search.pm [rel_3_0] |
Date: |
Tue, 28 Nov 2006 15:14:28 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/11/28 15:14:28
Modified files:
C4 : Search.pm
Log message:
sync with dev_week:
(
Fixes two bugs:
1. stemmed operators < 3 chars weren't being skipped (bad syntax)
2. FindDuplicate was failing when the title contained '(' or ')'
)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Search.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.120.2.31&r2=1.120.2.32
Patches:
Index: Search.pm
===================================================================
RCS file: /sources/koha/koha/C4/Search.pm,v
retrieving revision 1.120.2.31
retrieving revision 1.120.2.32
diff -u -b -r1.120.2.31 -r1.120.2.32
--- Search.pm 27 Nov 2006 15:14:52 -0000 1.120.2.31
+++ Search.pm 28 Nov 2006 15:14:28 -0000 1.120.2.32
@@ -39,7 +39,7 @@
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.120.2.31 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.120.2.32 $' =~ /\d+/g;
shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v );
};
@@ -504,6 +504,8 @@
else {
$result->{title} =~ s /\\//g;
$result->{title} =~ s /\"//g;
+ $result->{title}=~s /\(//g;
+ $result->{title}=~s /\)//g;
$query = "ti,ext=$result->{title}";
}
my ($possible_duplicate_record) =
@@ -516,7 +518,6 @@
$result->{'title'}
if $result;
}
-
}
=item KeywordSearch
@@ -2905,7 +2906,7 @@
$stemmed_operand .= "$stem";
$stemmed_operand .= "?"
unless ( $stem =~ /(and$|or$|not$)/ )
- || ( length( $stem < 3 ) );
+ || ( length( $stem ) < 3 );
$stemmed_operand .= " ";
#warn "STEM: $stemmed_operand";
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], Antoine Farnault, 2006/11/02
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], Antoine Farnault, 2006/11/10
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], paul poulain, 2006/11/15
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], paul poulain, 2006/11/15
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], paul poulain, 2006/11/16
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], Antoine Farnault, 2006/11/20
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], Antoine Farnault, 2006/11/21
- [Koha-cvs] koha/C4 Search.pm [rel_3_0], Antoine Farnault, 2006/11/27
- [Koha-cvs] koha/C4 Search.pm [rel_3_0],
Antoine Farnault <=