[Koha-bugs] [Bug 11994] New: Add option for installing a search plugin for Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 25 13:09:27 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11994

            Bug ID: 11994
           Summary: Add option for installing a search plugin for Koha
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

One of our libraries has asked about a search plugin for Koha and I did some
experimenting. The needed xml could look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Short name</ShortName>
<Description>Longer description</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" method="GET"
template="yourbaseurlforkoha/cgi-bin/koha/opac-search.pl?q={searchTerms}"/>
</OpenSearchDescription>

I also found different options to make this visible to the user:

A link using Javascript, similar to what Bugzila itself offers on the start
page:

<a href="javascript:window.external.AddSearchProvider('URL for xml
file')">Search Plugin</a>

This seems to work nicely in Firefox and IE.

Another option is using a link tag in the header. This will offer to install
the plugin when you open the pull down of your search targets. It seems to only
work in Firefox and not in IE.

<link rel="search" type="application/opensearchdescription+xml" title="..."
href="http://...xml" />

Example: http://swb2.bsz-bw.de/

I thought maybe it would be nice to offer a plugin by default, using Koha's
OpacBaseURL and LibraryName system preferences to fill out the required fields. 

This could be helpful for libraries with hosted Koha solutions that don't have
the option to create an .xml file and store it on a web server themselves.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list