[Koha-bugs] [Bug 14457] Integrate LIBRIS spellchecking

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 3 23:22:42 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14457

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45967|0                           |1
        is obsolete|                            |
  Attachment #56609|0                           |1
        is obsolete|                            |
  Attachment #86569|0                           |1
        is obsolete|                            |

--- Comment #35 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 87374
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87374&action=edit
Bug 14457: Integrate LIBRIS spellchecking

This patch makes it possible to configure LIBRIS spellchecker as a
"did you mean" feature. When searching for a word or phrase and misspelling
the query will be sent to LIBRIS and if they have a suggestion it will
be shown in the yellow did you mean box in the results page.

The API is not very quick so this type of implementation was chosen to not
disrupt the real-time feeling of the search.

To test:

1. Apply the patch.
2. Go to http://api.libris.kb.se/bibspell/, enter the koha servers IP and click
on the "Generera nyckel" button.
3. Under "Nyckel" you can copy the value that looks like this:
E47B44829E265607274B677BC17B8D78,
and enter it into the LibrisKey syspref
(cgi-bin/koha/admin/preferences.pl?tab=searching).
4. In cgi-bin/koha/admin/didyoumean.pl check the box for using the LIBRIS API.
It is only implemented for OPAC.
5. Perform some searches:
tset - Did you mean should suggest: test
jeg är på smester - suggestion: jag är på semester
dantes inferna - suggestion: dantes inferno

Restored opac-search.pl

Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>

Seems to work, of course I can't tell if it is giving me accurate
suggestions :)

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

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


More information about the Koha-bugs mailing list