Bug 9801: display facet labels in search results only when there are facet values
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / facets.inc
index fd2302a..8853ec7 100644 (file)
@@ -8,6 +8,7 @@
        </li>
 
        [% FOREACH facets_loo IN facets_loop %]
+[% IF facets_loo.facets.size > 0 %]
        <li id="[% facets_loo.type_id %]">
 [% facets_loo.type_label %]
 [% IF ( facets_loo.type_label_Authors ) %]Authors[% END %]
@@ -24,6 +25,7 @@
 [% END %]
 </ul></li>
 [% END %]
+[% END %]
 </ul>
 </div>
 [% END %]