mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
Merge pull request #16 from helix84/style-strength
[DS-601] Enable styling collection "strength"
This commit is contained in:
@@ -48,12 +48,14 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</a>
|
</a>
|
||||||
<!--Display collection strengths (item counts) if they exist-->
|
<!--Display collection strengths (item counts) if they exist-->
|
||||||
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
<span class="ds-strength">
|
||||||
<xsl:text> [</xsl:text>
|
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
||||||
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
<xsl:text> [</xsl:text>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
||||||
</xsl:if>
|
<xsl:text>]</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- A collection rendered in the detailList pattern. Encountered on the item view page as
|
<!-- A collection rendered in the detailList pattern. Encountered on the item view page as
|
||||||
@@ -70,12 +72,14 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</a>
|
</a>
|
||||||
<!--Display collection strengths (item counts) if they exist-->
|
<!--Display collection strengths (item counts) if they exist-->
|
||||||
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
<span class="ds-strength">
|
||||||
<xsl:text> [</xsl:text>
|
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
||||||
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
<xsl:text> [</xsl:text>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
||||||
</xsl:if>
|
<xsl:text>]</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</span>
|
||||||
<br/>
|
<br/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$data/dim:field[@element='description' and @qualifier='abstract']">
|
<xsl:when test="$data/dim:field[@element='description' and @qualifier='abstract']">
|
||||||
|
@@ -50,12 +50,14 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</a>
|
</a>
|
||||||
<!--Display community strengths (item counts) if they exist-->
|
<!--Display community strengths (item counts) if they exist-->
|
||||||
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
<span class="ds-strength">
|
||||||
<xsl:text> [</xsl:text>
|
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
||||||
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
<xsl:text> [</xsl:text>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
||||||
</xsl:if>
|
<xsl:text>]</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
@@ -73,12 +75,14 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</a>
|
</a>
|
||||||
<!--Display community strengths (item counts) if they exist-->
|
<!--Display community strengths (item counts) if they exist-->
|
||||||
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
<span class="ds-strength">
|
||||||
<xsl:text> [</xsl:text>
|
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
||||||
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
<xsl:text> [</xsl:text>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
||||||
</xsl:if>
|
<xsl:text>]</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</span>
|
||||||
<br/>
|
<br/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$data/dim:field[@element='description' and @qualifier='abstract']">
|
<xsl:when test="$data/dim:field[@element='description' and @qualifier='abstract']">
|
||||||
|
@@ -196,12 +196,14 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</a>
|
</a>
|
||||||
<!--Display collection strengths (item counts) if they exist-->
|
<!--Display collection strengths (item counts) if they exist-->
|
||||||
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
<span class="ds-strength">
|
||||||
<xsl:text> [</xsl:text>
|
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
||||||
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
<xsl:text> [</xsl:text>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
||||||
</xsl:if>
|
<xsl:text>]</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- A community rendered in the summaryList pattern. Encountered on the community-list and on
|
<!-- A community rendered in the summaryList pattern. Encountered on the community-list and on
|
||||||
@@ -219,12 +221,14 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</a>
|
</a>
|
||||||
<!--Display community strengths (item counts) if they exist-->
|
<!--Display community strengths (item counts) if they exist-->
|
||||||
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
<span class="ds-strength">
|
||||||
<xsl:text> [</xsl:text>
|
<xsl:if test="string-length($data/dim:field[@element='format'][@qualifier='extent'][1]) > 0">
|
||||||
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
<xsl:text> [</xsl:text>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:value-of select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/>
|
||||||
</xsl:if>
|
<xsl:text>]</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user