Ignore:
Timestamp:
2011-05-18T15:07:07+12:00 (13 years ago)
Author:
sjm84
Message:

Updated the non-dev skins to take advantage of the stop words information

File:
1 edited

Legend:

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

    r23779 r24026  
    8686    <xsl:when test="$numDocsMatched">
    8787      <span><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.query.manydocsmatch|', $numDocsMatched)"/></xsl:attribute></span>
    88       <xsl:if test="$numDocsReturned"> (<span><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.query.docsreturned|', $numDocsReturned)" /></xsl:attribute></span>)</xsl:if>
     88      <xsl:if test="$numDocsReturned"> <!--(<span><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.query.docsreturned|', $numDocsReturned)" /></xsl:attribute></span>)--></xsl:if>
    8989    </xsl:when>
    9090    <xsl:when test="$numDocsReturned">
     
    140140  </xsl:template>
    141141
    142   <xsl:template name="termInfo">
    143     <div class="terminfo">
    144       <xsl:if test="count(termList/term) > 0">
    145       <span class="getTextFor query.wordcount">&amp;nbsp;</span>
    146     <xsl:for-each select="termList/term">
    147       <xsl:if test="position() > 1">, </xsl:if>
    148       <xsl:value-of select="@name"/>: <xsl:value-of select="@freq"/>
    149     </xsl:for-each>
    150       </xsl:if>
    151     </div>
    152   </xsl:template>
     142    <xsl:template name="termInfo">
     143        <div class="terminfo">
     144            <xsl:if test="count(termList/stopword) > 0">
     145                <span class="getTextFor query.wordcount"></span>
     146                <xsl:text>The following terms are too common and have been excluded from the search: </xsl:text>
     147                <xsl:for-each select="termList/stopword">
     148                    <xsl:value-of select="@name"/><xsl:text> </xsl:text>
     149                </xsl:for-each>
     150                <br />
     151            </xsl:if>
     152            <xsl:if test="count(termList/term) > 0">
     153                <span class="getTextFor query.wordcount"></span>
     154                <xsl:for-each select="termList/term">
     155                    <xsl:if test="position() > 1">, </xsl:if>
     156                    <xsl:value-of select="@name"/>: <xsl:value-of select="@freq"/>
     157                </xsl:for-each>
     158            </xsl:if>
     159        </div>
     160    </xsl:template>
    153161
    154162</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.