[Koha-bugs] [Bug 36434] Use a keyword that will be secretly included in all OPAC bibliographic and authority searches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 27 02:57:10 CET 2024


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

--- Comment #1 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 163969
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163969&action=edit
Bug 36434: Use a keyword that will be secretly included in all OPAC
bibliographic and authority searches

When a keyword is provided to the new OPACAlwaysSearchKeyword system
preference, Koha will secretly add this to all OPAC searches (both
bibliographic and authority) to help limit results.

Note: This will have unexpected results if authority searches are done with
'starts with' or 'is exactly'. It is only designed to work with 'contains'.

To test:

1. Install database updates and restart services.
2. Do a standard OPAC search using the main search bar for 'this that'. Notice
the number of results.
3. Do an advanced OPAC search, specify keyword: 'this' and keyword: 'that'.
Notice the number of results.
4. In the staff interface, do a biblio search for 'this that'. Edit the first
two records, and put your test keyword somewhere in the MARC, perhaps a note
field 5XX.
5. Go to the Koha Administration -> System preferences and search for
OPACAlwaysSearchKeyword. Add your test keyword to the syspref and Save.
6. Repeat steps 2 and 3. Confirm results are returned, and there should only be
your two records which you added the test keyword to.
7. Remove the test keyword from OPACAlwaysSearchKeyword and Save.

8. Do an OPAC authority search for 'series'. Notice the number of results.
9. In the staff interface, do an authority search for 'series'. Edit the first
two records, and put your test keyword somewhere in the MARC, perhaps in the
040$f.
10. Repeat step 5.
11. Repeat steps 8 and 9. Confirm results are returned, and there should only
be your two records which you added the test keyword to.

12. Click on 'Welcome, your name' in the top right of the OPAC and go to your
search history. Confirm the test keyword added to OPACAlwaysSearchKeyword does
NOT show in your history, for both catalog and authority searches.

13. Confirm all results are returned as normal when OPACAlwaysSearchKeyword is
empty.

Sponsored-by: Auckland University of Technology

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


More information about the Koha-bugs mailing list