Admins: Sample code for an ebrary search widget

In the code below, replace xxxxx with your ebrary site ID (that is, http://site.ebrary.com/lib/xxxxx should be the URL of your ebrary site).  The long lines appear cut off, but just drag over the lines of code, copy, and paste.

<form action="http://site.ebrary.com/lib/xxxxx/search.action" target="_parent">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background-color: #dcdcdc; vertical-align: middle; padding: 9px 0px 0px 11px;" width="67">
<img src="http://www.ebrary.com/corp/images/ebrary-search01.gif" alt="ebrary" width="138" height="20" hspace="0" vspace="0" border="0">
</td>
</tr>
<tr>
<td style="background-color: #dcdcdc; vertical-align: middle; padding: 9px; white-space: nowrap;" colspan="2">
<input type="text" name="p00" value="">
<input type="submit" name="search" value="Search">
</td></tr></table></form>

 

To use an EZproxy proxied link to your ebrary site, it is not quite as simple as just inserting the proxied link.  Instead, you need to use the following which has a different first line.  (Note, even though you cannot see the full length of the lines, just drag over them, copy, and paste):

<form  action="http://ezproxy.yourproxy.edu/form?qurl=http%3a%2f%2fsite.ebrary.com%2flib%2fxxxxx%2fsearch.action"  target="_parent" method="post">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background-color: #dcdcdc; vertical-align: middle; padding: 9px 0px 0px 11px;" width="67">
<img src="http://www.ebrary.com/corp/images/ebrary-search01.gif" alt="ebrary" width="138" height="20" hspace="0" vspace="0" border="0">
</td>
</tr>
<tr>
<td style="background-color: #dcdcdc; vertical-align: middle; padding: 9px; white-space: nowrap;" colspan="2">
<input type="text" name="p00" value="">
<input type="submit" name="search" value="Search">
</td></tr></table></form>

 

Replace:

http://ezproxy.yourproxy.edu

with your proxy URL

And replace:

xxxxx

with your ebrary site identifier