Bug 28609

Summary: Popularity sort is broken
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Searching - ZebraAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P5 - low CC: andrewfh, christian.stelzenmueller, m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13976
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2021-06-21 14:08:31 UTC
Bug 13976 reported that the sort by popularity was only alphabetic and not numeric. I cannot confirm that... because now it's broken.

When sorting by popularity the result list is sorted by biblionumber instead, which is the usual fallback when values are identical.

When searching issues:74 or popluarity:74 records where the items have this number of issues are found correctly. So it appears the index is there and filled, but somehow not working when used for sorting?

Verified in 18.11 and 20.11.
Comment 1 Marcel de Rooy 2023-04-05 12:31:27 UTC
See bug 13976.
I also had a struggle to get it working. You need a preference or the cron job to get the sum of issues into the biblioitems.totalissues column first.

Closing this report.