Google Search Appliance at the University of Bath - Tools and Utilities


Tools and Utilities

Plugins


HTML Form Code

Listed below is example HTML you can include on your web pages to add a search form for the GSA

   <form action="http://search.bath.ac.uk/search" method="get" name="gs"
            id="gs" onsubmit="return (this.words.value != '' &amp;&amp; this.words.value != 'search')">
        <input type="hidden" name="site" value="default_collection" />
        <input type="hidden" name="output" value="xml_no_dtd" />
        <input type="hidden" name="client" value="default_frontend" />
        <input type="hidden" name="proxystylesheet" value="default_frontend" />
        <input maxlength="255" size="14" name="q" />
        <input name="submit" type="image" id="gsgo" value="btnG"
            src="http://www.bath.ac.uk/assets/images/gobutton.gif" alt="go"/>
    </form>

Here is what the above HTML will produce:

If you require a different "go" image then replace the src attribute of the <input type="image" /> element:

       <input name="submit" type="image" id="gsgo" value="btnG"
            src="http://www.bath.ac.uk/assets/images/gobutton.gif" alt="go"/>

with the path to the correct image, for example the following:

       <input name="submit" type="image" id="gsgo" value="btnG"
            src="http://www.bath.ac.uk/assets/graphics/gobutton.gif" alt="go"/>

will display this image:


Server Side Include

Note: this include is currently designated experimental and is subject to change

If you use Server Side Includes (SSI) on your webpages you can add a search form by calling the following SSI

   <!--#include virtual="/search/gsa/ssi/search.shtml"-->

PHP class

A PHP class might be made available in the future.



Firefox 1.5 Plugin

Click on the install link to add the Firefox 1.5 Bath search plugin (requires javascript support).

Install

Firefox 2 and Internet Explorer 7 Plugin

Firefox 2 and Internet Explorer 7 users just click on the search engine selector in the top right of your browser and select "Add University of Bath".

Screenshot of adding GSA search to Firefox search bar

Screenshot of Firefox search bar with GSA search added