[Koha-bugs] [Bug 24575] New: Search for locations and collections broken when using ICU

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 4 09:19:20 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24575

            Bug ID: 24575
           Summary: Search for locations and collections broken when using
                    ICU
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching - Zebra
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: katrin.fischer at bsz-bw.de

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.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list