[Koha-bugs] [Bug 29724] New: Different authority usage count

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 17 17:07:42 CET 2021


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

            Bug ID: 29724
           Summary: Different authority usage count
 Change sponsored?: ---
           Product: Koha
           Version: 21.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: fribeiro at keep.pt

When searching for authorities, in the results table, the column "Used in"
contains a different value from the counter shown at the details page of that
authority.

The first count comes from
https://github.com/Koha-Community/Koha/blob/v21.05.07/Koha/SearchEngine/Elasticsearch/Search.pm#L263

The second one comes from
https://github.com/Koha-Community/Koha/blob/v21.05.07/Koha/Authorities.pm#L55

This last subroutine may return an incorrect value because the querybuilder
adds a * at the end. Eg. "query": "(koha-auth-number:722*)"

Maybe we can replace simple_search_compat with count_auth_use

-- 
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