Skip to main content
Support - EBSCO Help

How can I create a subject-specific search box for my institution's web site?

You can use custom code to create a search box for your subject-specific EBSCO Discovery Service (EDS) profiles. This can be useful if your users would like to be able to create subject focused searches from your institution's web site. This search box includes a drop-down menu that allows your users to select a subject-specific profile.

Copy the custom code below and modify it to meet your specific needs. Included are instructions to help you customize the code for your search box.

 


Search Box Code

<!--
==========================================================================================
START: EDS Search Box Functionality
==========================================================================================
-->
<!--BEGIN: Javascript to handle elements related to form processing =============================== -->
<script type="text/javascript">
//<![CDATA[
function limittoFullText(myForm) {
if (myForm.fulltext_checkbox.checked) myForm.clv0.value = "Y";
else myForm.clv0.value = "N";
}
function limittoScholarly(myForm) {
if(myForm.scholarly_checkbox.checked) myForm.clv1.value = "Y";
else myForm.clv1.value = "N";
}
function ebscoPreProcess(myForm) {
myForm.bquery.value = myForm.search_prefix.value + myForm.uquery.value;
}
//]]>
</script>
<!--END: Javascript to handle elements related to form processing =============================== -->

<!-- BEGIN: General Custom Search Box =============================== -->
<p>Search the EBSCO Discovery Service:</p>
<form action="http://search.ebscohost.com/login.aspx" method="get" target="_blank" onsubmit="ebscoPreProcess(this)">

<!-- Below input setting will default user's search to "Keyword". Value can be altered to Title (TI) or Author (AU) -->
<input name="search_prefix" value="" type="hidden">
<input name="direct" value="true" type="hidden">
<input name="scope" value="site" type="hidden">
<input name="site" value="eds-live" type="hidden">
<!-- Dropdown menu that will determine specific profile for user's search -->
<select name="profile"/>
<option value="edsdemo">All Subjects</option>
<option value="profileID">Arts and Humanities</option>
<option value="profileID">Business, Commerce, Mgmt</option>
<option value="profileID">Community and Social Services</option>
<option value="profileID">Education and Child Care</option>
<option value="profileID">Interdisciplinary</option>
<option value="profileID">Nursing, Health and Fitness</option>
<option value="profileID">Science and Technology</option>
<option value="profileID">Social Science</option>
<option value="profileID">Visual, Performing & Comm. Arts</option>
</select>
<!-- Authentication type -->
<input name="authtype" value="cookie,ip,uid" type="hidden">
<input name="user" value="XYZXYZ" type="hidden">
<input name="password" value="XYZXYZ" type="hidden">
<!-- Limiter: Full Text -->
<input name="cli0" value="FT" type="hidden">
<input name="clv0" value="N" type="hidden">
<!-- Limiter: Scholarly/Peer-Reviewed -->
<input name="cli1" value="RV" type="hidden">
<input name="clv1" value="N" type="hidden">
<!-- Search box and Submit button -->
<input name="bquery" value="" type="hidden">
<input name="uquery" size="35" type="text">
<input value="Search" type="submit">
<br><br>
<!-- Limiter Check Boxes -->
<!-- Limiter: Full text check box sets the above value to Y -->
<input name="fulltext_checkbox" id="fulltext_checkbox_all" onclick="limittoFullText(this.form)" type="checkbox" checked="Y"> <label for="fulltext_checkbox_all">Full-Text (online)</label>
<!-- Limiter: Scholarly/Peer-Reviewed check box sets the above value to Y -->
&nbsp;&nbsp;&nbsp;&nbsp;
<input name="scholarly_checkbox" id="scholarly_checkbox_articles" onclick="limittoScholarly(this.form)" type="checkbox"> <label for="scholarly_checkbox_articles">Scholarly (Peer Reviewed)</label>

</form>
<!--
==========================================================================================
END: EDS Search Box Functionality
==========================================================================================
-->