View | Details | Raw Unified | Return to bug 41795
Collapse All | Expand All

(-)a/t/AuthoritiesMarc_MARC21.t (-2 / +9 lines)
Lines 59-67 subtest "FindDuplicateAuthority tests" => sub { Link Here
59
        }
59
        }
60
    );
60
    );
61
61
62
    my $marcflavour = C4::Context->preference('marcflavour');
63
    my $field;
64
    if ( $marcflavour eq 'MARC21' ) {
65
        $field = '155'; # GENRE/FORM field in MARC21
66
    } elsif ( $marcflavour eq 'UNIMARC' ) {
67
        $field = '280'; # GENRE/FORM field in UNIMARC
68
    }
69
62
    my $record = MARC::Record->new;
70
    my $record = MARC::Record->new;
63
    $record->append_fields(
71
    $record->append_fields(
64
        MARC::Field->new( '155', '', '', a => 'Potato' ),
72
        MARC::Field->new( $field, '', '', a => 'Potato' ),
65
    );
73
    );
66
74
67
    t::lib::Mocks::mock_preference( 'SearchEngine', 'Zebra' );
75
    t::lib::Mocks::mock_preference( 'SearchEngine', 'Zebra' );
68
- 

Return to bug 41795