DRMC

71days since
Next DRMC Meeting

Hide Field in Item Detail View of XMLUI

These instructions are specifically for hiding the description.provenance field on the item detail pages.  The procedure can be modified to hide other fields as required.

  1. In the dri2xhtml/DIM-Handler.xsl file, find the template that begins with <xsl:template match="dim:field" mode="itemDetailView-DIM"> and copy it into the xsl file for your own theme


  2. Modify the copied template so that it appears as follows. Changes are highlighted.

    <!-- Hide Provenance Information -->
        <xsl:template match="dim:field" mode="itemDetailView-DIM">
        <xsl:if test="not(@element='description' and @qualifier='provenance')">
            <tr>
                <xsl:attribute name="class">
                    <xsl:text>ds-table-row </xsl:text>
                    <xsl:if test="(position() div 2 mod 2 = 0)">even </xsl:if>
                    <xsl:if test="(position() div 2 mod 2 = 1)">odd </xsl:if>
                </xsl:attribute>
                <td>
                    <xsl:value-of select="./@mdschema"/>
                    <xsl:text>.</xsl:text>
                    <xsl:value-of select="./@element"/>
                    <xsl:if test="./@qualifier">
                        <xsl:text>.</xsl:text>
                        <xsl:value-of select="./@qualifier"/>
                    </xsl:if>
                </td>
                <td><xsl:copy-of select="./node()"/></td>
                <td><xsl:value-of select="./@language"/></td>
            </tr>
        </xsl:if>
        </xsl:template>

  3. Deploy the changed theme, or ask to have it deployed to your DSpace instance.  Provenance information will now be hidden on the item detail view pages.
IMPORTANT NOTES:

Provenance information will still be stored in the database!

Though provenance information is not displayed on the item detail view screens, this does not prevent anyone who is familiar with the software from directly accessing the associated METS document, which DOES contain the provenance information.

The description.provenance field is not currently harvested by the federated search.  However, on some sites the field may still be accessible via the OAI-PMH gateways.

If you make this change, you may also wish to change the text that says "Show full item record" in the Item Summary view, as this is no longer a full item record.