Grisel Pascual
Grisel Pascual

Reputation: 13

Dspace 6.x xmlui - modify the full item view

I'm using Dspace v 6.3 xmlui, and the default theme (Mirage2) I want to modify the visualization of the complete registry of the items, so the dublin core fields are shown by the tags and not the complete name of the field. Is this possible? Right now, a complete registry in my Dspace looks like this: enter image description here

I know I have to modify the item-view.xsl file, but I have two doubts about it:

  1. Most of the questions I've seen about this are refered to the summary view, but I want to modify the full view. I'm in the right file?

  2. I don't know which part of the code is specifically for the tag.

Thank you very much

Upvotes: 0

Views: 471

Answers (1)

euler
euler

Reputation: 1411

In lines 501-509 of item-view.xsl, replace it with the code below. Note that you have to add each label that you want to display in the detailed view. In the example code below, I only included author, title, and the abstract label.

<td class="label-cell">
    <xsl:choose>
        <xsl:when test="@element='contributor' and @qualifier='author'">
            <i18n:text>xmlui.dri2xhtml.METS-1.0.item-author</i18n:text>
        </xsl:when>
        <xsl:when test="@element='title'">
            <i18n:text>xmlui.dri2xhtml.METS-1.0.item-title</i18n:text>
        </xsl:when>
        <xsl:when test="@element='description' and @qualifier='abstract'">
            <i18n:text>xmlui.dri2xhtml.METS-1.0.item-abstract</i18n:text>
        </xsl:when>
<!-- More to be added here -->
        <xsl:otherwise>
            <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>
        </xsl:otherwise>
    </xsl:choose>
</td>

Upvotes: 0

Related Questions