Bug 17913: [Follow-up] Another small fix for UNIMARC
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 20 Jan 2017 11:54:56 +0000 (12:54 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:55:13 +0000 (13:55 +0000)
Adding another delete for field 100.
Will mock GetMarcBiblio on a new report.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Authorities/Merge.t

index c318f16..3102695 100755 (executable)
@@ -134,6 +134,7 @@ subtest 'Test merge A1 to modified A1, test strict mode' => sub {
     $index = 0;
     $rv = C4::AuthoritiesMarc::merge( $authid1, $auth1old, $authid1, $auth1new );
     $biblio1 = GetMarcBiblio($biblionumber1);
+    $biblio1->delete_fields( $biblio1->field('100') ); # quick fix for UNIMARC
     is( $biblio1->field(109)->subfield('b'), undef, 'Subfield overwritten in strict mode' );
     is( $biblio1->fields, scalar( $MARC1->fields ) - 1, 'strict mode should remove a duplicate 609' );
     is( $biblio1->field(609)->subfields,