Bugzilla – Attachment 149736 Details for
Bug 32937
Zebra: Ignore copyright symbol when searching
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32937: Make Zebra ignore the copyright symbol in searches
Bug-32937-Make-Zebra-ignore-the-copyright-symbol-i.patch (text/plain), 1.92 KB, created by
David Nind
on 2023-04-16 23:07:40 UTC
(
hide
)
Description:
Bug 32937: Make Zebra ignore the copyright symbol in searches
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-04-16 23:07:40 UTC
Size:
1.92 KB
patch
obsolete
>From 2ad46a3c77bf938b4da6d41a37faeeae5658fb87 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 16 Apr 2023 11:57:19 +0000 >Subject: [PATCH] Bug 32937: Make Zebra ignore the copyright symbol in searches >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > etc/zebradb/etc/word-phrase-utf.chr | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/etc/zebradb/etc/word-phrase-utf.chr b/etc/zebradb/etc/word-phrase-utf.chr >index 795b2ce62e..7fd70185fd 100644 >--- a/etc/zebradb/etc/word-phrase-utf.chr >+++ b/etc/zebradb/etc/word-phrase-utf.chr >@@ -9,7 +9,7 @@ lowercase {0-9}{a-z}αβγδεζηθικλμνξοÏÏÏÏÏÏÏÏÏ > uppercase {0-9}{A-Z}ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎΠΡΣΤΥΦΧΨΩ > > # Breaking characters >-space {\001-\040}!"#$%&'\()*+,-./:;<=>?@\[\\]^_`\{|}~â{\x88-\x89}{\x98-\x9C}¡¿«» >+space {\001-\040}!"#$%&'\()*+,-./:;<=>?@©\[\\]^_`\{|}~â{\x88-\x89}{\x98-\x9C}¡¿«» > > # Characters to be considered equivalent > equivalent aáà ãåâÄÄȧÇÈÈ >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32937
:
149728
|
149736
|
150404