Bugzilla – Attachment 22517 Details for
Bug 11158
Authorities 'starts with' search returns the same as 'contains' when using ICU
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-11158-In-searching-starts-with-needs-to-apply-to.patch (text/plain), 1.35 KB, created by
Colin Campbell
on 2013-10-29 12:55:13 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2013-10-29 12:55:13 UTC
Size:
1.35 KB
patch
obsolete
>From 26a7e7229937a52cf76f28bb0678d784761bae91 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Tue, 29 Oct 2013 12:44:22 +0000 >Subject: [PATCH] Bug 11158 In searching starts with needs to apply to heading > >starts with was being applied to all tokens within the heading >needs to apply to the heading as a whole otherwise results >are indistinguishable to contains. The problem manifests if ICU >is being used for tokenization (although there are a couple of >anomalous cases that have cropped up using the old chr mappings) >--- > C4/AuthoritiesMarc.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 7443f36..2ece257 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -172,8 +172,8 @@ sub SearchAuthorities { > $attr .= " \@attr 4=107 "; #Number Exact match > } > elsif ( @$operator[$i] eq "start" ) { >- $attr .= " \@attr 3=2 \@attr 4=1 \@attr 5=1 " >- ; #Firstinfield Phrase, Right truncated >+ $attr .= ' \@attr 3=1 \@attr 6=3 \@attr 4=1 \@attr 5=1 '; >+ # First_in_field, complete_field phrase Right truncation > } > elsif ( @$operator[$i] eq "exact" ) { > $attr .= " \@attr 4=1 \@attr 5=100 \@attr 6=3 " >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11158
:
22517
|
114829
|
137049
|
137699