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>
(cherry picked from commit 5406aaedfa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Fridolin Somers 2024-03-15 16:02:11 +01:00
parent afb9cd8e1c
commit 6568275bc9

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