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.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

Files:

Instructions:

  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>
     &lt;xsl:template name="itemSummaryList_DS-METS-1.0-DIM"&gt;. . . . &lt;/xsl:template&gt;
  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
    &lt;img&gt; 
    element for the logo. The image used will be based upon a Dublin Core field, in the example below dc.type is used.
        &lt;xsl:choose&gt;
          &lt;xsl:when test="''$data/dim:field[@element='type']='image''' "&gt; 
            &lt;xsl:attribute name="src"&gt;
              &lt;xsl:value-of select="$theme-path"/&gt;
              &lt;xsl:text&gt;''/images/image.jpg'' &lt;/xsl:text&gt;
             &lt;/xsl:attribute&gt;
          &lt;/xsl:when&gt;
          ''... add other icon cases ...''
          &lt;xsl:otherwise&gt;
            &lt;xsl:attribute name="src"&gt;
              &lt;xsl:value-of select="$theme-path"/&gt;
              &lt;xsl:text&gt;''/images/unknown.jpg'' &lt;/xsl:text&gt;
            &lt;/xsl:attribute&gt;
          &lt;/xsl:otherwise&gt;
        &lt;/xsl:choose&gt;
      &lt;/img&gt;

</html>

  • No labels