Changeset 32046


Ignore:
Timestamp:
2017-10-16T09:59:18+13:00 (7 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

File:
1 edited

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'">
Note: See TracChangeset for help on using the changeset viewer.