Sample external search boxes
- Anthro 190 Library guide
- Mann Library - research tools for Business and the Applied Social Sciences (Commonspot page on test server)
Code for external search box
Note that the following change will need to be made when we are moved to new servers: in the <form action=...> line, change 'dev' to 'wfsearch'
In <HEAD> section of the page:
<script language="JavaScript" src="http://dev.webfeat.org/clients/cornell/js/cornell.js"></script> <script language="JavaScript" src="http://dev.webfeat.org/js/wf3library.js"></script> <script language="JavaScript" src="http://dev.webfeat.org/clients/cornell/js/cornellCustom.js"></script>
Anywhere in the <BODY> you want the form to appear:
<script> function changeCatName() { var i = document.wfform.Databases.selectedIndex; var DBCat = document.wfform.Databases[i].id; var DBCatNew = DBCat.replace(/&/g,'%26'); document.wfform.catName.value = DBCatNew; } </script> <form action="http://dev.webfeat.org/clients/cornell/cornell_auth.asp" h3. [Notes on AEM425 search box] method="get" name="wfform"> <input type="hidden" name="Command" value="Search"> <input type="hidden" name="Client_ID" value="cornell"> <input type="hidden" name="noserial" value="1"> <input type="hidden" value="JS" name="format"> <input type="hidden" value="js" name="rtmpl"> <input type="text" name="wf_term1" id="wf_term1" value=""> <input type="hidden" name="wf_field1" value="wf_keyword"> <input type="hidden" name="catName" value="General"> <!-- Adding outside field to keep this query separate from ones from main page --> <input type="hidden" name="outside" value="YES"> in <select name="Databases" id="Databases" onChange="changeCatName()"> <option value="wf_ebscoxml_aph,wf_artindexretro" id="General">General</option> <option value="wf_ebscoxml_aph,wf_anthroplus" id="Social Sciences and Area Studies">Social Sciences and Area Studies</option> <option value="wf_artindexretro" id="Arts %26 Humanities">Arts & Humanities</option> </select> <input type="submit" name="Submit" value="Search" class="button" /> </form>