[Koha] Help needed in KOHA interface
Marijana Glavica
mglavica at ffzg.hr
Thu Nov 19 22:08:27 NZDT 2009
On Wed, Nov 18, 2009 at 11:33:07PM -0800, nitesh rijal wrote:
> Hello all.
>
> I wanted to add a new search field in KOHA default search to find the
> records according to their biblionumber.
>
> I have seen that arguments can be passed to the details.pl to show record
> of a particular biblionumber through the browser query string.
>
> I just wanted to add a search box that accepts biblionumber and sends the
> user to the particular details page of respective biblionumber.....what
> file should I write them on???
We had similar need and I managed that with Firefox serch plugin. We
wanted to searh by some local identification number and redirect search
results directly to items editor.
I made copy of search.pl to search2.pl with just one line changed:
print $cgi->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber");
changed to:
print $cgi->redirect("/cgi-bin/koha/cataloguing/additem.pl?biblionumber=$biblionumber");
The plugin itself looks like this:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>KOHA ID</ShortName>
<Description>KOHA ID</Description>
<InputEncoding>windows-1250</InputEncoding>
<Image width="16" height="16">data:image/gif,%00%00%01%00%01%00%10%10%00%00%01%00%08%00h%05%00%00%16%00%00%00(%00%00%00%10%00%00%00%20%00%00%00%01%00%08%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%003%CC%99%00%E8%E8%E8%00%60%60%60%00rrr%00%F2%F2%F2%00%F1%F1%F1%00%2B%2B%2B%00%85%85%85%00%FB%FB%FB%00%FE%FE%FE%00%87%87%87%00%2C%2C%2C%00%AC%AC%AC%00%FA%FA%FA%00%F7%F7%F7%00%F9%F9%F9%00%83%83%83%00CCC%00%F3%F3%F3%00%E2%E2%E2%00%A3%A3%A3%00%96%96%96%00%E4%E4%E4%00111%00%DE%DE%DE%00ggg%00%05%05%05%00%0E%0E%0E%00%CF%CF%CF%00%06%06%06%00%AA%AA%AA%00%C3%C3%C3%00%8B%8B%8B%00%B6%B6%B6%00%D1%D1%D1%00%BC%BC%BC%00lll%00%E3%E3%E3%00%F6%F6%F6%00%5B%5B%5B%00%19%19%19%00%1D%1D%1D%00%C5%C5%C5%00%F0%F0%F0%00%89%89%89%00ttt%00222%00%D2%D2%D2%00%12%12%12%00%D6%D6%D6%00%01%01%01%00%DA%DA%DA%00%AB%AB%AB%00(((%00%EB%EB%EB%00BBB%00%16%16%16%00%1E%1E%1E%00%A5%A5%A5%00WWW%00%8A%8A%8A%00%D9%D9%D9%00666%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%FF%FF%FF%00%01%01%01%01%01%01%01%01%01%01%01%01%01%01%01%01%01%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%01%01%FF%FF%FF%3C%3D%0A%0A%3E%18%3F%13%FF%FF%FF%01%01%FF%FF%FF%0367789%3A%3B%FF%FF%FF%01%01%FF%FF%FF010234%FF5%FF%FF%FF%01%01%FF%FF%FF%2C%1E-.%2F%10%FF%FF%FF%FF%FF%01%01%FF%FF%FF'()*%2B%FF%FF%FF%FF%FF%FF%01%01%FF%FF%FF%0A%24%00%25%26%FF%FF%FF%FF%FF%FF%01%01%FF%FF%FF%FF%1D%1E%1F%20!%22%23%FF%FF%FF%01%01%FF%FF%FF%FF%17%18%16%19%1A%1B%1C%FF%FF%FF%01%01%FF%FF%FF%FF%10%11%12%13%14%15%16%FF%FF%FF%01%01%FF%FF%FF%FF%0A%0B%0C%0D%FF%0E%0F%FF%FF%FF%01%01%FF%FF%FF%FF%FF%06%07%08%09%FF%FF%FF%FF%FF%01%01%FF%FF%FF%FF%02%03%00%04%05%FF%FF%FF%FF%FF%01%01%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%01%01%01%01%01%01%01%01%01%01%01%01%01%01%01%01%01%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00</Image>
<Url type="text/html" method="GET" template="http://xxx:8080/cgi-bin/koha/catalogue/search2.pl">
<Param name="idx" value="sn,phr"/>
<Param name="q" value="{searchTerms}"/>
</Url>
<moz:SearchForm>http://xxx:8080/</moz:SearchForm>
</OpenSearchDescription>
Regards,
Marijana
More information about the Koha
mailing list