]> git.koha-community.org Git - koha.git/commit
Bug 32937: Make Zebra ignore the copyright symbol in searches
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 16 Apr 2023 11:57:19 +0000 (11:57 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 15 Jun 2023 19:13:40 +0000 (19:13 +0000)
commitcc2fba0ee775d63033322f7c09dadc91ebc52658
tree4bac192d02b1c9bea81dec000b623151c4f9d48f
parent29215f48ddf9b7083c0566670d85fe7959993221
Bug 32937: Make Zebra ignore the copyright symbol in searches

It's common to catalog the year with the copyright symbol attached
to it. This creates some issues with search that we can fix by
adding the © to the list of characters Zebra ignores in search.

To test:
* Search for any existing publication year with ©, example: ©1951
* Verify your record is not found
* Add the copyright symbol to a record, verify it's now found with ©,
  but not without
* Apply patch
* On ktd:
  * sudo cp -i /kohadevbox/koha/etc/zebradb/etc/word-phrase-utf.chr  /etc/koha/zebradb/etc/word-phrase-utf.chr
  * sudo koha-zebra --restart kohadev
  * sudo koha-mysql kohadev
  * DELETE FROM biblio WHERE biblionumber = 369;
  * The reindex woudl fail for me with this broken record present.
  * sudo koha-rebuild-zebra -f kohadev
* Repeat searches, the records should be found when searching
  with and without ©.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c39d4ea0b26cfb2448902546115efef1cfe2ca6e)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 42b8f60bf4e61744df794750d2fbef9fb4f1013c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
etc/zebradb/etc/word-phrase-utf.chr