[Koha-bugs] [Bug 25838] New: Sort facets values by number of occurrences (Zebra)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 22 09:05:47 CEST 2020


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

            Bug ID: 25838
           Summary: Sort facets values by number of occurrences (Zebra)
 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: fridolin.somers at biblibre.com

Actually with Zebra facets values are sorted alphabetically.

This is a comment from Bug 12478 :
<<
Bug 12478: Display facet terms ordered by number of occurrences

By default ES returns the facet terms ordered by most used, which makes
sense.

This patch removes resort done in the scripts (catalogue/search.pl and
opac/opac-search.pl) and moves it to the module.

For Zebra it's now done in C4::Search::getRecords, and there is no
change to expect (still alphabetically).
>>

Looks like the sort by number of occurrences is already done in
C4::Search::getRecords, it is an additionnal code that re-sort alphabetically.

This patch proposes to remove it in order to have same sort order between Zebra
and ES.

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