Koha How-To
Embedding a Koha Search Form
Set-Up
To add a search box to your library website - there is bit of code that will be needed to add to your website.
1. Copy and Paste the code listed below.
2. Replace the words YOURCATALOG with your catalog's URL
Here is the code:
<form name="searchform" method="get" action="https://YOURCATALOG/cgi-bin/koha/opac-search.pl" id="searchform">
<input id="transl1" name="q" type="text"><p>
<select name="idx" id="masthead_search">
<option value="kw">Keyword</option>
<option value="ti">Title</option>
<option value="au">Author</option>
<option value="su">Subject</option>
<option value="nb">ISBN</option>
<option value="se">Series</option>
<option value="callnum">Call Number</option>
</select>
<input value="Search" id="searchsubmit" type="submit">
</p></form>
For example: for a library website such as this https://library.bywatersolutions.com
. Once added into the code, the first line would look like this
<form name="searchform" method="get" action="<a href="https://library.bywatersolutions.com">https://library.bywatersolutions.com</a>/cgi-bin/koha/opac-search.pl" id="searchform">)
Example of Search Box
This will allow patrons easy access the OPAC right from your library website!
This is a blog post included in our How-To section!
Read more by Kelly McElligott