mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
DS-847 Fix items without titles in browse and item display page.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6666 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="dim:field[@element='title']">
|
||||
<xsl:when test="dim:field[@element='title'] and (string-length(dim:field[@element='title']) > 0)">
|
||||
<xsl:value-of select="dim:field[@element='title'][1]/node()"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
@@ -266,8 +266,8 @@
|
||||
<xsl:variable name="page_title" select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title']" />
|
||||
<title>
|
||||
<xsl:choose>
|
||||
<xsl:when test="not($page_title)">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:when test="not($page_title) or (string-length($page_title) < 1)">
|
||||
<i18n:text>xmlui.dri2xhtml.METS-1.0.no-title</i18n:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:copy-of select="$page_title/node()" />
|
||||
@@ -303,9 +303,9 @@
|
||||
</a>
|
||||
<h1 class="pagetitle">
|
||||
<xsl:choose>
|
||||
<!-- protectiotion against an empty page title -->
|
||||
<xsl:when test="not(/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title'])">
|
||||
<xsl:text> </xsl:text>
|
||||
<!-- protection against an empty page title -->
|
||||
<xsl:when test="not(/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title']) or (string-length(/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title']) < 1)">
|
||||
<i18n:text>xmlui.dri2xhtml.METS-1.0.no-title</i18n:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:copy-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title']/node()"/>
|
||||
@@ -1554,7 +1554,15 @@
|
||||
<xsl:call-template name="standardAttributes">
|
||||
<xsl:with-param name="class">ds-div-head</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:apply-templates />
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length(./node()) < 1">
|
||||
<i18n:text>xmlui.dri2xhtml.METS-1.0.no-title</i18n:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
Reference in New Issue
Block a user