Yale University

Y-Menu.
 

Help Desk
432-9000
785-3200

ITS Office
Yale University
175 Whitney Avenue
P.O. Box 208276
New Haven, CT
06520-8276
USA

Yale logo.

Creating a search form on your Web site

You can use the Yale Google Search Appliance by adding the Yale Google Search Appliance search form shown below to your own Web site. You can also use techniques to search only specific areas of Yale or your own department Web site. We also offer information on more advanced techniques for experienced Web developers on how to search particular collections or Yale Web sites, and how to use options to integrate the Yale Google Search Appliance searches into the “look and feel” of your web site using the various Google Search Appliance graphic “frontends.” The following is a basic approach to adding Yale’s Google Search Appliance search to your Web site.

This is an example of a basic search box for the Yale Google Search Appliance:



   

You can download a text file of this code (yale_gsa_search.txt), or copy and paste the code into your Web pages to add Yale Google Search Appiance-based search to your site:

<!-- === YALE GOOGLE SEARCH APPLIANCE SEARCH FORM === -->
<form name="gs" method="GET" action="http://google.yale.edu/search" style="margin: 0px 0px 0px 0px;">
<table id="searchForm" cellpadding="5" cellspacing="0" border="0" style="margin: 0px;">
<tr>
<td valign="middle">
<input name="q" type="text" size="20" value="Search Yale University" alt="Search Yale University" style="color:#6666aa;font-family:Verdana,Geneva,Arial,sans-serif;font-style:italic;font-size:9pt;vertical-align:middle;" onfocus="this.value='';" /><br />
</td>
<td valign="middle">
<!-- SET SITE PARAMETER VIA POP-UP MENU -->
<select name="site">
<option value="Yale_University" selected >Yale_University</option>
<option value="Yale_Libraries">Yale_Libraries</option>
<option value="Medical_Center">Medical_Center</option>
<option value="Medical_Library" >Medical_Library</option>
<option value="Yale_Law_School" >Yale_Law_School</option>
<option value="Yale_College" >Yale_College</option>
<option value="ITS">ITS</option>
<option value="Yale_News">Yale_News</option>
</select>
</td>
<td valign="middle"> 
<input type="image" src="http://info.med.yale.edu/gsa_support_files/resources/images/search_button.gif" height="21" width="92" name="btnG" value="Search"> 
</td>
</tr></table>
<!-- Standard Google search parameters are below -->
<!-- MINOR STUFF TO LEAVE ALONE -->
<input type="hidden" name="sort" value="date:D:L:d1"> <!-- Sort results by date. No current alternatives. -->
<input type="hidden" name="output" value="xml_no_dtd"> <!-- Results as HTML. A must for custom frontends. -->
<input type="hidden" name="oe" value="UTF-8"> <!-- Output encoding for UTF8 character set. -->
<input type="hidden" name="ie" value="UTF-8"><!-- Input character set encoding. -->
<input type="hidden" name="proxyreload" value="1"> <!-- Value of '1' forces update of results XSLT. -->
<!-- MAJOR PARAMETERS TO CONTROL FRONTENDS AND COLLECTIONS -->
<!-- CLIENT -->
<input type="hidden" name="client" value="bluesite_frontend">
<!-- Custom frontend HTML for results page. -->
<!-- PROXYSTYLESHEET -->
<input type="hidden" name="proxystylesheet" value="bluesite_frontend">
<!-- Must match the 'client' frontend specified. -->
</form>
<!-- === /YALE GOOGLE SEARCH APPLIANCE FORM === -->

  YALEgsa logo.
Jump to top.