{% if request.params and c.page.item_count %}
{{ c.page.item_count }} datasets{% if c.q %} found for {{ c.q }}{% endif %}
{% elif request.params and c.page.item_count == 0 %}
Sorry no datasets found{% if c.q %} for {{ c.q }}{% endif %}
{% else %}
All datasets
{% endif %}
{% for field in c.fields_grouped %}
{{ c.facet_titles.get(field) }}:
{% for value in c.fields_grouped[field] %}
{% if c.translated_fields and c.translated_fields.has_key((field,value)) %}
{{ c.translated_fields[(field,value)] }}
{% else %}
{{ value }}
{% endif %}
[remove]
{% endfor %}
{% endfor %}
{% if request.params and c.q and c.page.item_count == 0 %}
Try another search term,
browse the datasets below or add your own data.
{% endif %}
{% if c.query_error %}
There was an error while searching. Please try again.