You are on page 1of 2

Adding biblio search option in pages for search

● There are 3 places where we need to add the biblio search option.

● Following are the files that need to be edited.

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/intranet-main.tmpl

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl

/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/opac-advsearch.tmpl

● Following is the code that needs to be added to

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/intranet-main.tmpl

● These lines needs to be added to <ul> tag containing the “Search” heading. I've added them just
after the first <li> ends, that is after </li>

<li>
<form name="searchform-bib" method="get" action="/cgi-bin/koha/catalogue/detail.pl"
id="searchform-bib">
<input type="hidden" name="idx" value="" />
<label for="navkeyword">
Search biblionumber:&nbsp;
</label><input type="text" id="navkeyword" name="biblionumber" size="10"
accesskey="biblionumber" />
<input type="submit" value=" OK " class="submit" />
</form>
</li>

● Following is the code that needs to be added to

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl

● These lines should be added either before or after any other existing <form></form> tags. I
have added them at the top just before the existing <form> tag.

<!-- Adding Biblio Search option -->


<div id="search-bib" class="container">
<fieldset>
<legend>Search Biblio:</legend>
<form name="searchform-bib" method="get" action="/cgi-
bin/koha/catalogue/detail.pl" id="searchform-bib">
<input type="hidden" name="idx" value="" />
<label for="navkeyword">
Search biblionumber:&nbsp;
</label><input type="text" id="navkeyword" name="biblionumber" size="10"
accesskey="biblionumber" />
<input type="submit" value=" OK " class="submit" />
</form>
</fieldset>
</div>
<!-- END of Biblio Search -->

● Following is the code that needs to be added to

/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/opac-advsearch.tmpl

● These lines should be added either before or after any other existing <form></form> tags. I
have added them at the top just before the existing <form> tag.

<!-- Adding Biblio Search option -->


<div id="search-bib" class="container">
<fieldset>
<legend>Search Biblio:</legend>
<form name="searchform-bib" method="get" action="/cgi-bin/koha/opac-
detail.pl" id="searchform-bib">
<input type="hidden" name="idx" value="" />
<label for="navkeyword">
Search biblionumber:&nbsp;
</label><input type="text" id="navkeyword" name="biblionumber" size="10"
accesskey="biblionumber" />
<input type="submit" value=" OK " class="submit" />
</form>
</fieldset>
</div>
<!-- END of Biblio Search -->

You might also like