[Koha-bugs] [Bug 30173] New: The suppress limit breaks the OPAC adv search using OR

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 23 22:38:55 CET 2022


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

            Bug ID: 30173
           Summary: The suppress limit breaks the OPAC adv search using OR
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: philippe.blouin at inlibro.com

When using the advanced search, it is possible to specify an OR (instead of the
default AND) between the terms.

In the OPAC, the system preferences OpacSuppression will add a limit to every
search as "suppress:false".

The problem is that the limit is simply added as "AND suppress:false" to the
query, without validating if it makes sense.  In the case of OR searches, it
does not:

(title:PuttingHarry) OR (title:HarryPutter) AND suppress:false

will not produce the desired results.

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


More information about the Koha-bugs mailing list