Bug 34515 - MARCXML output of OAI-PMH may be badly encoded (UNIMARC)
Summary: MARCXML output of OAI-PMH may be badly encoded (UNIMARC)
Status: RESOLVED DUPLICATE of bug 34467
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Fridolin Somers
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on: 32336
Blocks:
  Show dependency treegraph
 
Reported: 2023-08-10 19:30 UTC by Fridolin Somers
Modified: 2023-10-10 06:32 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 34515: Fix encoding of MARCXML output for REST API (UNIMARC) (1.31 KB, patch)
2023-08-10 19:37 UTC, Fridolin Somers
Details | Diff | Splinter Review
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC) (1.31 KB, patch)
2023-08-10 19:40 UTC, Fridolin Somers
Details | Diff | Splinter Review
Bug 34515: Fix encoding of MARCXML output for OAI-PMH (UNIMARC) (1.36 KB, patch)
2023-08-17 12:16 UTC, Biblibre Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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 ***