Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated to post-1.4 manakin filenames, template names and paths

...

...

  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
     <xsl:template name="itemSummaryList_DS-METS-1.0-DIM">. . . . </xsl: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
    <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
        <xsl:choose>
          <xsl:when test="''$data/dim:field[@element='type']='image''' ">
            <xsl:attribute name="src">
              <xsl:value-of select="$theme-path"/>
              <xsl:text>''/images/image.jpg'' </xsl:text>
             </xsl:attribute>
          </xsl:when>
          ''... add other icon cases ...''
          <xsl:otherwise>
            <xsl:attribute name="src">
              <xsl:value-of select="$theme-path"/>
              <xsl:text>''/images/unknown.jpg'' </xsl:text>
            </xsl:attribute>
          </xsl:otherwise>
        </xsl:choose>
      </img>