Page History
<?xml version="1.0" encoding="utf-8"?>
<html>
This recipe is written for the Manakin (XMLUI) interface supplied with Dspace >= 1.5.0. Compatibility with < 1.5.0 is not guaranteed.
...
Find or override the template that handles item display, eg.
Panelcode |
---|
<xsl:template match="dim:dim" mode="itemSummaryView-DIM"> |
If you want to render line breaks only for a specific metadata field (dc.description.abstract in this example), make sure you only call the template when that metadata is matched:
Panelcode |
---|
<xsl:if test="dim:field[atelement='description' and atqualifier='abstract']"> |
Then loop through each match and call the 'break' template:
Panel |
---|
Code Block |
<xsl:for-each select="dim:field[@element='description' and @qualifier='abstract']">
<xsl:call-template name="break">
<xsl:with-param name="text" select="./node()"/>
</xsl:call-template>
<xsl:if test="count(following-sibling::dim:field[@element='description' and @qualifier='abstract']) != 0">
<hr class="metadata-seperator"/>
</xsl:if>
</xsl:for-each>
|
Most of this code is already available in dri2xhtml/structural.xsl, it just needs the 'break' template added and the usual value-of select replaced by the call-template/with-param.
Note: Because this method uses <p/> tags to generate paragraph breaks, the first paragraph of the abstract will be differently formatted to the rest if a <p/> is not inserted before the first call to 'break'.
Italic text
</html>