Bugzilla – Attachment 3471 Details for
Bug 5555
ISBN search returns bad results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Corrected-search-for-ISBN-ISSN.patch (text/plain), 1.58 KB, created by
Janusz Kaczmarek
on 2011-03-28 16:55:56 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2011-03-28 16:55:56 UTC
Size:
1.58 KB
patch
obsolete
>From f443771e91206af21e0f1e7fdac257120af6e172 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 28 Mar 2011 17:58:13 +0200 >Subject: [PATCH] Corrected search for ISBN / ISSN >Content-Type: text/plain; charset="utf-8" > >--- > C4/Search.pm | 5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 3a86758..e7704e2 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1117,7 +1117,6 @@ sub buildQuery { > } > # ISBN,ISSN,Standard Number, don't need special treatment > elsif ( $index eq 'nb' || $index eq 'ns' ) { >- $indexes_set++; > ( > $stemming, $auto_truncation, > $weight_fields, $fuzzy_enabled, >@@ -1132,7 +1131,7 @@ sub buildQuery { > > # Set default structure attribute (word list) > my $struct_attr = q{}; >- unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl)/ ) { >+ unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl|nb|ns)/ ) { > $struct_attr = ",wrdl"; > } > >@@ -1324,7 +1323,7 @@ sub buildQuery { > # This is flawed , means we can't search anything with : in it > # 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/(?<=(ti|au|pb|su|an|kw|mc|nb|ns)):/=/g; > $query =~ s/(?<=(wrdl)):/=/g; > $query =~ s/(?<=(trn|phr)):/=/g; > $limit =~ s/:/=/g; >-- >1.7.2.5 >
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 5555
: 3471