LP#1698206: Indicate broad searches and heavy facets
authorMike Rylander <miker@esilibrary.com>
Mon, 10 Jul 2017 14:35:07 +0000 (10:35 -0400)
committerKathy Lussier <klussier@masslnc.org>
Mon, 28 Aug 2017 15:14:53 +0000 (11:14 -0400)
commitabdf6f8ebc385996be871594af8985a2fc07b4a2
tree90d1f0846650c12c3542e4e902bf839a7a894dcd
parentec22696f691b30a085e6f6e4d0ed95de7e63d42e
LP#1698206: Indicate broad searches and heavy facets

There is a configurable, pagable limit on hits, defined by the superpage
size and max superpages.  When the hit count equals this (by default,
100000) we add a '+' to the hit count to show that there are even more hits.

Facets are calculated per superpage, and if the facet use count equals the
number of superpages seen so far multiplied by the superpage size, we
likewise add '+' to indicate that there are likely more records matching the
facet.

For facets, a user can page far enough to increase the visible number, if
they cross superpage boundaries.

Signed-off-by: Mike Rylander <miker@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
Open-ILS/src/templates/opac/parts/result/facets.tt2
Open-ILS/src/templates/opac/parts/result/paginate.tt2