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 (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-09 04:06 UTC by David Cook
Modified: 2020-07-09 04:06 UTC (History)
0 users

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


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)