@@ -, +, @@ --- Koha/SuggestionEngine/Plugin/LibrisSpellcheck.pm | 8 ++++++++ installer/data/mysql/sysprefs.sql | 7 ++++--- koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt | 4 ++-- .../prog/en/modules/admin/preferences/searching.pref | 1 + 4 files changed, 15 insertions(+), 5 deletions(-) --- a/Koha/SuggestionEngine/Plugin/LibrisSpellcheck.pm +++ a/Koha/SuggestionEngine/Plugin/LibrisSpellcheck.pm @@ -71,10 +71,18 @@ This module provides facilities for using the LIBRIS spell checker API =over +=item NAME + +my $name = $plugin->NAME; + +=back + =item get_suggestions(query) Sends in the search query and gets an XML with a suggestion +my $suggestions = $plugin->get_suggestions(\%query); + =back =cut --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -267,6 +267,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('LibraryThingForLibrariesEnabled','0','','Enable or Disable Library Thing for Libraries Features','YesNo'), ('LibraryThingForLibrariesID','','','See:http://librarything.com/forlibraries/','free'), ('LibraryThingForLibrariesTabbedView','0','','Put LibraryThingForLibraries Content in Tabs.','YesNo'), +('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free'), +('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This it the base URL for the Libris spellchecking API.',NULL,'Free'), ('LinkerKeepStale','0',NULL,'If ON the authority linker will keep existing authority links for headings where it is unable to find a match.','YesNo'), ('LinkerModule','Default','Default|FirstMatch|LastMatch','Chooses which linker module to use (see documentation).','Choice'), ('LinkerOptions','','','A pipe-separated list of options for the linker.','free'), @@ -643,6 +645,5 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('XSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on intranet','Free'), ('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'), ('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'), -('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'), -('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free'), -('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This it the base URL for the Libris spellchecking API.',NULL,'Free'); +('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo') +; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt @@ -16,8 +16,8 @@ Suggest that patrons expand their searches to include broader/narrower/related terms. [% CASE 'LibrisSpellcheck' %] - Use the LIBRIS spellcheck API. - [% END %] + Use the LIBRIS spellcheck API. + [% END %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref @@ -245,6 +245,7 @@ Searching: - on all variations of the ISBN. Note that this preference has no effect if UseQueryParser is on. Did you Mean/Spell checking: - + - "Swedish service for spellchecking.
" - LIBRIS Spellchecking API key - pref: LibrisKey - "Can be obtained at http://api.libris.kb.se/bibspell." --