| Summary: | Search for locations and collections broken when using ICU | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
| Component: | Searching - Zebra | Assignee: | Bugs List <koha-bugs> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P5 - low | ||
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
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.