LP#1005040: Add more ignorable filters to the sidebar count calculation
authorMike Rylander <mrylander@gmail.com>
Thu, 20 Oct 2016 14:19:09 +0000 (10:19 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 20 Oct 2016 14:16:49 +0000 (10:16 -0400)
We need to ignore site() and location_groups() when counting filters, as
these have widgets in the search bar.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/searchbar.tt2

index fd86758..97517c0 100644 (file)
@@ -3,7 +3,7 @@
 
 # We need to ignore some filters in our count
 
-fignore = ['core_limit','limit','badge_orgs','badges','estimation_strategy','depth'];
+fignore = ['location_groups','site','core_limit','limit','badge_orgs','badges','estimation_strategy','depth'];
 fcount = 0;
 FOR f IN ctx.query_struct.filters;
     IF fignore.grep('^' _ f.name _ '$').size;