Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed < and > tags

<?xml version="1.0" encoding="utf-8"?>
<html>

Files:

...

  1. If you haven't already, you need to Create+a+new+theme
  2. 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
     &lt;xsl<xsl:template name="itemSummaryList_DS-METS-1.0-DIM"&gt;>. . . . &lt;</xsl:template&gt;template>
  3. Copy the template identified above into your theme's local template.xsl stylesheet. This will allow the theme to override the default behavior.
  4. Modify the template to add an
    Code Block
    &lt;img&gt;<img> 
    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
        &lt;xsl:choose&gt;<xsl:choose>
          &lt;xsl<xsl:when test="''$data/dim:field[@element='type']='image''' "&gt; >
            &lt;xsl<xsl:attribute name="src"&gt;>
              &lt;xsl<xsl:value-of select="$theme-path"/&gt;>
              &lt;xsl:text&gt;<xsl:text>''/images/image.jpg'' &lt;</xsl:text&gt;text>
             &lt;</xsl:attribute&gt;attribute>
          &lt;</xsl:when&gt;when>
          ''... add other icon cases ...''
          &lt;xsl:otherwise&gt;<xsl:otherwise>
            &lt;xsl<xsl:attribute name="src"&gt;>
              &lt;xsl<xsl:value-of select="$theme-path"/&gt;>
              &lt;xsl:text&gt;<xsl:text>''/images/unknown.jpg'' &lt;</xsl:text&gt;text>
            &lt;</xsl:attribute&gt;attribute>
          &lt;</xsl:otherwise&gt;otherwise>
        &lt;</xsl:choose&gt;choose>
      &lt;/img&gt;</

...

  1. img>