Bugzilla – Attachment 156588 Details for
Bug 34467
OAI GetRecord bad encoding for UNIMARC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34467: OAI GetRecord bad encoding for Unimarc
Bug-34467-OAI-GetRecord-bad-encoding-for-Unimarc.patch (text/plain), 1.46 KB, created by
Katrin Fischer
on 2023-10-05 21:39:18 UTC
(
hide
)
Description:
Bug 34467: OAI GetRecord bad encoding for Unimarc
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-10-05 21:39:18 UTC
Size:
1.46 KB
patch
obsolete
>From 3cf5229b8bdd2877820a67fa07479c731c8d898b Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Thu, 3 Aug 2023 10:59:01 +0200 >Subject: [PATCH] Bug 34467: OAI GetRecord bad encoding for Unimarc > >For some Unimarc biblio records, the OAI Server returns a bad XML >document, ie a document with extended characters, such as accents, not >encoded in UTF8. It seems to come from somewhere in MARC::Record library >trying to deduce biblio record endoding from some fields. It may work >for MARC21 records. It doesn't for Unimarc records. So it's necessary to >send to the method transforming record into XML the marcflavour. This >way there is no encoding guessing from Unimarc biblio records content. > >https://bugs.koha-community.org/show_bug.cgi?id=34467 >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/OAI/Server/Repository.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/OAI/Server/Repository.pm b/Koha/OAI/Server/Repository.pm >index 273497412f..4ec02811ab 100644 >--- a/Koha/OAI/Server/Repository.pm >+++ b/Koha/OAI/Server/Repository.pm >@@ -206,7 +206,7 @@ sub get_biblio_marcxml { > ); > $record_processor->process($record); > } >- return ( $record ? $record->as_xml_record() : undef, $decoding_error ); >+ return ( $record ? $record->as_xml_record( C4::Context->preference('marcflavour') ) : undef, $decoding_error ); > } > > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34467
:
154215
|
156583
| 156588