[Koha-bugs] [Bug 8513] OPAC detail page broken with XSLT
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 30 14:53:16 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8513
Fridolyn SOMERS <fridolyn.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |Needs Signoff
Assignee|oleonard at myacpl.org |fridolyn.somers at biblibre.co
| |m
--- Comment #1 from Fridolyn SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 11191
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11191&action=edit
Proposed patch
I found the problem :
In some cases, the XSLT generates an empty a tag : <a href="..." />
This brakes the page.
The concerned code is the building of subjects.
Correction :
------------
Subject field with authority code ($9) : if the content of <a> is empty (=
$display variable), it is set with the $9 value.
Subject field without authority code ($9) : added a test on $a not empty, to
avoid the same problem.
Test plan :
-----------
Bug appears on a record with a subject field (ie 606) containing a $9 as last
subfield.
Check also a record with a subject field containing some fields but not $9 nor
$a.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list