Bug 36335: Fix ILS-DI GetRecords bad encoding for UNIMARC

ILS-DI GetRecords generates bad encoding of MARCXML for UNIMARC, like OAI in Bug 34467

Enable ILS-DI and display a record with :
<opac url>/cgi-bin/koha/ilsdi.pl?service=GetRecords&id=<biblionumber>

Well-known issue, fixed
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Fridolin Somers 2024-03-15 16:02:11 +01:00 committed by Katrin Fischer
parent af6a0b78b7
commit 5406aaedfa
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -220,7 +220,7 @@ sub GetRecords {
my $record = $biblio->metadata->record({ embed_items => 1 });
if ($record) {
$biblioitem->{marcxml} = $record->as_xml_record();
$biblioitem->{marcxml} = $record->as_xml_record( C4::Context->preference('marcflavour') );
}
# Get most of the needed data