Bug 18371 - XSLT transformation fails if UNIMARC 100$a is hidden
Summary: XSLT transformation fails if UNIMARC 100$a is hidden
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on: 11592
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-03 13:05 UTC by Oleg Vasylenko
Modified: 2024-07-04 20:37 UTC (History)
1 user (show)

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


Attachments

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