Google Search Appliance Creating the Search Experience User Manual

Page 120

Advertising
background image

Google Search Appliance: Creating the Search Experience

Advanced Customization Topics

120

3.

Scroll down within the search box input form section to locate the XSLT conditional clause
beginning with the following line:

<xsl:if test="$show_secure_radio != '0'">

This conditional clause contains the default radio button code, shown below in boldface and
bracketed by start/end comments (these comments are not found in your default stylesheet):

<xsl:if test="$show_secure_radio != '0'">
<tr>
<td colspan="2">
<font size="-1">
<!-- Start cut. Between here and End cut is the code you
must replace with the secure search checkbox code. -->

Search:

<xsl:choose>
<xsl:when test="$access='p'">
<label><input type="radio" name="access" value="p"
checked="checked" />public content</label>
</xsl:when>
<xsl:otherwise>
<label><input type="radio" name="access" value="p"/>
public content</label>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$access='a'">
<label><input type="radio" name="access" value="a"
checked="checked" />public and secure content</label>
</xsl:when>
<xsl:otherwise>
<label><input type="radio" name="access" value="a"/>
public and secure content</label>
</xsl:otherwise>
</xsl:choose>
<!-- End cut. Between here and Start cut is the code you
must replace with the secure search checkbox code. -->
</font>
</td>
</tr>
</xsl:if>

Advertising