Ignore:
Timestamp:
2004-11-17T11:30:43+13:00 (18 years ago)
Author:
kjdon
Message:

the previous mods didn't work, so fixed them. and changed hp param to hitsPerPage which is what everything else uses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/web/interfaces/classic/transform/pref.xsl

    r8570 r8584  
    99  <xsl:include href="style.xsl"/>
    1010  <!--<xsl:include href="pref-text.xsl"/>-->
    11   <!--<xsl:include href="page-common.xsl"/>-->
    1211 
    1312  <xsl:output method="html"/> 
     
    9190      </xsl:choose>
    9291      <!-- case folding -->
    93       <xsl:variable name="case"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='{$ns}case']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='{$ns}case']/@value"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:variable>
     92      <xsl:variable name="casevar" select="concat($ns,'case')"/>
     93      <xsl:variable name="case"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name=$casevar]"><xsl:value-of select="/page/pageRequest/paramList/param[@name=$casevar]/@value"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:variable>
    9494      <tr><td rowspan='2' valign='baseline'>Case differences:</td><td><input type='radio' name='{$ns}case' value='1'><xsl:if test="$case=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> ignore case differences</td></tr>
    9595      <tr><td><input type='radio' name='{$ns}case' value='0'><xsl:if test="$case=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> upper/lower case must match</td></tr>
    9696      <!-- stemming -->
    97       <xsl:variable name="stem"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='{$ns}stem']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='{$ns}stem']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable>
     97      <xsl:variable name="stemvar" select="concat($ns,'stem')"/>
     98      <xsl:variable name="stem"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name=$stemvar]"><xsl:value-of select="/page/pageRequest/paramList/param[@name=$stemvar]/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable>
    9899      <tr><td  rowspan='2' valign='baseline'>Word endings:</td><td><input type='radio' name='{$ns}stem' value='1'><xsl:if test="$stem=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> ignore word endings</td></tr>
    99100      <tr><td><input type='radio' name='{$ns}stem' value='0'><xsl:if test="$stem=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> whole word must match</td></tr>
    100101      <!-- hit display -->
    101       <xsl:variable name="maxdocs"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='{$ns}maxDocs']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='{$ns}maxDocs']/@value"/></xsl:when><xsl:otherwise>50</xsl:otherwise></xsl:choose></xsl:variable>
    102       <xsl:variable name="hits"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='hp']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='hp']/@value"/></xsl:when><xsl:otherwise>20</xsl:otherwise></xsl:choose></xsl:variable>
     102      <xsl:variable name="maxvar" select="concat($ns,'maxDocs')"/>
     103      <xsl:variable name="maxdocs"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name=$maxvar]"><xsl:value-of select="/page/pageRequest/paramList/param[@name=$maxvar]/@value"/></xsl:when><xsl:otherwise>50</xsl:otherwise></xsl:choose></xsl:variable>
     104      <xsl:variable name="hits"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='hitsPerPage']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='hitsPerPage']/@value"/></xsl:when><xsl:otherwise>20</xsl:otherwise></xsl:choose></xsl:variable>
    103105      <tr><td colspan='3'>Return up to
    104106      <select name="{$ns}maxDocs">
     
    109111      </select>
    110112      hits with
    111       <select name="hp">
     113      <select name="hitsPerPage">
    112114        <option value="10"><xsl:if test="$hits=10"><xsl:attribute name="selected"></xsl:attribute></xsl:if>10 </option>
    113115        <option value="20"><xsl:if test="$hits=20"><xsl:attribute name="selected"></xsl:attribute></xsl:if>20</option>
Note: See TracChangeset for help on using the changeset viewer.