Bug 24575 - Search for locations and collections broken when using ICU
Summary: Search for locations and collections broken when using ICU
Status: RESOLVED DUPLICATE of bug 23086
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Zebra (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-04 08:19 UTC by Katrin Fischer
Modified: 2020-03-15 18:03 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 Katrin Fischer 2020-02-04 08:19:20 UTC
We found a strange bug when using ICU in 17.11 and 18.11 after upgrading from Jessie to Stretch, to be confirmed in later versions:

Searching for locations and collections from advanced search in the OPAC/staff client doesn't work using the checkboxes.

Redundant quotes are no longer ignored. 

We found that removing these lines from Search.pm fixes the issue for us:

if ( $k !~ /mc-i(tem)?type/ ) {
		
    # in case the mc-ccode value has complicating chars like ()'s inside it we wrap in quotes
		
    $this_limit =~ tr/"//d;
		
   $this_limit = $k.":'".$v."'";
		
}
	
The patch is backward compatible with Jessie.
Comment 1 Katrin Fischer 2020-03-15 18:03:50 UTC

*** This bug has been marked as a duplicate of bug 23086 ***