[Koha-bugs] [Bug 3671] XSLT results list display problem if no fixed fields

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Wed Oct 7 15:44:07 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3671


Jane Wagner <jwagner at ptfs.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




--- Comment #3 from Jane Wagner <jwagner at ptfs.com>  2009-10-07 13:44:06 ---
I did a line-by-line readthrough of that section of code, and couldn't find any
mis-matched statements.  Then I did some experimenting with removing various
statements, and found that the problem seems to be the opening/closing <span
class="results_summary"> (all the intervening code) </span> -- if I take out
the span class statement (and its /span), the fonts display normally.  As an
experiment, I tried adding a blank space to the very end of the section:

            <xsl:when test="$controlField008-22='f'">
             Specialized;
            </xsl:when>
            </xsl:choose>
    </xsl:if>
<xsl:text> </xsl:text>
        </span>
</xsl:if>

Adding the <xsl:text> </xsl:text> cures the font problem -- if there is no 007
at all in the record, the subsequent text is in normal font.  I don't know why
adding this blank space fixes the problem, but I'm going to submit a patch with
it, so that incomplete records don't suffer the display problem.  I know the
ideal solution is to clean the record up, but that may take a while for this
collection.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list