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

« Previous Version 4 Current »

Files:

Instructions for DSpace 1.4:

  1. If you haven't already, you need to Create+a+new+theme
  2. 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).
     <xsl:template match="dim:dim" mode="itemSummaryView-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. To modify the copied template to add a new Dublin Core field, add the following table row inside the
    <table class="ds-includeSet-table">
    element in the desired position. Here is an example:
      <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:
     <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>
  5. To modify the copied template to remove a Dublin Core field, remove the (or comment out) the table row,
    <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 "
    @qualifier='
    dc qualifier
    '
    " with "
    not(@qualifier)
    " so that the rule does not match fields with a qualifier.
  • No labels