Ignore:
Timestamp:
2011-01-13T15:33:13+13:00 (13 years ago)
Author:
kjdon
Message:

check for existence of TextQuery service before outputting it and the divider bar - really just needed so we don't get an extra divider when there is no search service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/gs2/transform/about.xsl

    r20232 r23570  
    6161    <div class="document">
    6262      <xsl:if test="not(/page/pageRequest/paramList/param[@name='qt']) or /page/pageRequest/paramList/param[@name='qt']/@value = 0">
    63       <xsl:apply-templates select="serviceList/service[@name='TextQuery']">
    64     <xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
    65       <xsl:call-template name="dividerBar"/>
     63    <xsl:if test="serviceList/service[@name='TextQuery']">
     64      <xsl:apply-templates select="serviceList/service[@name='TextQuery']">
     65        <xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
     66      <xsl:call-template name="dividerBar"/>
     67    </xsl:if>
    6668      </xsl:if>
    6769    </div>
Note: See TracChangeset for help on using the changeset viewer.