4. Adding a customised Google Search to your site
The Google appliance has the ability to allow customisation of the search form and the results it sends back. This allows searches to be restricted to a given domain e.g. oucs.ox.ac.uk. In order to take advantage of this facility a few of the parameters set in the Oxford-wide search need to be altered. The code lines that need to be amended are:
- <input type="hidden" name="as_sitesearch" value="ox.ac.uk">
- <input name="UnitPicture" value="http://www.oucs.ox.ac.uk/googlesearch/radcliffe.jpg" type="hidden">
You should then insert the following code:
<input name="Unit" value="Your Department Name Here"
This input box needs to have the correct department name added. So, for the Physics Department, you should replace '
Your Department Name Here' with '
Physics' as the
value parameter. The name Physics will now appear as part of the
results page heading.
Finally you can change the image that appears to the left of the search box. Change the URL so that it references your chosen image instead of the default Oxford image. Please make your image no wider than 75px to prevent CSS problems. Test your changes to make sure that you now see your chosen image, the search title states your unit name and finally that the results are coming from your chosen Oxford domain.
Please note: You cannot specify more than one domain using the
as_sitesearch parameter. However multiple web sites within that
domain are all searched. For instance, public facing pages of both
can be searched together using this method but
oucs.ox.ac.uk cannot. If you wish to include more domains in
your search results a search 'collection' needs to be used. 'Collections' are created
for you by the InfoDev Team. See 5. Google Customised Search Collections for