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

(-)a/Koha/Import/Record.pm (-2 / +2 lines)
Lines 56-62 sub get_marc_record { Link Here
56
        $format = 'UNIMARCAUTH';
56
        $format = 'UNIMARCAUTH';
57
    }
57
    }
58
58
59
    my $record = MARC::Record->new_from_xml($self->marcxml, $self->encoding, $format);
59
    my $encoding = $self->encoding eq 'MARC-8' ? 'UTF-8' : $self->encoding; # MARC-8 is not a valid encoding in Koha
60
    my $record = MARC::Record->new_from_xml($self->marcxml, $encoding, $format);
60
61
61
    return $record;
62
    return $record;
62
}
63
}
63
- 

Return to bug 37184