[Bug 34514] New: opac-showmarc.pl does not handle UNIMARC well
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Bug ID: 34514 Summary: opac-showmarc.pl does not handle UNIMARC well Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: fridolin.somers@biblibre.com QA Contact: testopia@bugs.koha-community.org 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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|oleonard@myacpl.org |fridolin.somers@biblibre.co | |m Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=29333 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 --- Comment #1 from Fridolin Somers <fridolin.somers@biblibre.com> --- Created attachment 154350 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154350&action=edit 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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154350|0 |1 is obsolete| | --- Comment #2 from Fridolin Somers <fridolin.somers@biblibre.com> --- Created attachment 154351 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154351&action=edit 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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=32336 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- We tested in in a Sandbox and it worked without applying the Patches. We didnt see any encoding errors. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (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 :) ) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 --- Comment #5 from Fridolin Somers <fridolin.somers@biblibre.com> --- We use Ubuntu Focal, maybe Perl MARC::Record is a bit different -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=34515 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 --- Comment #6 from Fridolin Somers <fridolin.somers@biblibre.com> --- Bug 32336 did this same change -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |ASSIGNED --- Comment #7 from Fridolin Somers <fridolin.somers@biblibre.com> --- Ah needs work Should use metadata->schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=34467 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #8 from Fridolin Somers <fridolin.somers@biblibre.com> --- (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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34514 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Status|Needs Signoff |Failed QA --- Comment #9 from David Nind <david@davidnind.com> --- 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. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org