Changeset 32046 for main

Show
Ignore:
Timestamp:
16.10.2017 09:59:18 (2 years ago)
Author:
kjdon
Message:

modified how we make the html header title. use page :: collection :: site, but don't print collection or site if not appropriate

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r31674 r32046  
    3939    </base> 
    4040    <xsl:comment>[if lte IE 6]&gt;&lt;/base&gt;&lt;![endif]</xsl:comment> 
    41      
    42     <title><xsl:call-template name="pageTitle"/> :: <xsl:call-template name="siteName"/></title> 
     41 
     42    <xsl:variable name="page"><xsl:call-template name="pageTitle"/></xsl:variable> 
     43    <xsl:variable name="collection"><xsl:call-template name="collectionName"/></xsl:variable> 
     44    <xsl:variable name="site"><xsl:call-template name="siteName"/></xsl:variable> 
     45    <title><xsl:value-of select="$page"/><xsl:if test="$collection != '' and $page != $collection"> :: <xsl:value-of select="$collection"/></xsl:if><xsl:if test="$page != $site"> :: <xsl:value-of select="$site"/></xsl:if></title> 
    4346     
    4447    <xsl:if test="/page/pageRequest/@action ='d'">