Koha/koha-tmpl/opac-tmpl/prog/en/modules
Jared Camins-Esakov 8471158160 Bug 8209: "Did you mean?" from authorities
One of the ideas behind authority records is that users who search for
one term should have related terms (according to the authority file)
suggested to them. At the moment, Koha doesn't do that. Adding an
authority searching step to regular searches and displaying any
suggestions in a "Did you mean" bar at the top of the results would be
very useful.

This commit adds a Koha::SuggestionEngine class which is in charge of
getting suggestions from individual suggestion engine plugins, which
much be in the Koha::SuggestionEngine::Plugin::* namespace, and extend
Koha::SuggestionEngine::Base. Suggestions are loaded asynchronously
using AJAX, and a link to a page with suggestions is provided for users
with Javascript turned off.

The AuthorityFile suggestion engine plugin looks up the specified search
terms in the authority file and then suggests searches for records using
matching authorities.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Rebased 2 August 2012 and incorporated QA feedback

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Test plan:
- Verified database update added system preference correctly,
  pref defaults to OFF
- Verified search results and detail pages in OPAC and staff
  still worked the same as before
  * for no results
  * with results
- Activated system preference and tested various searches
  * Searches from simple search
  * Searches from advanced search
  * Search links in records
- Deactivated Javascript - verified fallback works correctly

Notes:

- Suggested terms can include autorities with no linked records.
- When combining more than one search option using advanced search
  this results in "no suggestions" more often. Feature works best
  from simple search.

Overall great feature making use of authorities in a user friendly way!

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Rebased on latest master 2012-09-10
Signed-off-by: wajasu <matted-34813@mypacks.net>
2012-09-13 11:34:28 +02:00
..
errors Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
sco Bug 8623: Move YUI out of prog 2012-09-05 12:04:13 +02:00
search Bug 8233 : SearchEngine: Add a Koha::SearchEngine module 2012-07-06 16:51:58 +02:00
svc Bug 8209: "Did you mean?" from authorities 2012-09-13 11:34:28 +02:00
ilsdi.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
kohaerror.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
maintenance.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-account.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-addbybiblionumber.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-advsearch.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
opac-alert-subscribe.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-auth-detail.tt Bug 8204 follow-up: don't display OpacNav on auth details 2012-09-07 18:33:10 +02:00
opac-auth-MARCdetail.tt Bug 8204 follow-up: don't display OpacNav on auth details 2012-09-07 18:33:10 +02:00
opac-auth.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-authorities-home.tt Bug 8206: make authority search indexes consistent 2012-09-07 15:26:56 +02:00
opac-authoritiessearchresultlist.tt Merge remote-tracking branch 'origin/new/bug_6720' 2012-07-17 15:30:06 +02:00
opac-basket.tt [PATCH] [SIGNED-OFF] bug 7570: add a space to the table header 2012-06-11 17:54:21 +02:00
opac-browser.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-detail.tt Bug 8525: Followup Don't reset the hz scrollbar to the top 2012-09-03 09:58:51 +02:00
opac-downloadcart.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-downloadshelf.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-full-serial-issues.tt Bug 7927 - library not showing on subscription full history anymore 2012-04-18 17:27:26 +02:00
opac-imageviewer.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-ISBDdetail.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
opac-main.tt Bug 3708 - Add another customizable region to the OPAC: right sidebar nav 2012-06-20 23:11:06 +02:00
opac-MARCdetail.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-messaging.tt Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
opac-mymessages.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
opac-opensearch.tt Bug 8679 [REVISED] Remove usage of Amazon API 2012-08-29 16:05:29 +02:00
opac-passwd.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-privacy.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-readingrecord.tt Bug 6494 - opacmysummaryhtml on reading history 2012-09-03 16:27:43 +02:00
opac-reserve.tt Bug 8181 [REVISED] Replace DynArch calendar widget with jQueryUI version 2012-06-25 18:26:26 +02:00
opac-results-grouped.tt Bug 8525: highlight matches on OPAC detail page 2012-09-03 09:58:28 +02:00
opac-results.tt Bug 8209: "Did you mean?" from authorities 2012-09-13 11:34:28 +02:00
opac-review.tt Merge remote-tracking branch 'origin/new/bug_7889' 2012-07-25 15:08:50 +02:00
opac-search-history.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-sendbasket.tt Bug 8621: Alternative template for cart email 2012-08-29 18:18:16 +02:00
opac-sendbasketform.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-sendshelf.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-sendshelfform.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-serial-issues.tt Bug 7905: Follow up - Multi-line subscription notes 2012-06-27 15:29:56 +02:00
opac-shelves.tt Bug 8496 - show local cover images on lists view in opac 2012-09-12 15:44:20 +02:00
opac-showmarc.tt Bug 8288 - showmarc.tt should not include full doc-head-close.inc 2012-06-27 18:03:42 +02:00
opac-showreviews-rss.tt Bug 8708 [Revised] RSS feed for new comments is broken 2012-09-12 15:31:58 +02:00
opac-showreviews.tt Bug 8679 [REVISED] Remove usage of Amazon API 2012-08-29 16:05:29 +02:00
opac-suggestions.tt Bug 7367 Followup for opac-suggestions template 2012-06-20 11:06:34 +02:00
opac-tags.tt Bug 7642 - remove the cloud weight from the tags 2012-06-20 21:43:07 +02:00
opac-tags_subject.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-topissues.tt Bug 7367 - One "the" too many 2012-07-24 17:33:03 +02:00
opac-user.tt Bug 8408 - Followup 2 - Add reference to renewing items. 2012-09-07 18:42:07 +02:00
opac-userdetails.tt Bug 2780 - Capitalize strings consistently (OPAC pages) 2012-04-06 18:27:55 +02:00
opac-userupdate.tt Bug 8431 follow-up : |html_line_break in 2 tempates 2012-09-13 11:22:58 +02:00