From 6568275bc9abec733ca6c914992b705da7bc3934 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 15 Mar 2024 16:02:11 +0100 Subject: [PATCH] Bug 36335: Fix ILS-DI GetRecords bad encoding for UNIMARC MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ILS-DI GetRecords generates bad encoding of MARCXML for UNIMARC, like OAI in Bug 34467 Enable ILS-DI and display a record with : /cgi-bin/koha/ilsdi.pl?service=GetRecords&id= Well-known issue, fixed Signed-off-by: Frédéric Demians Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer (cherry picked from commit 5406aaedfa86aa97ed06019f4862bff285a4aad2) Signed-off-by: Fridolin Somers --- C4/ILSDI/Services.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 07cea34da3..ee776423a9 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -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 -- 2.39.5