Bug 25963 - Koha converts ":" to "=" in search terms for Zebra which causes search to fail
Summary: Koha converts ":" to "=" in search terms for Zebra which causes search to fail
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Zebra (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-09 04:06 UTC by David Cook
Modified: 2024-12-26 18:08 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2020-07-09 04:06:18 UTC
Koha changes : to = because Zebra uses = to separate indexes from search terms, but this is problematic, because it transforms all colons.

For instance, "title : subtitle" will become "title = subtitle" and that will cause a Zebra error.

Here's the bug removed:

buildQuery
eb6b10f8 (Chris Nighswonger 2010-02-01 23:18:09 -0500 1768) # $query =~ s/:/=/g;

Here's the bug re-introduced.
getRecords
08c15831 (Joe Atzberger 2009-07-08 15:27:45 -0500 381) $query_to_use =~ s/\:/\=/g; # change : to = last minute (FIXME)
Comment 1 David Cook 2024-12-24 01:39:18 UTC
Since Zebra is on the outs, I'd say this could probably be marked as RESOLVED WON'T FIX...
Comment 2 Katrin Fischer 2024-12-26 18:08:49 UTC
(In reply to David Cook from comment #1)
> Since Zebra is on the outs, I'd say this could probably be marked as
> RESOLVED WON'T FIX...

I am not sure we can say that Zebra is on the outs. I believe it still has its place in a lot of installations. By default, Koha installs with Zebra.