Bugzilla – Attachment 154553 Details for
Bug 34515
MARCXML output of OAI-PMH may be badly encoded (UNIMARC)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC)
Bug-34515-Fix-encoding-of-MARCXML-output-for-OAI-P.patch (text/plain), 1.36 KB, created by
Biblibre Sandboxes
on 2023-08-17 12:16:29 UTC
(
hide
)
Description:
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC)
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2023-08-17 12:16:29 UTC
Size:
1.36 KB
patch
obsolete
>From f21c5a869fe261bae4b3a26502e99dc37ea92c34 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 10 Aug 2023 09:32:43 -1000 >Subject: [PATCH] Bug 34515: Fix encoding of MARCXML output for OAI-PMH > (UNIMARC) >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Like fixed for REST API, OAI-PMH output should be fixed to use metadata schema when building MARCXML. > >Test plan : >1) Use UNIMARC database >2) Enable OAI-PMH webservice >3) Edit a biblio record to add uppercase éin title 200$a >4) Go to OAI record : >/cgi-bin/koha/oai.pl?verb=GetRecord&metadataPrefix=marcxml&identifier=xxx >=> Check encoding of title is OK > >Signed-off-by: Delaye <stephane.delaye@biblibre.com> >--- > Koha/OAI/Server/Repository.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/OAI/Server/Repository.pm b/Koha/OAI/Server/Repository.pm >index 273497412f..fd14255a13 100644 >--- a/Koha/OAI/Server/Repository.pm >+++ b/Koha/OAI/Server/Repository.pm >@@ -206,7 +206,8 @@ sub get_biblio_marcxml { > ); > $record_processor->process($record); > } >- return ( $record ? $record->as_xml_record() : undef, $decoding_error ); >+ my $schema = $biblio->metadata->schema // C4::Context->preference("marcflavour"); >+ return ( $record ? $record->as_xml_record($schema) : 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 34515
:
154353
|
154354
| 154553