Summary: | opac-showmarc.pl does not handle UNIMARC well | ||
---|---|---|---|
Product: | Koha | Reporter: | Fridolin Somers <fridolin.somers> |
Component: | OPAC | Assignee: | Fridolin Somers <fridolin.somers> |
Status: | Failed QA --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | david |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29333 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32336 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34515 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34467 |
||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 34514: opac-showmarc.pl does not handle UNIMARC well
Bug 34514: opac-showmarc.pl use marc flavour |
Description
Fridolin Somers
2023-08-10 18:49:33 UTC
Created attachment 154350 [details] [review] Bug 34514: opac-showmarc.pl does not handle UNIMARC well opac-showmarc.pl calls $record->as_xml. We see in other places using XSL transformation that MARC flavor should be sent. Looks like encoding fails when a "real" UTF-8 character is used. For example uppercase é Bug 29333 fixed catalogue/showmarc.pl. Test plan : 1) Use UNIMARC database 2) Edit a biblio record to add uppercase é in title 200$a 3) Go to OPAC MARC vue of this record 4) Download record as MARCXML => Check encoding of title is OK 5) Click on 'view plain' => Check encoding of title is OK Created attachment 154351 [details] [review] Bug 34514: opac-showmarc.pl use marc flavour opac-showmarc.pl calls $record->as_xml. We see in other places using XSL transformation that MARC flavor should be sent. Looks like encoding fails when a "real" UTF-8 character is used. For example uppercase é Bug 29333 fixed catalogue/showmarc.pl. Test plan : 1) Use UNIMARC database 2) Edit a biblio record to add uppercase é in title 200$a 3) Go to OPAC MARC vue of this record 4) Download record as MARCXML => Check encoding of title is OK 5) Click on 'view plain' => Check encoding of title is OK We tested in in a Sandbox and it worked without applying the Patches. We didnt see any encoding errors. (In reply to Katrin Fischer from comment #3) > We tested in in a Sandbox and it worked without applying the Patches. We > didnt see any encoding errors. This was tested by Pascal Uphaus (just wrong bugzilla login :) ) We use Ubuntu Focal, maybe Perl MARC::Record is a bit different Ah needs work Should use metadata->schema (In reply to Fridolin Somers from comment #7) > Ah needs work > Should use metadata->schema Ah forget about that for now since catalogue/showmarc.pl does not use it. Code in opac/opac-showmarc.pl should look the same. Can be tested. I tested using Ubuntu Focal and UNIMARC (using KTD, change KOHA_IMAGE=master-focal and KOHA_MARC_FLAVOUR=unimarc). There was no change in the display, or the downloaded MARCXML file: title used was L'Anniversaire de é É Marcellin (Record no. 4441) and shows in the downloaded file as "L'Anniversaire de é É Marcellin". Is this still an issue, or how can we replicate it some otehr way? Changed status in the meantime. |