<% unless facet_pairs.empty? then %>
  <h2><%= facet_label(field) %></h2>
  <div>
    <% until facet_pairs.empty? do %>
      <% name = facet_pairs.shift %>
      <% count = facet_pairs.shift %>
      <%=link_to_unless filters.include?( "#{field}:#{name}" ), "#{name}(#{count})", {:query=>query, :filters=>add_filter(filters,field,name)} %><br/>
    <% end %>
  </div>
<% end %>
