Changeset 31391

Show
Ignore:
Timestamp:
09.02.2017 10:14:27 (3 years ago)
Author:
kjdon
Message:

need to text if groupPath is not empty, rather than on its existence, as it will exist (and be empty) when there are no groups

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl

    r31382 r31391  
    1515 
    1616    <!-- set page title --> 
    17     <xsl:template name="pageTitle"><xsl:choose><xsl:when test="$groupPath"><gslib:groupName path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteName/></xsl:otherwise></xsl:choose></xsl:template> 
     17    <xsl:template name="pageTitle"><xsl:choose><xsl:when test="$groupPath != ''"><gslib:groupName path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteName/></xsl:otherwise></xsl:choose></xsl:template> 
    1818 
    1919    <!-- set page breadcrumbs --> 
    2020    <xsl:template name="breadcrumbs"> 
    21         <xsl:if test="$groupPath"> 
     21        <xsl:if test="$groupPath != ''"> 
    2222            <gslib:siteLink/> 
    2323            <xsl:for-each select="/page/pageResponse/pathList/group"> 
     
    5656     
    5757            <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div> 
    58         <xsl:variable name="siteDesc"><xsl:choose><xsl:when test="$groupPath"><gslib:groupDescription path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteDescription/></xsl:otherwise></xsl:choose></xsl:variable> 
     58        <xsl:variable name="siteDesc"><xsl:choose><xsl:when test="$groupPath != ''"><gslib:groupDescription path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteDescription/></xsl:otherwise></xsl:choose></xsl:variable> 
    5959        <xsl:if test="$siteDesc != ''"> 
    6060          <xsl:value-of select="$siteDesc"/>