Page History
<?xml version="1.0" encoding="utf-8"?>
<html>
Files:
- manakin-source/themes/theme-dir/template.xsl (The theme's stylesheet)
- manakin-source/themes/dri2xhtml/DS-METS-1.0-DIM.xsl (DIM metadata handler)
...
- If you haven't already, you need to Create+a+new+theme
- Locate the template named "itemSummaryList_DS-METS-1.0-DIM" inside the base DIM (DSpace Intermediate Metadata) handler. This is the template that is used to display an individual item with in a larger list, as on the browse by page and search results. <p>
Code Block <xsl<xsl:template name="itemSummaryList_DS-METS-1.0-DIM">>. . . . <</xsl:template>template>
- Copy the template identified above into your theme's local template.xsl stylesheet. This will allow the theme to override the default behavior.
- Modify the template to add an
element for the logo. The image used will be based upon a Dublin Core field, in the example below dc.type is used.Code Block <img><img>
Code Block <xsl:choose><xsl:choose> <xsl<xsl:when test="''$data/dim:field[@element='type']='image''' "> > <xsl<xsl:attribute name="src">> <xsl<xsl:value-of select="$theme-path"/>> <xsl:text><xsl:text>''/images/image.jpg'' <</xsl:text>text> <</xsl:attribute>attribute> <</xsl:when>when> ''... add other icon cases ...'' <xsl:otherwise><xsl:otherwise> <xsl<xsl:attribute name="src">> <xsl<xsl:value-of select="$theme-path"/>> <xsl:text><xsl:text>''/images/unknown.jpg'' <</xsl:text>text> <</xsl:attribute>attribute> <</xsl:otherwise>otherwise> <</xsl:choose>choose> </img></
...
img>
Overview
Content Tools