Bugzilla – Attachment 144562 Details for
Bug 20596
Authority record matching rule causes staging failure when MARC record contains multiple tag values for a match point
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20596: Add unit test for multiple values in authority search
Bug-20596-Add-unit-test-for-multiple-values-in-aut.patch (text/plain), 1.63 KB, created by
David Cook
on 2022-12-14 05:18:54 UTC
(
hide
)
Description:
Bug 20596: Add unit test for multiple values in authority search
Filename:
MIME Type:
Creator:
David Cook
Created:
2022-12-14 05:18:54 UTC
Size:
1.63 KB
patch
obsolete
>From c29160e837c126d21adc4eecec9e4336aae221cb Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 14 Dec 2022 05:17:02 +0000 >Subject: [PATCH] Bug 20596: Add unit test for multiple values in authority > search > >This patch adds a unit test which returns 2 authority records >via an implicit OR when searching for strings from two different >authority records. > >Test plan: >1. prove t/db_dependent/Search.t >--- > t/db_dependent/Search.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index faa590bba5..b7b1fa8822 100755 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -751,6 +751,13 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' > ); > is($count, 1, 'MARC21 authorities: one hit on "all" (entire record) contains "professional wrestler"'); > >+ #NOTE: the 2nd parameter is unused in SearchAuthorities... >+ ($auths, $count) = SearchAuthorities( >+ ['Any','Any'], [''], [''], ['contains'], >+ ['professional wrestler','shakespeare'], 0, 10, '', '', 1 >+ ); >+ is($count, 2, 'MARC21 authorities: multiple values create operands implicitly joined by OR'); >+ > # retrieve records that are larger than the MARC limit of 99,999 octets > ( undef, $results_hashref, $facets_loop ) = > getRecords('ti:marc the large record', '', [], [ 'biblioserver' ], '20', 0, \%branches, \%itemtypes, 'ccl', undef); >@@ -923,7 +930,7 @@ sub run_unimarc_search_tests { > } > > subtest 'MARC21 + DOM' => sub { >- plan tests => 92; >+ plan tests => 93; > run_marc21_search_tests(); > }; > >-- >2.30.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 20596
:
74361
|
144550
|
144551
|
144561
|
144562
|
144590
|
144591
|
144598
|
144599
|
144600
|
144605
|
144606
|
144607