Bugzilla – Attachment 24682 Details for
Bug 11533
"use" QueryParser breaks authority search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11533: (regression test) QP breaks authority search
Bug-11533-regression-test-QP-breaks-authority-sear.patch (text/plain), 1.70 KB, created by
Kyle M Hall (khall)
on 2014-01-24 13:41:40 UTC
(
hide
)
Description:
Bug 11533: (regression test) QP breaks authority search
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-01-24 13:41:40 UTC
Size:
1.70 KB
patch
obsolete
>From 8bbcf7f668cbf9bcdec375e018166f3b91f9ad79 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 13 Jan 2014 16:26:22 -0300 >Subject: [PATCH] Bug 11533: (regression test) QP breaks authority search > >This patch duplicates the SearchAuthority tests, with QP enabled. >Searching shouldn't be affected by QP. Instructions for manually >reproducing this can be read in the first comment for the bug entry. > >Sponsored-by: Universidad Nacional de Cordoba >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Search.t | 16 +++++++++++++++- > 1 files changed, 15 insertions(+), 1 deletions(-) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index 2a7215d..d358e98 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -12,7 +12,7 @@ use YAML; > use C4::Debug; > require C4::Context; > >-use Test::More tests => 212; >+use Test::More tests => 216; > use Test::MockModule; > use MARC::Record; > use File::Spec; >@@ -742,6 +742,20 @@ sub run_marc21_search_tests { > ); > is($count, 1, 'MARC21 authorities: one hit on match contains "æ²å£«åäºå¨å»å§"'); > >+ $UseQueryParser = 1; >+ >+ ($auths, $count) = SearchAuthorities( >+ ['mainentry'], ['and'], [''], ['starts'], >+ ['shakespeare'], 0, 10, '', '', 1 >+ ); >+ is($count, 1, 'MARC21 authorities: one hit on mainentry starts with "shakespeare" (QP)'); >+ ($auths, $count) = SearchAuthorities( >+ ['match'], ['and'], [''], ['contains'], >+ ['æ²å£«åäºå¨å»å§'], 0, 10, '', '', 1 >+ ); >+ is($count, 1, 'MARC21 authorities: one hit on match contains "æ²å£«åäºå¨å»å§" (QP)'); >+ >+ > cleanup(); > } > >-- >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 11533
:
24236
|
24471
|
24472
|
24610
| 24682 |
24683