HACK: hide some common 043 facets
authorJeff Godin <jgodin@tadl.org>
Thu, 29 Nov 2012 18:21:12 +0000 (13:21 -0500)
committerJeff Godin <jgodin@tadl.org>
Thu, 29 Nov 2012 18:21:12 +0000 (13:21 -0500)
Hide some common 043 facets, which are otherwise displayed as
unparsed Geographic Area codes.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/parts/result/facets.tt2

index dd27dd9..87745b8 100644 (file)
@@ -81,6 +81,7 @@ FOR facet IN sorted_facets;
             <div class="box">
             [% FOR facet_data IN facet.data;
                 display_value = facet_data.value | html;
+               IF display_value.match('^(e-uk|n-us|e-fr|a-ja).*'); NEXT; END;
                 param_string = fclass _ '|' _ fname _ '[' _ facet_data.value _ ']';
                 new_facets = [];
                 this_selected = 0;