Bugzilla – Attachment 14472 Details for
Bug 9368
specific behavior of yr and acqdate indexes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-9368-specific-behavior-of-yr-and-acqdate-indexes.patch (text/plain), 1.82 KB, created by
Fridolin Somers
on 2013-01-08 17:08:17 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-01-08 17:08:17 UTC
Size:
1.82 KB
patch
obsolete
>From eb5937cb98b924523e316d1153c6b619fd9c7180 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Tue, 8 Jan 2013 18:03:37 +0100 >Subject: [PATCH] Bug 9368: specific behavior of yr and acqdate indexes > >When searching on date of publication or date of acquisition index from advanced search, there are several bugs : >- The search is performed on no index, using only search therm. >- The next or previous pages lead to an empty result page. > >This comes from specific behavior in C4/Search.pm, $indexes_set flag is used but the index is not added to operand. >This patch corrects this. > >Test plan : >- Go to advance search >- Select publication date or acquisition date >- Enter a valid search term (you must have several pages of results) >- Click on search >=> result page shows a correct result number >- Click on page 2 >=> next results are shown >--- > C4/Search.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 50f7d2b..376f0e8 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1313,14 +1313,14 @@ sub buildQuery { > # Add index-specific attributes > # Date of Publication > if ( $index eq 'yr' ) { >- $index .= ",st-numeric"; >+ $operand = "$index,st-numeric=$operand"; > $indexes_set++; > $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; > } > > # Date of Acquisition > elsif ( $index eq 'acqdate' ) { >- $index .= ",st-date-normalized"; >+ $operand = "$index,st-date-normalized=$operand"; > $indexes_set++; > $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; > } >-- >1.7.9.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 9368
:
14472
|
15114
|
16268
|
26652
|
28916
|
30318
|
31552