Changeset 4274
- Timestamp:
- 2003-05-13T10:21:40+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/nzdl/transform/pref.xsl
r4254 r4274 52 52 <table> 53 53 <tr><td></td><td align='right'><input type='submit' value='set prefs'/></td></tr> 54 <tr><td valign='baseline'>Query box size:</td><td><input type='radio' name='qb' value='0' onClick="updateqb(0);"><xsl:if test="ancestor::page/pageRequest/paramList/param[@name='qb']/@value=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> regular query box<br /> 55 <input type='radio' name='qb' value='1' onClick="updateqb(1);"><xsl:if test="ancestor::page/pageRequest/paramList/param[@name='qb']/@value=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input>large query box</td></tr> 56 <tr><td valign='baseline'>Case differences:</td><td><input type='radio' name='ca' value='1' onClick="updateca(1);" checked=''/> ignore case differences<br /> 57 <input type='radio' name='ca' value='0' onClick="updateca(0);"/> upper/lower case must match</td></tr> 58 <tr><td valign='baseline'>Word endings:</td><td><input type='radio' name='st' value='1' onClick="updatest(1);"/> ignore word endings<br /> 59 <input type='radio' name='st' value='0' onClick="updatest(0);" checked=''/> whole word must match</td></tr> 60 <tr><td valign='baseline'>Query mode:</td><td><input type='radio' name='qm' value='0' onClick="updateqm(0);" checked=''/> simple query mode<br /> 61 <input type='radio' name='qm' value='1' onClick="updateqm(1);"/> advanced query mode (allows boolean searching using !, &, |, and parentheses)</td></tr> 54 <!-- query box size --> 55 <xsl:variable name="boxsize"><xsl:choose><xsl:when test="ancestor::page/pageRequest/paramList/param[@name='qb']"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='qb']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> 56 <tr><td valign='baseline'>Query box size:</td><td><input type='radio' name='qb' value='0'><xsl:if test="$boxsize=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> regular query box<br /> 57 <input type='radio' name='qb' value='1'><xsl:if test="$boxsize=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> large query box</td></tr> 58 <!-- case folding --> 59 <xsl:variable name="case"><xsl:choose><xsl:when test="ancestor::page/pageRequest/paramList/param[@name='case']"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='case']/@value"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:variable> 60 <tr><td 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> ignore case differences<br /> 61 <input type='radio' name='ca' value='0'><xsl:if test="$case=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> upper/lower case must match</td></tr> 62 <!-- stemming --> 63 <xsl:variable name="stem"><xsl:choose><xsl:when test="ancestor::page/pageRequest/paramList/param[@name='stem']"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='stem']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> 64 <tr><td 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> ignore word endings<br /> 65 <input type='radio' name='st' value='0'><xsl:if test="$stem=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> whole word must match</td></tr> 66 <!-- query mode --> 67 <xsl:variable name="querymode"><xsl:choose><xsl:when test="ancestor::page/pageRequest/paramList/param[@name='qm']"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='qm']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> 68 <tr><td valign='baseline'>Query mode:</td><td><input type='radio' name='qm' value='0'><xsl:if test="$querymode=0"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> simple query mode<br /> 69 <input type='radio' name='qm' value='1'><xsl:if test="$querymode=1"><xsl:attribute name="checked"></xsl:attribute></xsl:if></input> advanced query mode (allows boolean searching using !, &, |, and parentheses)</td></tr> 70 <!-- hit display --> 71 <xsl:variable name="maxdocs"><xsl:choose><xsl:when test="ancestor::page/pageRequest/paramList/param[@name='maxDocs']"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='maxDocs']/@value"/></xsl:when><xsl:otherwise>50</xsl:otherwise></xsl:choose></xsl:variable> 72 <xsl:variable name="hits"><xsl:choose><xsl:when test="ancestor::page/pageRequest/paramList/param[@name='hp']"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='hp']/@value"/></xsl:when><xsl:otherwise>20</xsl:otherwise></xsl:choose></xsl:variable> 62 73 <tr><td colspan='2'>Return up to 63 <select name="md" onChange="updatemd();">64 <option value="50" selected="">50</option>65 <option value="100"> 100</option>66 <option value="200"> 200</option>67 <option value="-1"> all</option>74 <select name="md"> 75 <option value="50"><xsl:if test="$maxdocs=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 76 <option value="100"><xsl:if test="$maxdocs=100"><xsl:attribute name="selected"></xsl:attribute></xsl:if>100</option> 77 <option value="200"><xsl:if test="$maxdocs=200"><xsl:attribute name="selected"></xsl:attribute></xsl:if>200</option> 78 <option value="-1"><xsl:if test="$maxdocs=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if>all</option> 68 79 </select> 69 80 hits with 70 <select name="hp" onChange="updatehp();">71 <option value="10"> 10 </option>72 <option value="20" selected="">20</option>73 <option value="50"> 50</option>74 <option value="-1"> all</option>81 <select name="hp"> 82 <option value="10"><xsl:if test="$hits=10"><xsl:attribute name="selected"></xsl:attribute></xsl:if>10 </option> 83 <option value="20"><xsl:if test="$hits=20"><xsl:attribute name="selected"></xsl:attribute></xsl:if>20</option> 84 <option value="50"><xsl:if test="$hits=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 85 <option value="-1"><xsl:if test="$hits=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if>all</option> 75 86 </select> 76 87 hits per page.
Note:
See TracChangeset
for help on using the changeset viewer.