UQ Online

[UQ Home] [Search] [Contacts] [Study] [News] [Events] [Maps] [Library]

UQ Experts

Send Feedback

B. Creating A Search Form

This information is intended for web content maintainers within UQ whose sites do not currently reside on the UQ Content Management System (where search facilities are already built into the site templates). By inserting a short section of HTML code into your page template or on a dedicated search page on your site, it is possible to link to the Google Appliance to search for content specific to that site.

1. Insert the following HTML into your web page where you want the search box to appear:


<form method="get" action="http://www.uq.edu.au/search">
<label for="q">Search UQ</label>
<input type="text" name="q" size="32" maxlength="255" value="" />
<input type="submit" name="btnG" value="Search" />
<input type="hidden" name="site" value="default_collection" />
<input type="hidden" name="client" value="ws" />
<input type="hidden" name="proxystylesheet" value="ws" />
<input type="hidden" name="output" value="xml_no_dtd" />
<input type="hidden" name="sitesearch" value="<yoururl>" />
</form>

2. Customise the following required parameters:

(a) name="sitesearch" value=""
Limits search results to documents in the specified domain, host, or web directory. Replace ‘yoururl’ with your site url.
e.g:
www.uq.edu.au/about to include sub-directories
www.uq.edu.au/about/ to exclude sub-directories

(b) name="site" value="default_collection"
A collection lets your users search over a specific part of the index. UQ’s defaulat search collection is: default_collection – All UQ web sites

(c) UQ Search Collections
If you are using these collections you must remove name="sitesearch" value=""

Replace value=”default_collection” with one of the collections below.
e.g:
<input type="hidden" name="site" value="Research" />

These collections contain multiple websites in a collection:
(1) About – http://www.uq.edu.au/about
(2) Contacts – http://www.uq.edu.au/contact
(3) Departments – http://www.uq.edu.au/departments
(4) Events – http://www.uq.edu.au/events
(5) Experts – http://www.uq.edu.au/uqexperts
(6) Hupp - http://www.uq.edu.au/hupp
(7) Maps – http://www.uq.edu.au/maps
(8) News – http://www.uq.edu.au/news
(9) eSpace – http://espace.library.uq.edu.au

(10) Research – http://www.uq.edu.au/research/, http://www.uq.edu.au/uqresearchers/, http://www.uq.edu.au/uqexperts/, http://www.uq.edu.au/news/index.html?category=54

(11) TeachingLearning - http://www.uq.edu.au/teaching-learning/, http://www.uq.edu.au/news/index.html?category=15, http://www.tedi.uq.edu.au/, http://elearning.uq.edu.au/, http://www.uq.edu.au/facilities/index.html?id=4267, http://www.uq.edu.au/hupp/index.html?page=25075

(12) IT - http://www.its.uq.edu.au/, http://uqconnect.net/, http://www.uq.edu.au/itspp/, http://askit.uq.edu.au/

(c) Sorting
By default, Google combines hypertext-matching analysis and PageRank technologies to provide users with highly relevant results. Hypertext-matching analysis uses the design of the page, examining over 100 factors to determine the best result for your query term. PageRank considers the link structure of the entire index to understand how each page links to the other pages in the index.

More information about customisation at: Google Search Protocol Reference

feedback