NRAO Library Logo
Catalog Search Box Instructions
To add a NRAO Library Catalog search box to your page, follow these quick steps:

1. Add the below Javascript function to your page using one of the following methods:

a. Paste in the header of your HTML
b. Save this script as a separate file and add a link in the header to the file
c. Add this script to an existing Javascript file already linked in your page

<script type="text/javascript">
function opac_search(page)
{
document.location.href = 'http://69.63.217.22/N10017Staff/OPAC/search/simpleSearch.asp?txtSearch=' + page + '&selectUsing=6&IsFirstDisplay=0&GoPressed=1';
}
</script>

2. Paste this code anywhere in the body of your HTML:

<form method="get" onsubmit=" opac_search(this.page.value); return false">
<input type="text" name="page" title="OPAC search" />
<input type="submit" value="Submit" />
</form>

3. Options:

a. Rename the Submit button if desired.
b. Change the Tool Tip text by replacing "OPAC search" with whatever you like.

4. Note: You must have Javascript enabled for this box to work.

5. See the search box in action here: http://www.cv.nrao.edu/~lutley/cat.shtml

Modified on Thursday, 12-Apr-2012 09:54:35 EDT by Library Staff.