[Koha-bugs] [Bug 27113] Elasticsearch: Autocomplete in search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 6 16:54:56 CEST 2022


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

--- Comment #66 from Shi Yao Wang <shi-yao.wang at inLibro.com> ---
Created attachment 133042
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=133042&action=edit
Bug 27113: Removes hidden and suppressed items from OPAC autocomplete

Items specified in OPACHiddenItems preference and items affected by
OpacSuppression are removed from search suggestions in OPAC.

Test plan:
1- Search for an item. Notice that the autocomplete functionnality is not
available. (See "Result" attachment)
2- Make sure that you are using Elasticsearch as your searching engine.
(Preference->SearchEngine->ElasticSearch)
3- Apply the patch.
4- Run ./installer/data/mysql/updatedatabase.pl
5- Looks for the following preferences :
   - IntranetAutocompleteElasticSearch
   - OPACAutocompleteElasticSearch
6- Set their value to show.
7- Rebuild the OPAC and staff client CSS (This step is important because the
autocomplete CSS is moved to the main SCSS file):
   Instructions here:
https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client
8- Search for an item and notice that the autocomplete functionnality is now
available.
9- In the staff interface, go in "Search the catalog".
10- Notice that the buggy behavior is now fixed.
11- Search for an item with basic search and click on one of the
options.
12- Notice it automatically sends you to the selected items page.
13- This time, search an item using the advanced search and click on one
of the options.
14- Notice it just writes the chosen option in the input instead.
15- Go to Administration -> system preferences -> OPACHiddenItems.
16- Define a rule that applies to an existing item.
17- Search that item in OPAC and notice it doesn't give you the
suggestion for that item.
18- Go to Administration -> system preferences -> OpacSuppression and
set it to "hide".
19- Add or edit a record and set 942$n field to yes.
20- Search that entry in OPAC and notice it doesn't give you the
suggestion for that entry.

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


More information about the Koha-bugs mailing list