Find Search Box Integration
Add Find search capabilities to your site!
Find is a repository of contact information for people in the College of Medicine. Most faculty and staff have contacts available to the general public, but much of the directory is restricted for privacy reasons, including all student information.
If you are associated with the college, you can use your Gatorlink information to gain deeper access to the directory.
Find-Only Search Boxes
The below 3 examples show how you can include a search box on your website that directly communicates with Find. Results can be filtered to show only Faculty, Staff, Students, or by department (example 3)
-
<form name="searchform" method="get" action="https://find.medinfo.ufl.edu/do_search.php"> <input type="text" size="30" name="query" value="Name Here"> <input type="submit" value="Search" /> <br />Search Only: <input type="radio" name="gid" value="27"> Faculty <input type="radio" name="gid" value="37"> Staff <input type="radio" name="gid" value="1"> Students </form>
-
<form method="get" action="https://find.medinfo.ufl.edu/do_search.php"> <input type="text" size="30" name="query" value="Name Here"> <select name="gid"> <option value="27">Faculty</option> <option value="37">Staff</option> <option value="1">Students</option> </select> <input type="submit" value="Search" /> </form>
-
<form method="get" action="https://find.medinfo.ufl.edu/do_search.php"> <input type="hidden" name="gid" value="178"> <input type="hidden" name="gid2" value="27"> <input type="text" size="30" name="query" value="Name Here"> <input type="submit" value="Search Radiology Faculty Only" /> </form>
*This version requires the use of a department-only GID. Find your department's GID and insert it into the above code in place of "178"
Combination Search Box (Find+UF Google)
If you would like the ability to search both the Find database and UF Google from one search form submit button you will need to use a bit of javascript.
A working example can be found on the Medical Informatics home page: http://medinfo.ufl.edu/
<script language="javascript">
function decide_action()
{
if(check_buttons()==true)
{
if(document.frm1.site[0].checked==true)
{
document.frm1.action="http://search.ufl.edu/web";
}
else if(document.frm1.site[1].checked==true)
{
document.frm1.action="https://find.medinfo.ufl.edu/do_search.php";
}
else
{
document.frm1.action="http://search.ufl.edu/web";
}
document.frm1.submit();
}
}
function check_buttons()
{
var ok=false;
for(i=0; i<3; i++)
{
if(document.frm1.site[i].checked==true)
{
ok=true;
}
}
if(ok==false)
{
alert("Select at least one option.");
}
return ok;
}
</script>
Used with the following code for the search box/form itself:
<form method="get" name="frm1" onSubmit="javascript: decide_action();" action=""> <input name="query" type="text" value=" Search the COM" class="search_bar" alt="Search" /> <input type="submit" alt="Search" name="Submit" value="Search" /> <input type="radio" name="site" value="www.med.ufl.edu" checked="checked" />College of Medicine <input type="radio" name="site" value="Search" />COM People <input type="radio" name="site" value="" />All UF Web Sites </form>
