Changeset 25435

Show
Ignore:
Timestamp:
19.04.2012 15:56:54 (8 years ago)
Author:
sjm84
Message:

Don't try and display the collection if there isn't one to display

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/help.xsl

    r23813 r25435  
    1515 
    1616    <!-- set page breadcrumbs --> 
    17     <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/> <gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template> 
     17    <xsl:template name="breadcrumbs"> 
     18        <gslib:siteLink/><gslib:rightArrow/> 
     19        <xsl:if test="/page/pageResponse/collection"> 
     20            <gslib:collectionNameLinked/><gslib:rightArrow/> 
     21        </xsl:if> 
     22    </xsl:template> 
    1823 
    1924    <!-- the page content --> 
    2025    <xsl:template match="page"> 
    2126        <xsl:call-template name="helpTopics"/> 
    22         <xsl:call-template name="findingInformationHelp"/> 
     27        <xsl:if test="/page/pageResponse/collection"> 
     28            <xsl:call-template name="findingInformationHelp"/> 
     29        </xsl:if> 
    2330        <xsl:call-template name="readingDocsHelp"/> 
    2431        <xsl:call-template name="searchingHelp"/>