Ignore:
Timestamp:
2008-08-21T14:00:47+12:00 (16 years ago)
Author:
kjdon
Message:

always call query-response tenplate from pageResponse, cos we want to display 'no docs matched the query' if there is nothing. shift the if documentNodeList test into the query-response template

File:
1 edited

Legend:

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

    r13505 r16942  
    4848      <xsl:call-template name="berrybasket"/>
    4949    </xsl:if>
    50     <xsl:if test="documentNodeList">
    5150      <xsl:call-template name="query-response">
    5251    <xsl:with-param name="collName" select="$collName"/>
    5352      </xsl:call-template>
    54     </xsl:if>
     53     
    5554    </div>
    5655   </xsl:template>
     
    6665    <xsl:call-template name="matchDocs"/>
    6766   
     67    <xsl:if test="documentNodeList">
     68
    6869     <!-- next and prev links at top of results-->
    6970   
    70     <xsl:call-template name="resultNavigation">
    71       <xsl:with-param name="collName" select="$collName"/>
    72     </xsl:call-template>
     71      <xsl:call-template name="resultNavigation">
     72    <xsl:with-param name="collName" select="$collName"/>
     73      </xsl:call-template>
    7374   
    74     <!-- Display the matching documents --> 
    75    
    76     <xsl:call-template name="resultList">
    77       <xsl:with-param name="collName" select="$collName"/>
    78     </xsl:call-template>
     75      <!-- Display the matching documents --> 
     76      
     77      <xsl:call-template name="resultList">
     78    <xsl:with-param name="collName" select="$collName"/>
     79      </xsl:call-template>
    7980   
    80     <!-- next and prev links at bottom of page -->
    81     <xsl:call-template name="resultNavigation">
    82       <xsl:with-param name="collName" select="$collName"/>
    83     </xsl:call-template>
    84 
     81      <!-- next and prev links at bottom of page -->
     82      <xsl:call-template name="resultNavigation">
     83    <xsl:with-param name="collName" select="$collName"/>
     84      </xsl:call-template>
     85    </xsl:if>
    8586  </xsl:template>
    8687 
Note: See TracChangeset for help on using the changeset viewer.