]> git.koha-community.org Git - koha.git/commit
Bug 14567: Add a browse interface to the OPAC
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 21 Jul 2015 05:14:09 +0000 (17:14 +1200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 20 Feb 2020 09:07:16 +0000 (09:07 +0000)
commit0e7f7ab051c8a23705ea802005f15877ca40d16f
tree791ec8ca499e02888cdeb7067e9934c4dc3d9537
parent24154f2ec91eed4d9f28f5008d74013de2b48196
Bug 14567: Add a browse interface to the OPAC

This is an interface for quick and efficient browsing through records.

It presents a page at /cgi-bin/koha/opac-browse.pl that allows you to
enter the prefix of an author, title, or subject and it'll give you a
list of the options that match that. You can then scroll through these
and select the one you're after. Selecting it provides a list of records
that match that particular search.

To Test:
 1 - Apply patches
 2 - Update database (updatedatabase on kohadevbox)
 3 - Compile the CSS
   https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client
   yarn build --view=opac on kohadevbox
 4 - Enable the new syspref OpacBrowseSearch
 5 - Have ES running and some records in it
     SearchEngine syspref set to Elasticsearch
 6 - Browse to opac home, click 'Browse search' link
for your site)
 7 - Test searching for author, title, and subject
 8 - Verify that results are returned in expected order
 9 - Experiment with fuzziness
     https://www.elastic.co/guide/en/elasticsearch/reference/5.6/common-options.html#fuzziness
     Options are: exact (0 edits), fuzzy (1 edit), very fuzzy (2 edits)
10 - Click any result and verify specific titles are correct
11 - Click through title to record and verify it is the correct record
12 - Test that disabling pref removes the link on the opac home

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SearchEngine/Elasticsearch/Browse.pm [new file with mode: 0644]
admin/searchengine/elasticsearch/field_config.yaml
installer/data/mysql/atomicupdate/bug_14567_add_es_catalog_browse_syspref.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/js/browse.js [new file with mode: 0644]
opac/opac-browse.pl [new file with mode: 0755]
t/Koha_SearchEngine_Elasticsearch_Browse.t [new file with mode: 0755]