Changeset 8560
- Timestamp:
- 2004-11-16T11:06:50+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/classic/transform/pref.xsl
r8532 r8560 55 55 56 56 <xsl:template name="search-prefs"> 57 <xsl:param name="ns">s1.</xsl:param> 57 58 <xsl:variable name="ct"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='ct']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='ct']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> 58 59 <table> … … 90 91 </xsl:choose> 91 92 <!-- case folding --> 92 <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>93 <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>94 <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>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> 94 <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> 95 <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> 95 96 <!-- stemming --> 96 <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>97 <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>98 <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>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> 98 <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> 99 <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> 99 100 <!-- hit display --> 100 <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>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> 101 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 103 <tr><td colspan='3'>Return up to 103 <select name=" maxDocs">104 <select name="{$ns}maxDocs"> 104 105 <option value="50"><xsl:if test="$maxdocs=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 105 106 <option value="100"><xsl:if test="$maxdocs=100"><xsl:attribute name="selected"></xsl:attribute></xsl:if>100</option>
Note:
See TracChangeset
for help on using the changeset viewer.