Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameAccepted valuesDescription
qText string(required) The search query
type"Web" or "People"

(optional) Indicated Indicates the type of search to perform. Searches with type "Web" are routed to the campus search appliance. Searches with type "People" are routed to the campus directory. If no type or a type other than "Web" or "People" is indicated, the search is treated as type "Web".

domainComma-delimited list of domainText string(optional) Restricts search results to a defined subset of UCI web propertiesproperty. Do not include protocol (use only "communications.uci.edu", not "https://communications.uci.edu"). Multiple domain can be specified (e.g., "communications.uci.edu,brand.uci.edu").Applies only to web searches; has no impact on directory searches.

Code Examples

The below are examples only and are not prescriptive. Feel free to experiment with different form markup.

...

Code Block
<form action="https://search.uci.edu/" method="get">
	<label for="search-text">Search</label>
	<input id="search-text" name="q" placeholder="Search..." type="text"/>
	<button name="type" type="submit" value="Web">Web</button>
	<button name="type" type="submit" value="People">People</button>
</form>

Restricting search results to a specified

...

domain

The following example restricts search results to the  Communications and Brand websites website by adding a hidden input that supples the numeric value for that collectionsite domain

Code Block
<form action="https://search.uci.edu/" method="get">
	<label for="search-text">Search</label>
	<input id="search-text" name="q" placeholder="Search..." type="text"/>
	<button name="type" type="submit" value="Web">Go</button>
	<input name="domain" type="hidden" value="communications.uci.edu,brand.uci.edu">
</form>

Accessibility considerations

...