Skip to content

Commit

Permalink
xmlui: Add clickable ICARDA subjects links to item list and item view
Browse files Browse the repository at this point in the history
Addresses #44.
  • Loading branch information
alanorth committed Dec 11, 2014
1 parent 436fe52 commit 74c0050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
</xsl:attribute>

<span class="content" style="width: {$metadataWidth - 110}px;">
<xsl:for-each select="//dim:field[@element='ccsubject'and @qualifier='ccafsubject']">
<a href="/browse?value={.}&amp;type=ccafsubject"><xsl:value-of select="."/></a><xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
<xsl:for-each select="//dim:field[@element='subject'and @qualifier='icarda']">
<a href="/browse?value={.}&amp;type=icardasubject"><xsl:value-of select="."/></a><xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each>
</span>
</xsl:element>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,15 +677,15 @@



<!-- CCAFS Subject row -->
<xsl:when test="$clause = 22 and (dim:field[@element='ccsubject' and @qualifier='ccafsubject'])">
<!-- ICARDA subjects row -->
<xsl:when test="$clause = 22 and (dim:field[@element='subject' and @qualifier='icarda'])">
<tr class="ds-table-row {$phase}">
<td><span class="bold"><i18n:text>Subject Focus</i18n:text>:</span></td>
<td>
<xsl:for-each select="//dim:field[@element='ccsubject'and @qualifier='ccafsubject']">
<xsl:for-each select="//dim:field[@element='subject'and @qualifier='icarda']">
<xsl:variable name="lnk"><xsl:value-of select="."/></xsl:variable>

<a href="/browse?value={.}&amp;type=ccafsubject"><xsl:value-of select="."/></a><xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
<a href="/browse?value={.}&amp;type=icardasubject"><xsl:value-of select="."/></a><xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>

</xsl:for-each>
</td>
Expand Down

0 comments on commit 74c0050

Please sign in to comment.