Skip to content

Instantly share code, notes, and snippets.

@alanorth
Created February 13, 2012 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alanorth/1814528 to your computer and use it in GitHub Desktop.
Save alanorth/1814528 to your computer and use it in GitHub Desktop.
diff --git a/dspace/modules/xmlui/src/main/webapp/themes/CGSPACE/lib/xsl/aspect/artifactbrowser/item-view.xsl b/dspace/modules/xmlui/src/main/webapp/themes/CGSPACE/lib/xsl/aspect/artifactbrowser/item-view.xsl
index 95056d3..ea31bfc 100644
--- a/dspace/modules/xmlui/src/main/webapp/themes/CGSPACE/lib/xsl/aspect/artifactbrowser/item-view.xsl
+++ b/dspace/modules/xmlui/src/main/webapp/themes/CGSPACE/lib/xsl/aspect/artifactbrowser/item-view.xsl
@@ -921,9 +921,33 @@
</xsl:call-template>
</xsl:when>
+ <!-- CIFOR Subject row -->
+ <xsl:when test="$clause = 30 and (dim:field[@element='cisubject' and @qualifier='ciforsubject'])">
+ <tr class="ds-table-row {$phase}">
+ <td><span class="bold"><i18n:text>CIFOR Subject Focus</i18n:text>:</span></td>
+ <td>
+ <xsl:if test="count(dim:field[@element='cisubject' and @qualifier='ciforsubject']) &gt; 1">
+ <hr class="metadata-seperator"/>
+ </xsl:if>
+ <xsl:for-each select="dim:field[@element='cisubject' and @qualifier='ciforsubject']">
+ <xsl:copy-of select="./node()"/>
+ <xsl:if test="count(following-sibling::dim:field[@element='cisubject' and @qualifier='ciforsubject']) != 0">
+ <hr class="metadata-seperator"/>
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:if test="count(dim:field[@element='cisubject' and @qualifier='ciforsubject']) &gt; 1">
+ <hr class="metadata-seperator"/>
+ </xsl:if>
+ </td>
+ </tr>
+ <xsl:call-template name="itemSummaryView-DIM-fields">
+ <xsl:with-param name="clause" select="($clause + 1)"/>
+ <xsl:with-param name="phase" select="$otherPhase"/>
+ </xsl:call-template>
+ </xsl:when>
<!-- PROJECT SPONSOR row -->
- <xsl:when test="$clause = 30 and (dim:field[@element='description' and @qualifier='sponsorship'])">
+ <xsl:when test="$clause = 31 and (dim:field[@element='description' and @qualifier='sponsorship'])">
<tr class="ds-table-row {$phase}">
<td><span class="bold"><i18n:text>Project Sponsor</i18n:text>:</span></td>
<td>
@@ -949,7 +973,7 @@
<!-- Fund row -->
- <xsl:when test="$clause = 31 and (dim:field[@element='identifier' and @qualifier='fund'])">
+ <xsl:when test="$clause = 32 and (dim:field[@element='identifier' and @qualifier='fund'])">
<tr class="ds-table-row {$phase}">
<td><span class="bold"><i18n:text>Sponsor Project Number</i18n:text>:</span></td>
<td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment