Bug 18371

Summary: XSLT transformation fails if UNIMARC 100$a is hidden
Product: Koha Reporter: Oleg Vasylenko <synapse.ova>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: RESOLVED WONTFIX QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: dubyk
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7474
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18153
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 11592    
Bug Blocks:    

Description Oleg Vasylenko 2017-04-03 13:05:19 UTC
In UNIMARC XSLT trasformation on page opac-detail.pl fails with software error

Unsupported UNIMARC character encoding [] for XML output for UNIMARC; 100$a ->  at /usr/share/perl5/MARC/File/XML.pm line 568.

Error occurs if subfield 100$a is made invisible in OPAC. 

It appears, that after filtering (rows 92-100), record is passed to XSLT processing (rows 152-163), and it already lacks field 100$a (it was filtered before). SetUTF8Flag (row 147) does not add filtered 100$a.

So right now turning 100$a OPAC visibility off leads to error when user accesses opac-detail.pl. There is no problems with opac-MARCdetail.pl and opac-ISBDdetail.pl — subfield is hidden correctly.

Quick fix for those, who have this problem is to make 100$a fully visible.
Comment 1 Oleg Vasylenko 2017-04-03 13:06:55 UTC
This applies to 16.10+
Comment 2 Katrin Fischer 2023-09-10 21:21:07 UTC
I think this is a configuration issue. Hiding the leader in MARC21 would probably lead to similar (bad) results, as is hiding the biblionumber.