Bugzilla – Attachment 192690 Details for
Bug 41795
UNIMARC: a Zebra search for Corporate Body Name authorities will also return Collective Titles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41795: Fix failing test in UNIMARC instances
Bug-41795-Fix-failing-test-in-UNIMARC-instances.patch (text/plain), 1.45 KB, created by
Andreas Roussos
on 2026-02-09 02:06:50 UTC
(
hide
)
Description:
Bug 41795: Fix failing test in UNIMARC instances
Filename:
MIME Type:
Creator:
Andreas Roussos
Created:
2026-02-09 02:06:50 UTC
Size:
1.45 KB
patch
obsolete
>From b4d893bad97ba89a5349276e54def6d273c9ee1f Mon Sep 17 00:00:00 2001 >From: Andreas Roussos <a.roussos@dataly.gr> >Date: Mon, 9 Feb 2026 01:52:30 +0000 >Subject: [PATCH] Bug 41795: Fix failing test in UNIMARC instances > >Previously, t/AuthoritiesMarc_MARC21.t would fail if >you tried to run it from within a UNIMARC instance. > >This patch fixes that. > >Test plan: > >1) Inside a UNIMARC instance, run the test and > notice the subtest failure: > > $ prove -v t/AuthoritiesMarc_MARC21.t > >2) Apply this patch. > >3) Re-run the test and notice that it now completes > without any failures. >--- > t/AuthoritiesMarc_MARC21.t | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t >index 1babb42cd4..d6667fb0ab 100755 >--- a/t/AuthoritiesMarc_MARC21.t >+++ b/t/AuthoritiesMarc_MARC21.t >@@ -59,9 +59,17 @@ subtest "FindDuplicateAuthority tests" => sub { > } > ); > >+ my $marcflavour = C4::Context->preference('marcflavour'); >+ my $field; >+ if ( $marcflavour eq 'MARC21' ) { >+ $field = '155'; # GENRE/FORM field in MARC21 >+ } elsif ( $marcflavour eq 'UNIMARC' ) { >+ $field = '280'; # GENRE/FORM field in UNIMARC >+ } >+ > my $record = MARC::Record->new; > $record->append_fields( >- MARC::Field->new( '155', '', '', a => 'Potato' ), >+ MARC::Field->new( $field, '', '', a => 'Potato' ), > ); > > t::lib::Mocks::mock_preference( 'SearchEngine', 'Zebra' ); >-- >2.39.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 41795
:
192687
|
192688
|
192689
|
192690
|
192710