Page History
...
- 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).
Code Block <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
Code Block <table class="ds-includeSet-table">
element in the desired position. Here is an example:
Code Block <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>
Or, if you would like to display a repeatable field with with ability to separate and format the repeated instances:
Code Block <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,
Code Block <tr>
, containing the unwanted field.
Notes:
If the dublin core field you are adding does not have a qualifier, such as dc.type, then replace
"
"Code Block @qualifier='[dc qualifier
Code Block ]'
with
"
"Code Block not(@qualifier)
so that the rule does not match fields with a qualifier.