Bugzilla – Attachment 4580 Details for
Bug 2809
Some search problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2809 : Rebased and Reformatted for master, please test thoroughly
Bug-2809--Rebased-and-Reformatted-for-master-pleas.patch (text/plain), 2.67 KB, created by
Chris Cormack
on 2011-07-07 21:05:36 UTC
(
hide
)
Description:
Bug 2809 : Rebased and Reformatted for master, please test thoroughly
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-07-07 21:05:36 UTC
Size:
2.67 KB
patch
obsolete
>From 8b6cb0a412712c96d12fe5b0bf18edc87758f308 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 8 Jul 2011 09:04:47 +1200 >Subject: [PATCH] Bug 2809 : Rebased and Reformatted for master, please test thoroughly > >--- > C4/Search.pm | 42 +++++++++++++++++++++++------------------- > 1 files changed, 23 insertions(+), 19 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index c3cff65..9a66c9c 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1147,15 +1147,15 @@ sub buildQuery { > # Date of Publication > if ( $index eq 'yr' ) { > $index .= ",st-numeric"; >- $indexes_set++; >- $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; >+# $indexes_set++; >+ $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; > } > > # Date of Acquisition > elsif ( $index eq 'acqdate' ) { > $index .= ",st-date-normalized"; >- $indexes_set++; >- $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; >+# $indexes_set++; >+ $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; > } > # ISBN,ISSN,Standard Number, don't need special treatment > elsif ( $index eq 'nb' || $index eq 'ns' ) { >@@ -1336,21 +1336,25 @@ sub buildQuery { > > # Regular old limits > else { >- $limit .= " and " if $limit || $query; >- $limit .= "$this_limit"; >- $limit_cgi .= "&limit=$this_limit"; >- if ($this_limit =~ /^branch:(.+)/) { >- my $branchcode = $1; >- my $branchname = GetBranchName($branchcode); >- if (defined $branchname) { >- $limit_desc .= " branch:$branchname"; >- } else { >- $limit_desc .= " $this_limit"; >- } >- } else { >- $limit_desc .= " $this_limit"; >- } >- } >+ if ($this_limit){ >+ $limit .= " and " if $limit || $query; >+ $limit .= "$this_limit"; >+ $limit_cgi .= "&limit=$this_limit"; >+ if ($this_limit =~ /^branch:(.+)/) { >+ my $branchcode = $1; >+ my $branchname = GetBranchName($branchcode); >+ if (defined $branchname) { >+ $limit_desc .= " branch:$branchname"; >+ } >+ else { >+ $limit_desc .= " $this_limit"; >+ } >+ } >+ else { >+ $limit_desc .= " $this_limit"; >+ } >+ } >+ } > } > if ($group_OR_limits) { > $limit .= " and " if ( $query || $limit ); >-- >1.7.4.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 2809
:
861
| 4580