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 É Bug 29333 fixed catalogue/showmarc.pl.
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
Bug 32336 did this same change
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.