Author: benbosman
Date: Tue Jan 25 16:37:40 2011
New Revision: 6045
Log:
[DS-809] Support for empty dc.abstract dim field in Internet Explorer
Modified:
dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/collection-list.xsl
dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/community-list.xsl
dspace/branches/dspace-1_7_x/dspace/CHANGES
Modified: dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/collection-list.xsl
==============================================================================
--- dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/collection-list.xsl (original)
+++ dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/collection-list.xsl Tue Jan 25 16:37:40 2011
@@ -61,10 +61,10 @@
<xsl:text>]</xsl:text>
</xsl:if>
</div>
- <xsl:if test="$data/dim:field[@element = 'description' and @qualifier='abstract']">
+ <xsl:variable name="abstract" select="$data/dim:field[@element = 'description' and @qualifier='abstract']/node()"/>
+ <xsl:if test="$abstract and string-length($abstract[1]) > 0">
<div class="artifact-info">
<span class="short-description">
- <xsl:variable name="abstract" select="$data/dim:field[@element = 'description' and @qualifier='abstract']/node()"/>
<xsl:value-of select="util:shortenString($abstract, 220, 10)"/>
</span>
</div>
Modified: dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/community-list.xsl
==============================================================================
--- dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/community-list.xsl (original)
+++ dspace/branches/dspace-1_7_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/community-list.xsl Tue Jan 25 16:37:40 2011
@@ -62,10 +62,10 @@
<xsl:text>]</xsl:text>
</xsl:if>
</div>
- <xsl:if test="$data/dim:field[@element = 'description' and @qualifier='abstract']">
+ <xsl:variable name="abstract" select="$data/dim:field[@element = 'description' and @qualifier='abstract']/node()"/>
+ <xsl:if test="$abstract and string-length($abstract[1]) > 0">
<div class="artifact-info">
<span class="short-description">
- <xsl:variable name="abstract" select="$data/dim:field[@element = 'description' and @qualifier='abstract']/node()"/>
<xsl:value-of select="util:shortenString($abstract, 220, 10)"/>
</span>
</div>
Modified: dspace/branches/dspace-1_7_x/dspace/CHANGES
==============================================================================
--- dspace/branches/dspace-1_7_x/dspace/CHANGES (original)
+++ dspace/branches/dspace-1_7_x/dspace/CHANGES Tue Jan 25 16:37:40 2011
@@ -20,6 +20,9 @@
(Ben Bosman)
- [DS-808] jqueryUI javascript gets imported without corresponding CSS
+(Ben Bosman)
+- [DS-809] Support for empty dc.abstract dim field in Internet Explorer
+
1.7.0
=====
(Oleksandr Sytnyk)
|