Making DC elements hyperlinkable in viewer metedata display
- Product: Rosetta
- Product Version: v5
- Relevant for Installation Type: Local
Description
Making DC elements hyperlinkable in viewer metedata display when you click " i " (e.g. for dc:identifier)
Resolution
1. Connect to the Mangement module and select the appropriate institution
NOTE: This is an institution-level configuration.
NOTE: DC element must already exist in the ingest metadata in order to display in the viewer.
2. Go to: Home > Deposits > Advanced Configurations > Delivery XSL Files > ie.xsl
3. Click "Edit"
4. Locate the "<div class="width50">" section of the code
5. Insert the following:
<div class="width50">
<xsl:choose>
<xsl:when test="starts-with(., 'http')">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="." />
</xsl:attribute>
<xsl:attribute name="style">color:blue</xsl:attribute>
<xsl:value-of select="." />
</xsl:element>
</xsl:when>
NOTE: By default the font color is white (not visible); adding the attribute name above and specifying a color makes it display.
6. Click "Save"
7. Navigate to the IE and click "View", then " i " to see the new hyperlinked element.
- Article last edited: 01-Feb-2017