[DS-967] Fixed issue in item view for Mirage theme with self-closing <div/> when abstract is empty

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6623 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Ben Bosman
2011-08-30 09:32:32 +00:00
parent a00f6f084b
commit a73011a908

View File

@@ -232,8 +232,15 @@
<div class="spacer">&#160;</div>
</xsl:if>
<xsl:for-each select="dim:field[@element='description' and @qualifier='abstract']">
<xsl:copy-of select="./node()"/>
<xsl:if test="count(following-sibling::dim:field[@element='description' and @qualifier='abstract']) != 0">
<xsl:choose>
<xsl:when test="node()">
<xsl:copy-of select="node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>&#160;</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="count(following-sibling::dim:field[@element='description' and @qualifier='abstract']) != 0">
<div class="spacer">&#160;</div>
</xsl:if>
</xsl:for-each>