Date: Fri, 29 Mar 2024 03:06:02 -0400 (EDT) Message-ID: <1837807923.29952.1711695962973@lyrasis1-roc-mp1> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_29951_666773028.1711695962972" ------=_Part_29951_666773028.1711695962972 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Locate the template that has a match attribute of "dim:dim" and a mo= de attribute of "itemSummaryView-DIM" inside the base DIM (DSpace Intermedi= ate 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 u= ser clicks show full item record).
<xs= l:template match=3D"dim:dim" mode=3D"itemSummaryView-DIM">. . . . </x= sl:template>
To modify the copied template to add a new Dublin Core field, add th= e following table row inside the
<tab= le class=3D"ds-includeSet-table">
element in the desired position. Here is an example:
<t= r class=3D"ds-table-row"> <td><span class=3D"bold">''[Your label]'' :</span><= ;/td> <td> <xsl:copy-of select=3D" dim:field[@element=3D'[ dc element]' and @qualifier=3D'[dc qualifier]']/child::node()" /> </td> </tr>
Or, if you would like to display a repeatable field with with abil= ity to separate and format the repeated instances:
<tr= class=3D"ds-table-row"> <td><span class=3D"bold">[Your label]:</span></td&= gt; <td> <xsl:for-each select=3D"dim:field[@element=3D'[ dc element]' and @= qualifier=3D'[dc qualifier]']/child::node()"> <xsl:copy-of select=3D"."/><br/> </xsl:for-each> </td> </tr>
To modify the copied template to remove a Dublin Core field, remove = the (or comment out) the table row,
<tr&= gt;
, containing the unwanted field.
If the dublin core field you are adding does not have a qualifier, s= uch as dc.type, then replace
@qualif= ier=3D'[dc qualifier]'
with
not(@qu= alifier)
so that the rule does not match fields with a qualifier.