EBSCO EDS Code Snippet #1
<!--==========================================================================================
START: Table to define EDS Extended Tab Search Box Functionality
==========================================================================================
-->
<table width="625" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" class="tableborder">
<tr>
<td height="28" id="blocktitle">
</td>
</tr>
<tr>
<td id="tablecontent">
<!--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 limittoCatalog(myForm) {
if(myForm.catalog_only_checkbox.checked) myForm.clv2.value = "Y";
else myForm.clv2.value = "N";
}
function limittoIR(myForm) {
if(myForm.IR_only_checkbox.checked) myForm.clv3.value = "Y";
else myForm.clv3.value = "N";
}
function ebscoPreProcess(myForm) {
myForm.bquery.value = myForm.search_prefix.value + myForm.uquery.value;
}
function limittoArticles(myForm) {
myForm.bquery.value += ' AND ZT Article';
}
function limittoBooks(myForm) {
myForm.bquery.value += ' AND PT Book';
}
//]]>
</script>
<!--END: Javascript to handle elements related to form processing =============================== -->
<link rel="stylesheet" type="text/css" href="https://yui.yahooapis.com/2.8.2r1/build/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="https://imageserver.ebscohost.com/branding/demos/TabViewCSS/tabview.css">
<script type="text/javascript" src="https://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js">
</script>
<script type="text/javascript" src="https://yui.yahooapis.com/2.8.2r1/build/element/element-min.js">
</script>
<script type="text/javascript" src="https://yui.yahooapis.com/2.8.2r1/build/tabview/tabview-min.js">
</script>
<div class="yui-skin-sam">
<div id="demo" class="yui-navset">
<!-- BEGIN: Definition of Tab Names =============================== -->
<ul class="yui-nav">
<li class="selected">
<a href="#tab1">
<em>
Search Digital Maine Library</em>
</a>
</li>
<li>
<a href="#tab4">
<em>
Journal Finder</em>
</a>
</li>
</ul>
<div class="yui-content">
<div id="tab1">
<!-- BEGIN: General Custom Search Box =============================== -->
<center>
<img src="https://libraries.maine.edu/mainedatabases/images/dml/dml_logo.jpg" height="50px">
</center>
<BR/>
<form action="https://search.ebscohost.com/login.aspx" method="get" target="_blank" onsubmit="ebscoPreProcess(this)">
<!-- Dropdown menu to prepend the selected value below to the user's search term -->
<select onchange="#" size="1" name="search_prefix" style="width: 100px">
<option selected="selected" value="">
Keyword</option>
<option value="TI ">
Title</option>
<option value="AU ">
Author</option>
</select>
<!-- Auth type -->
<input name="authtype" value="geo,guest,uid" type="hidden">
<input name="geocustid" value="s8993591" type="hidden">
<input name="custid" value="s8993591" type="hidden">
<input name="groupid" value="main" type="hidden">
<input name="direct" value="true" type="hidden">
<input name="scope" value="site" type="hidden">
<!-- target an EDS profile -->
<input name="site" value="eds-live" type="hidden">
<input name="profile" value="eds" type="hidden">
<!-- Auth type -->
<input name="authtype" value="geo,guest,ip,uid" 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">
<!-- Limiter: Catalog Only -->
<input name="cli2" value="FC" type="hidden">
<input name="clv2" value="N" type="hidden">
<!-- Limiter: Institutional Repositories Only -->
<input name="cli3" value="FC1" type="hidden">
<input name="clv3" value="N" type="hidden">
<!-- search box and submit button -->
<input name="bquery" value="" type="hidden">
<input name="uquery" size="65" type="text">
<input value="Search" type="submit">
<br>
<br>
<!-- Limiter Check Boxes: To display, adjust the html comment tags at desired locations -->
<!-- Limiter: Full text check box set the above value to Y, or alternatively you can have script append FT Y to the users search -->
<input name="fulltext_checkbox" id="fulltext_checkbox_all" onclick="limittoFullText(this.form)" type="checkbox">
<label for="fulltext_checkbox_all">
Full-Text (online)</label>
<!-- Limiter: Scholarly/Peer-Reviewed check box set the above value to Y -->
<input name="scholarly_checkbox" id="scholarly_checkbox_articles" onclick="limittoScholarly(this.form)" type="checkbox">
<label for="scholarly_checkbox_articles">
Scholarly (Peer Reviewed)</label>
<a href="https://search.ebscohost.com/login.aspx?direct=true&site=eds-live&scope=site&type=1&authtype=cookie,ip,uid">
Advanced Search</a>
<!-- Limiter: Institutional Repositories Only check box set the above value to Y <input name="IR_only_checkbox" id="IR_only_checkbox" onclick="limittoIR(this.form)" type="checkbox">
<label for="IR_only_checkbox">
Institutional Repositories Only</label>
-->
</form>
<br>
</p>
</div>
<!-- JOURNALS TAB -->
<div id="tab4">
<form name="frmAdvSearch" action="https://atoz.ebsco.com/titles.asp" method="get" target="_blank">
<input type="hidden" name="lang" value="" />
<input type="hidden" name="lang.subject" value="" />
<input type="hidden" name="lang.menu" value="" />
<!--'AQ.8.23.2007 - TD 1221 - Unicode Search-->
<center>
<img src="https://libraries.maine.edu/mainedatabases/images/dml/dml_logo.jpg" height="50px">
</center>
<p>
Search for Titles</p>
<b>
Find:</b>
<input type="text" name="txtKeyword" id="txtKeyword" size="65" value="">
<input type="hidden" name="sid" value="260569046">
<input type="hidden" name="id" value="2218">
<input type="SUBMIT" name="cmdSearchSubmit" value="Search">
<br>
<i>
To find variants of a word, truncate using an *</i>
<br/>
<br/>
<br/>
<br/>
<!-- Parameter Options: Commenting out for simplicity. To include simply remove this comment tag - ends after </tr>
tag below <tr>
<td align="left" valign="top">
<b>
Within:</b>
</td>
<td align="left" valign="top">
<input type="radio" name="SF" ID="Titles" value="Titles" CHECKED>
<label for="Titles" class="AdditionalText">
Title Name</label>
</INPUT>
<input type="radio" name="SF" ID="Publishers" value="Publishers" >
<label for="Publishers" class="AdditionalText">
Publisher Name</label>
</INPUT>
<input type="radio" name="SF" ID="ISSN" value="ISSN" >
<label for="ISSN" class="AdditionalText">
ISSN</label>
</INPUT>
<input type="radio" name="SF" ID="Subjects" value="Subjects" >
<label for="Subjects" class="AdditionalText">
Subjects</label>
</INPUT>
<br>
<input type="radio" name="SF" ID="AllFields" value="AllFields" >
<label for="AllFields" class="AdditionalText">
All of the above</label>
</INPUT>
</td>
</tr>
<tr>
<td align="left" valign="top">
<b>
Search Type:</b>
</td>
<td align="left" valign="top">
<input type="radio" name="ST" ID="Contains" value="Contains" CHECKED>
<label for="Contains" class="AdditionalText">
Contains</label>
</INPUT>
<input type="radio" name="ST" ID="Begins" value="Begins" >
<label for="Begins" class="AdditionalText">
Begins With</label>
</INPUT>
<input type="radio" name="ST" ID="Exact" value="Exact" >
<label for="Exact" class="AdditionalText">
Exact Match</label>
</INPUT>
</td>
</tr>
-->
</form>
</div>
</div>
</div>
<script>
(function() { var tabView = new YAHOO.widget.TabView('demo'); YAHOO.log("The example has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "example"); })(); </script>
</div>
</td>
</tr>
</table>
<!-- ========================================================================================== END: Table to define EDS Search Box Functionality ========================================================================================== -->
<!-- EBSCOhost Custom Search Box Ends -->