Greetings,

I want to add a few fields to the short item view.  For this, I need to 
edit an item-view.xsl file for the Mirage theme on DSpace 4.  I read this 
message in an old thread:

https://groups.google.com/g/dspace-tech/c/MrhvIwcb2FU/m/1pY5_QS4EAAJ

that suggests adding blocks like this, taking care of incrementing the 
$clause parameter with each addition:

 <xsl:when test="$clause = 5 and (dim:field[@element='type' and 
not(@qualifier) and descendant::text()])">
                <div class="simple-item-view-type">
                   <span 
class="bold"><i18n:text>xmlui.dri2xhtml.METS-1.0.item-type</i18n:text>:</span>
                   <span>
                   <xsl:for-each select="dim:field[@element='type' and 
not(@qualifier)]">
                      <xsl:copy-of select="./node()"/>
                   </xsl:for-each>
                   </span>
               </div>
              <xsl:call-template name="itemSummaryView-DIM-fields">
                <xsl:with-param name="clause" select="($clause + 1)"/>
                <xsl:with-param name="phase" select="$otherPhase"/>
              </xsl:call-template>
          </xsl:when> 

Two questions I have:

1. Is there a document somewhere online that would list the names of 
various fields so I could copy/paste them into my item-view.xsl?
2. After adding fields in item-view.xsl, do I need to restart the server or 
are there other things required for the changes to start displaying?
 

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/28ed4562-4894-4063-a145-52962ba75d80n%40googlegroups.com.

Reply via email to