Bug 38513: Fix Biblio.t for Koha_Main_My8

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 <m.de.rooy@rijksmuseum.nl>
Simulated the above by removing 264c from Koha to MARC mapping.
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 28d24aaa08)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2024-11-22 08:28:46 +00:00 committed by Lucas Gass
parent 3b31cf80c3
commit e3f16499be
1 changed files with 5 additions and 0 deletions

View File

@ -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