Bugzilla – Attachment 2762 Details for
Bug 4074
The 'Subject(s)' link(s) are malformed resulting in no search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-4074-Fix-fail-to-parse-simple-qualified-search.patch (text/plain), 1.31 KB, created by
Colin Campbell
on 2010-11-16 17:33:10 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2010-11-16 17:33:10 UTC
Size:
1.31 KB
patch
obsolete
>From 9f51bd668803069e36644dedc06d29a56f78bd97 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Tue, 16 Nov 2010 17:21:42 +0000 >Subject: [PATCH] Bug 4074 Fix fail to parse simple qualified search >Content-Type: text/plain; charset="utf-8" > >Searches such as au,phr and kw,wrdl were passing through the regexes >that should replace colon with equals >add wrdl and phr >use trn so not just rtrn is spotted >Where we were checking for multiple spaces specify that in the >regex not just two spaces >--- > C4/Search.pm | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index d36459a..93999bb 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1308,10 +1308,11 @@ sub buildQuery { > # if user wants to do ccl or cql, start the query with that > # $query =~ s/:/=/g; > $query =~ s/(?<=(ti|au|pb|su|an|kw|mc)):/=/g; >- $query =~ s/(?<=rtrn):/=/g; >+ $query =~ s/(?<=(wrdl)):/=/g; >+ $query =~ s/(?<=(trn|phr)):/=/g; > $limit =~ s/:/=/g; > for ( $query, $query_desc, $limit, $limit_desc ) { >- s/ / /g; # remove extra spaces >+ s/ +/ /g; # remove extra spaces > s/^ //g; # remove any beginning spaces > s/ $//g; # remove any ending spaces > s/==/=/g; # remove double == from query >-- >1.7.3.2 >
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 4074
:
1813
|
1814
|
1815
| 2762