Bug 34515

Summary: MARCXML output of OAI-PMH may be badly encoded (UNIMARC)
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: Web servicesAssignee: Fridolin Somers <fridolin.somers>
Status: RESOLVED DUPLICATE QA Contact: Katrin Fischer <katrin.fischer>
Severity: normal    
Priority: P5 - low CC: stephane.delaye
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33994
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 32336    
Bug Blocks:    
Attachments: Bug 34515: Fix encoding of MARCXML output for REST API (UNIMARC)
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC)
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC)

Description Fridolin Somers 2023-08-10 19:30:40 UTC
Like fixed for REST API, OAI-PMH output should be fixed to use metadata schema when building MARCXML.
Comment 1 Fridolin Somers 2023-08-10 19:37:54 UTC
Created attachment 154353 [details] [review]
Bug 34515: Fix encoding of MARCXML output for REST API (UNIMARC)

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
Comment 2 Fridolin Somers 2023-08-10 19:40:45 UTC
Created attachment 154354 [details] [review]
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC)

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
Comment 3 Biblibre Sandboxes 2023-08-17 12:16:29 UTC
Created attachment 154553 [details] [review]
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC)

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>
Comment 4 Katrin Fischer 2023-08-25 13:29:10 UTC
I don't see any encoding errors on a UNIMARC sandbox without the patch applied:

http://opac-encoding.sandboxes.ptfs-europe.co.uk/cgi-bin/koha/oai.pl?verb=GetRecord&metadataPrefix=marcxml&identifier=KOHA-OAI-TEST:1449

If the error is still there, can you explain a bit more on how to make it replicable/visible?
Comment 5 Fridolin Somers 2023-10-10 06:32:15 UTC

*** This bug has been marked as a duplicate of bug 34467 ***