{% extends 'search/base_facet.html' %} {% block faceting %} {% if query %}

By Author

{% if facets.fields.author %}
Author
{# Provide only the top 5 authors #} {% for author in facets.fields.author|slice:":5" %} {% if author.1 != 0 %}
{{ author.0 }} ({{ author.1 }})
{% endif %} {% endfor %} {% else %}

No author facets.

{% endif %}
{% endif %} {% endblock %}