5. Google Customised Search Collections
Search collections are made up of one or a series of URLs and given a group name e.g. Chemistry. They allow you to specify what constitutes your search and means you can taylor the search results to one or a small group of URLs. If you prefer you can use the generic Oxford collection instead of creating one for your own unit. If you require a collection to be set up for you, please contact the InfoDev Team. The following code sets up a Oxford-wide collection:
<input name="site" value="oxford" type="hidden">
If you are using your own collection, the value attribute needs to
change to the name of the collection you have asked InfoDev Team to create for you. The OUCS collection is called
oucs. If you have not requested a collection to be set up for you ,
but just want to be able to search the whole of Oxford University, keep the value as
oxford.
Please note: you can only use one collection name in your search.
<div class="searchbox"> <form id="searchform" method="put"
action="http://googlesearch.oucs.ox.ac.uk/search"> <fieldset>
<legend>Your text or image here</legend> <input
name="site" value="oucs" type="hidden"> <input name="Unit" value="OUCS"
type="hidden"> <input name="UnitPicture" type="hidden"
value="http://www.oucs.ox.ac.uk/googlesearch/radcliffe.jpg"> <input
name="client" value="oxford" type="hidden"> <input
name="proxystylesheet" value="oxford" type="hidden"> <input
name="output" value="xml_no_dtd" type="hidden"> <input name="q"
id="input-search" size="25" onfocus="clearsearch();" maxlength="2048" value=""
class="vam" type="text"> <input name="Go" value="Go!"
type="submit"> </fieldset> </form>
</div>
To request the creation of a collection, please contact the InfoDev Team with details of which domains should be included in your collection.
Up: Contents Previous: 4. Adding a customised Google Search to your site Next: 6. How to obtain XML formatted search results

