Changeset 26143


Ignore:
Timestamp:
08/30/12 18:24:22 (8 years ago)
Author:
ak19
Message:

Stopwords in Lucene once more being handled with special message, while regular searches (and their messages) still work: for words that occur and that don't occur.

File:
1 edited

Legend:

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

    r26136 r26143  
    189189            </xsl:choose>
    190190        </xsl:variable>
    191    
     191       
    192192        <!-- The list of search terms with their frequency and document count -->
    193193        <xsl:choose>
     
    261261                </p>
    262262            </xsl:when>
    263             <xsl:otherwise>
    264                 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.nodocsmatch')"/>
     263            <xsl:otherwise><!-- 0 results. Still need to check for search term being stopwords -->
     264              <xsl:choose>
     265                <xsl:when test="count(/page/pageResponse/termList/stopword) &gt; 0">
     266                  <p class="termList">
     267                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.common')"/><xsl:text> </xsl:text>
     268               
     269                <xsl:if test="/page/pageResponse/termList/stopword">
     270                  <xsl:for-each select="/page/pageResponse/termList/stopword">
     271                    <span style="font-style:italic;"><xsl:value-of select="@name"/></span><xsl:text> </xsl:text>
     272                  </xsl:for-each>
     273                  <br /><br />
     274                </xsl:if>
     275                  </p>           
     276                </xsl:when>
     277                <xsl:otherwise><!-- 0 results and not owing to stopwords.-->
     278                  <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.nodocsmatch')"/>
     279                </xsl:otherwise>
     280              </xsl:choose>
    265281            </xsl:otherwise>
    266282        </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.