Contribute to the DSpace Development Fund
The newly established DSpace Development Fund supports the development of new features prioritized by DSpace Governance. For a list of planned features see the fund wiki page.
Files:
- manakin-source/themes/theme-dir/template.xsl (The theme's stylesheet)
- manakin-source/themes/dri2xhtml/DIM-Handler.xsl (DIM metadata handler)
Instructions for DSpace 1.4:
- If you haven't already, you need to Create+a+new+theme
- Locate the template that has a match attribute of "dim:dim" and a mode attribute of "itemSummaryView-DIM" inside the base DIM (DSpace Intermediate Metadata) handler. This is the template that is used to display an item's metadata when viewing it directly (another template is called when the user clicks show full item record).
<xsl:template match="dim:dim" mode="itemSummaryView-DIM">. . . . </xsl:template>
- Copy the template identified above into your theme's local template.xsl stylesheet. This will allow the theme to override the default behavior.
- To modify the copied template to add a new Dublin Core field, add the following table row inside the
element in the desired position. Here is an example:
<table class="ds-includeSet-table">
Or, if you would like to display a repeatable field with with ability to separate and format the repeated instances:<tr class="ds-table-row"> <td><span class="bold">''[Your label]'' :</span></td> <td> <xsl:copy-of select=" dim:field[@element='[ dc element]' and @qualifier='[dc qualifier]']/child::node()" /> </td> </tr>
<tr class="ds-table-row"> <td><span class="bold">[Your label]:</span></td> <td> <xsl:for-each select="dim:field[@element='[ dc element]' and @qualifier='[dc qualifier]']/child::node()"> <xsl:copy-of select="."/><br/> </xsl:for-each> </td> </tr>
- To modify the copied template to remove a Dublin Core field, remove the (or comment out) the table row,
, containing the unwanted field.
<tr>
Notes:
- If the dublin core field you are adding does not have a qualifier, such as dc.type, then replace "
dc qualifier
@qualifier='
" with "'
" so that the rule does not match fields with a qualifier.not(@qualifier)
Overview
Content Tools