Table of Contents
To enable users to quickly search your Evergreen catalog, you can add a simple search form to any HTML page. The following code demonstrates how to create a quick search box suitable for the header of your web site:
<form action="http://example.com/eg/opac/results" method="get" accept-charset="UTF-8"> <!-- --> <input type="search" alt="Catalog Search" maxlength="200" size="20" name="query" placeholder="Search catalog for..." /> <input type="hidden" name="qtype" value="keyword" /> <!-- --> <input type="hidden" name="locg" value="4" /> <!-- --> <input type="submit" value="Search" /> </form>
Replace 'example.com' with the hostname for your catalog. To link to the Kid’s OPAC instead of the TPAC, replace 'opac' with 'kpac'. | |
Replace 'keyword' with 'title', 'author', 'subject', or 'series' if you want to provide more specific searches. You can even specify 'identifier|isbn' for an ISBN search. | |
Replace '4' with the ID number of the organizational unit at which you wish to anchor your search. This is the value of the 'locg' parameter in your normal search. |