Changeset 9009 for trunk/gsdl3/web


Ignore:
Timestamp:
2005-02-10T17:02:37+13:00 (19 years ago)
Author:
kjdon
Message:

added param collName to resultNavigation template - can't necessarily assume that the currently set coll var is the right one.

Location:
trunk/gsdl3/web/interfaces/default/transform
Files:
2 edited

Legend:

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

    r8526 r9009  
    5757   
    5858    <!-- next and prev links at top of results-->
    59     <xsl:call-template name="resultNavigation"/>
     59    <xsl:call-template name="resultNavigation">
     60      <xsl:with-param name="collName" select="$collName"/>
     61    </xsl:call-template>
    6062    <!-- Display the matching documents -->
    6163    <xsl:call-template name="resultList">
     
    6365    </xsl:call-template>
    6466    <!-- next and prev links at bottom of page -->
    65     <xsl:call-template name="resultNavigation"/>
     67    <xsl:call-template name="resultNavigation">
     68      <xsl:with-param name="collName" select="$collName"/>
     69    </xsl:call-template>
    6670  </xsl:template>
    6771 
  • trunk/gsdl3/web/interfaces/default/transform/querytools.xsl

    r8435 r9009  
    99  <!-- have changed this so it uses service hitsPerPage and startPage if the service description has a param called hitsPerPage,  otherwise uses interface ones -->
    1010  <xsl:template name="resultNavigation">
     11    <xsl:param name="collName"/>
    1112    <!-- hits type -->
    1213    <xsl:variable name='ht'>
     
    6162      <tr>
    6263        <td align='left'>
    63           <xsl:if test="$here &gt; 1"><a href="{$library_name}?a=q&amp;sa={$sa}&amp;s={$service}&amp;rt=r&amp;{$page-param}={$prev}"><img src="interfaces/default/images/less.gif" width='30' height='16' border='0' align='top'/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.matches')"/><xsl:text> </xsl:text><xsl:value-of select="number(($prev - 1)*$hpp + 1)"/> - <xsl:value-of select="number(($prev * $hpp))"/></a></xsl:if>
     64          <xsl:if test="$here &gt; 1"><a href="{$library_name}?a=q&amp;sa={$sa}&amp;c={$collName}&amp;s={$service}&amp;rt=r&amp;{$page-param}={$prev}"><img src="interfaces/default/images/less.gif" width='30' height='16' border='0' align='top'/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.matches')"/><xsl:text> </xsl:text><xsl:value-of select="number(($prev - 1)*$hpp + 1)"/> - <xsl:value-of select="number(($prev * $hpp))"/></a></xsl:if>
    6465        </td>
    6566        <td align='right'>
     
    6768        <xsl:variable name='m' select="number($next * $hpp)"/>
    6869        <xsl:variable name='mm'><xsl:choose><xsl:when test="$m &lt; $td"><xsl:value-of select='$m'/></xsl:when><xsl:otherwise><xsl:value-of select='$td'/></xsl:otherwise></xsl:choose></xsl:variable>
    69         <a href="{$library_name}?a=q&amp;sa={$sa}&amp;s={$service}&amp;rt=r&amp;{$page-param}={$next}"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.matches')"/><xsl:text> </xsl:text><xsl:value-of select="number(($next - 1)*$hpp + 1)"/> - <xsl:value-of select="$mm"/><img src="interfaces/default/images/more.gif" width='30' height='16' border='0' align='top'/></a></xsl:if></td> </tr>
     70        <a href="{$library_name}?a=q&amp;sa={$sa}&amp;c={$collName}&amp;s={$service}&amp;rt=r&amp;{$page-param}={$next}"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.matches')"/><xsl:text> </xsl:text><xsl:value-of select="number(($next - 1)*$hpp + 1)"/> - <xsl:value-of select="$mm"/><img src="interfaces/default/images/more.gif" width='30' height='16' border='0' align='top'/></a></xsl:if></td> </tr>
    7071    </table>
    7172      </center>
Note: See TracChangeset for help on using the changeset viewer.