Changeset 24026

Show
Ignore:
Timestamp:
18.05.2011 15:07:07 (8 years ago)
Author:
sjm84
Message:

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

Location:
main/trunk/greenstone3/web/interfaces
Files:
2 modified

Legend:

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

    r23972 r24026  
    141141  </xsl:template> 
    142142 
    143   <xsl:template name="termInfo"> 
    144     <div class="terminfo"> 
    145       <xsl:if test="count(termList/term) > 0"> 
    146     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.wordcount')"/> 
    147     <xsl:for-each select="termList/term"> 
    148       <xsl:if test="position() > 1">, </xsl:if> 
    149       <xsl:value-of select="@name"/>: <xsl:value-of select="@freq"/>  
    150     </xsl:for-each> 
    151       </xsl:if> 
    152     </div> 
    153   </xsl:template> 
     143    <xsl:template name="termInfo"> 
     144        <div class="terminfo"> 
     145            <xsl:if test="count(termList/stopword) > 0"> 
     146                <span class="getTextFor query.wordcount"></span> 
     147                <xsl:text>The following terms are too common and have been excluded from the search: </xsl:text> 
     148                <xsl:for-each select="termList/stopword"> 
     149                    <xsl:value-of select="@name"/><xsl:text> </xsl:text> 
     150                </xsl:for-each> 
     151                <br /> 
     152            </xsl:if> 
     153            <xsl:if test="count(termList/term) > 0"> 
     154                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.wordcount')"/> 
     155                <xsl:for-each select="termList/term"> 
     156                    <xsl:if test="position() > 1">, </xsl:if> 
     157                    <xsl:value-of select="@name"/>: <xsl:value-of select="@freq"/>  
     158                </xsl:for-each> 
     159            </xsl:if> 
     160        </div> 
     161    </xsl:template> 
    154162 
    155163</xsl:stylesheet> 
  • 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>