Information Technology
 Home  |  Services  |  Support  |  News & Pubs  | About Us  |  Projects  |  Forms 

Web Publishing

Adding Google to Your Pages

 

CSUF Installs Google Enterprise Search Engine

Information Technology has installed a Google Enterprise Search Engine to help web visitors find what they need quickly and easily on the CSUF Web. Having our own, dedicated search engine crawiling the Fullerton domain means faster indexing (3-4 days vs. up to 30 days with the free service), and key word and key phrase matching to push users to your site. We also have the ability to do better, more accurate analysis of what users are looking for, and to repsond as needed with better search match phrases.

Campus webmasters need to change the code on their websites to point to CSUF's search engine.. Here's what you need to do:

Links from Buttons
If you simply have a graphic "search" button, just change the link associated with the button to http://google.fullerton.edu/search

Search Box
To add a search box like this:

Use this code:

<!-- Search My Google Search Appliance -->
</p>

<form method="get" action="http://google.fullerton.edu/search">
<table>
<tr>
<td>
<label for="query"> Search CSUF</label>
<input type="text" name="q" size="25" id= "query" maxlength="255" value=""/>
<input type="submit" name="btnG" value="Go"/>
<input type="hidden" name="site" value="default_collection"/>
<input type="hidden" name="client" value="csuf_frontend"/>
<input type="hidden" name="proxystylesheet" value="csuf_frontend"/>
<input type="hidden" name="output" value="xml_no_dtd"/>
</td>
</tr>
</table>

<!-- Search My Google Search Appliance-->
</form>


<!-- Search My Google Search Appliance-->


Search Box: Search Within a Particular Site
You can instruct Google to search within your own website by altering the code slightly:


Here's the code, with the changes in boldface:

<!-- Search My Google Search Appliance -->
</p>
<form method="get" action="http://google.fullerton.edu/search">
<table>
<tr>
<td>
<label for="query"> Search Information Technology</label>
<input type="text" name="q" size="25" id="query" maxlength="255" alt="enter key words" value=""/>
<input type="submit" name="btnG" value="Go"/>
<input type="hidden" name="site" value="default_collection"/>
<input type="hidden" name="client" value="csuf_frontend"/>
<input type="hidden" name="proxystylesheet" value="csuf_frontend"/>
<br>
<input type="hidden" name="hq" value="inurl:www.fullerton.edu/it/">
<input type="hidden" name="output" value="xml_no_dtd"/>
</td>
</tr>
</table>
</form>
<!-- Search My Google Search Appliance-->


Search Box: Search the CSUF or Campus Directory
Here's the code from the campus home page which gives users the choice of searching the web or the campus online directory:

placeholder Search
Here's the code for this form:

<form name="frmSearch2" method="post" action="#" onSubmit="return checkSubmitVal();">
<table width="267" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="267">
<span class="body_text"><label for="radio">CSUF WEB </label></span>
<input type=radio name="enable" value="fullerton.edu" onClick="whichone =0;" checked id="radio">
<span class="body_text"><label for="radio3">CSUF PEOPLE</label></span>
<input type=radio name="enable" value="person" onClick="whichone =1;" id="radio3" > </td>
</tr>
<tr>
<td> <img src="../images/site_elements/placeholder.gif" alt="" width="1" height="1">
<input name="q" id="q2" type="text" value="keyword(s)" alt="keyword(s)" size="20" onFocus="javascript:clearsearch()">
<A HREF="javascript:document.frmSearch.submit()" onClick="return checkSubmitVal();">
<img src="images/go button.bmp" alt="Search" border="0" align="absmiddle"></A> </td>
</tr>
</table>
</form>
<form name = "frmText2" method=get action="http://google.fullerton.edu/search" target="_blank">
<input type="hidden" name="q" value="" size="23" alt="">
<input type="hidden" name=hl value=en alt="">

<input type="hidden" name="site" value="default_collection"/>
<input type="hidden" name="client" value="csuf_frontend"/>
<input type="hidden" name="proxystylesheet" value="csuf_frontend"/>
<input type="hidden" name="output" value="xml_no_dtd"/>
</form>
<form name='frmPhone2' method='post' target = '_blank' action = 'http://my.fullerton.edu/directory/index.aspx' >
<input type='hidden' name='Search' alt="">
<input type='hidden' name='stype' value='cnt' checked alt="">
</form>

This form also requires that the following JavaScript be included in the page header:

<script language = javascript>

function clearsearch() {
if (document.frmSearch2.q.value == "keyword(s)")
{
document.frmSearch2.q.value = "";
}
}

var whichone = 0; // 0 means 'search', 1 means 'person'

var hasSubmit = 0

function formSubmit(type)
{

clearsearch();

if (type == 0)
// alert("submit button");
if (type == 1)
// alert("enter");

hasSubmit = 1
if (whichone == 0)
{
// alert(whichone);

document.frmText2.q.value = document.frmSearch2.q.value;
document.frmText2.submit();
}
else if (whichone == 1)
{
// alert(whichone);
document.frmPhone2.Search.value = document.frmSearch2.q.value;
document.frmPhone2.submit();
}
}

function checkSubmitVal(){


//alert("enter clicked");
formSubmit(1);

return false;
}

//-->

</script>

 

Updated: 10/26/2009 1:21:47 PM