Changeset 4996


Ignore:
Timestamp:
2003-07-21T16:26:44+12:00 (21 years ago)
Author:
kjdon
Message:

no longer use shortnames for service params

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

Legend:

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

    r4732 r4996  
    9090      <!-- case folding -->
    9191      <xsl:variable name="case"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='case']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='case']/@value"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:variable>
    92       <tr><td rowspan='2' valign='baseline'>Case differences:</td><td><input type='radio' name='ca' value='1'><xsl:if test="$case=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> ignore case differences</td></tr>
    93       <tr><td><input type='radio' name='ca' 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>
     92      <tr><td rowspan='2' valign='baseline'>Case differences:</td><td><input type='radio' name='case' value='1'><xsl:if test="$case=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> ignore case differences</td></tr>
     93      <tr><td><input type='radio' name='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>
    9494      <!-- stemming -->
    9595      <xsl:variable name="stem"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='stem']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='stem']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable>
    96       <tr><td  rowspan='2' valign='baseline'>Word endings:</td><td><input type='radio' name='st' value='1'><xsl:if test="$stem=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> ignore word endings</td></tr>
    97       <tr><td><input type='radio' name='st' value='0'><xsl:if test="$stem=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> whole word must match</td></tr>
     96      <tr><td  rowspan='2' valign='baseline'>Word endings:</td><td><input type='radio' name='stem' value='1'><xsl:if test="$stem=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input></td><td> ignore word endings</td></tr>
     97      <tr><td><input type='radio' name='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>
    9898      <!-- hit display -->
    9999      <xsl:variable name="maxdocs"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='maxDocs']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='maxDocs']/@value"/></xsl:when><xsl:otherwise>50</xsl:otherwise></xsl:choose></xsl:variable>
    100100      <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>
    101101      <tr><td colspan='3'>Return up to
    102       <select name="md">
     102      <select name="maxDocs">
    103103        <option value="50"><xsl:if test="$maxdocs=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option>
    104104        <option value="100"><xsl:if test="$maxdocs=100"><xsl:attribute name="selected"></xsl:attribute></xsl:if>100</option>
  • trunk/gsdl3/web/interfaces/nzdl/transform/query.xsl

    r4901 r4996  
    122122  <xsl:template match="param[@name='matchMode']" mode='query1'>
    123123   <xsl:param name='default'/>
    124     in query 1
    125124    <xsl:variable name="qfm" select="/page/pageRequest/paramList/param[@name='qfm']/@value"/>
    126125    <xsl:choose>
     
    156155      <xsl:when test="$qb=1"><!-- large query box -->
    157156        <tr><td>
    158         <textarea name="q" cols='63' rows='10'>
     157        <textarea name="query" cols='63' rows='10'>
    159158          <xsl:apply-templates select="param[@name='query']" mode="calculate-default"/><xsl:text> </xsl:text><!-- put a space here just in case there is no value- mozilla craps out if have a <textarea /> element -->
    160159        </textarea>
     
    203202        </xsl:when>
    204203        <xsl:otherwise><!-- put in a hidden placeholder -->
    205           <input type="hidden" name='{@shortname}' value=''/>
     204          <input type="hidden" name='{@name}' value=''/>
    206205        </xsl:otherwise>
    207206      </xsl:choose></td>
Note: See TracChangeset for help on using the changeset viewer.