LP#1549505: fix badge scoping
authorGalen Charlton <gmc@esilibrary.com>
Fri, 25 Mar 2016 16:16:50 +0000 (12:16 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 25 Mar 2016 16:16:50 +0000 (12:16 -0400)
commitfde62f10a5dff97cab92f1ad7965ad0d1e302e51
treef4694d70031b9dfbaed1bc56429ca68bead195bc
parentfb03117af70d4406b31832ff8c5f2f1e8f0739d2
LP#1549505: fix badge scoping

This patch fixes badge scoping during searches
so that only badges at the search location and its
ancestors are used to calculate popularity. Note that
if a user explicitly puts in a badge_orgs search "filter"
in the query, that will override this default behavior,
allowing you to do things like search the entire consortium,
but bring hits that are most popular per a badge
scoped at branch X to the top.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm