From 22680bd0d6f81dbd662d495b18e3d3bf3deb0161 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 22 Nov 2024 08:28:46 +0000 Subject: [PATCH] Bug 38513: Fix Biblio.t for Koha_Main_My8 Content-Type: text/plain; charset=utf-8 This should do the tric: The test output shows that the second mapping was not found (field 264); also the expected suspect btw. So adding that here. Test plan: Run t/db_dependent/Biblio.t See also comment28 on bug 19097. Signed-off-by: Marcel de Rooy Simulated the above by removing 264c from Koha to MARC mapping. --- t/db_dependent/Biblio.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t index 3e3c6d4a1e..d3b9d142e4 100755 --- a/t/db_dependent/Biblio.t +++ b/t/db_dependent/Biblio.t @@ -124,6 +124,11 @@ subtest 'AddBiblio' => sub { subtest 'GetMarcSubfieldStructureFromKohaField' => sub { plan tests => 27; + # Add second mapping for copyrightdate + Koha::MarcSubfieldStructures->search({ frameworkcode => '', tagfield => '264', tagsubfield => 'c' })->delete; + Koha::MarcSubfieldStructure->new({ frameworkcode => '', tagfield => '264', tagsubfield => 'c', kohafield => "biblio.copyrightdate" })->store; + Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); + my @columns = qw( tagfield tagsubfield liblibrarian libopac repeatable mandatory kohafield tab authorised_value authtypecode value_builder isurl hidden frameworkcode -- 2.39.5