User Tools

Site Tools


admin:settings:searchbox

PINES Search Box Script

To insert a PINES search box on your web page, use the script below in the HTML body where you want the box to appear.

<form action="https://gapines.org/eg/opac/results" method="get">
<input type="text" name="query" placeholder="Enter Search Words" />
<input type="hidden" name="qtype" value="keyword" />
<input type="hidden" name="locg" value="1" />
<input type="submit" value="Search">
</form>

If you wish to add a search that goes to the Kids' Catalog, you can use this code:

<form action="https://gapines.org/eg/kpac/results" method="get">
<input type="text" name="query" placeholder="Enter Search Words" />
<input type="hidden" name="qtype" value="keyword" />
<input type="hidden" name="locg" value="1" />
<input type="submit" value="Search">
</form>

Be sure to replace the number library id (locg) in the code above with your library's id number if you want it to default to your branch or system (see library contact info to get library system or branch ids).
admin/settings/searchbox.txt · Last modified: 2019/06/28 01:34 by 127.0.0.1