I'm trying to add a clickable field (perhaps using dc.relation.uri) to
provide a URL that is related to the item. How do I do this? I added
another div tag in the <xsl:template match="dim:dim"
mode="itemSummaryView-DIM"> template:
<xsl:template match="dim:dim" mode="itemSummaryView-DIM">
<div class="item-summary-view-metadata">
<xsl:call-template name="itemSummaryView-DIM-title"/>
<div class="row">
<div class="col-sm-4">
<div class="row">
<div class="col-xs-6 col-sm-12">
<xsl:call-template
name="itemSummaryView-DIM-thumbnail"/>
</div>
<div class="col-xs-6 col-sm-12">
<xsl:call-template
name="itemSummaryView-DIM-file-section"/>
</div>
<div class="col-xs-6 col-sm-12">
<xsl:call-template
name="itemSummaryView-DIM-uri"/>
</div>
</div>
<xsl:if test="$ds_item_view_toggle_url != ''">
<xsl:call-template
name="itemSummaryView-show-full"/>
</xsl:if>
</div>
<div class="col-sm-8">
<xsl:call-template name="itemSummaryView-DIM-abstract"/>
<xsl:call-template name="itemSummaryView-collections"/>
<xsl:call-template name="itemSummaryView-DIM-type"/>
<xsl:call-template name="itemSummaryView-DIM-subject"/>
<xsl:call-template name="itemSummaryView-DIM-description"/>
<xsl:call-template name="itemSummaryView-DIM-authors"/>
<xsl:call-template name="itemSummaryView-DIM-date"/>
</div>
</div>
</div>
</xsl:template>
And added this section:
<xsl:template name="itemSummaryView-DIM-uri">
<xsl:if test="dim:field[@element='relation' and qualifier='uri']">
<div class="simple-item-view-uri item-page-field-wrapper table">
<h5><i18n:text>Westlaw/Lexis Link:</i18n:text></h5>
<xsl:for-each select="dim:field[@element='relation' and
qualifier='uri']">
<xsl:choose>
<xsl:when test="node()">
<p style="margin-top:0px;">
<xsl:copy-of select="node()"/>
</p>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:if>
</xsl:template>
But it's not working. What am I doing wrong here?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.