{% load machado_extras %}

Filters

{% if selected_facets or query %}
Selected filters
{%endif%} {% for facet in facet_fields_order %} {% with facets.fields|get_item:facet as exists %} {% if exists %}
{% with facet_fields_desc|get_item:facet as facet_description %}
{% if facet == "so_term" %} Feature type {% elif facet == "orthologs_coexpression" %} Orthologous coexpression {% elif facet == "orthologous_group" %} Orthologous group {% elif facet == "coexpression_group" %} Coexpression group {% else %} {{ facet|capfirst }} {% endif %} {% if facets.fields|get_count:facet > 4 %} ({% if facets.fields|get_count:facet == 100 %}Truncated to {% endif %}{{ facets.fields|get_count:facet }}) {% endif %}
{% if facet in selected_facets_fields %} remove {%endif%}
{% endwith %}
{% for item in facets.fields|get_item:facet|dictsort:0 %} {% with facet_item=facet|add:":"|add:item.0 %} {% if forloop.counter <= 4 or facet_item in selected_facets %}
{% else %}
{% endif %} {% if facet == "organism" %} {{ item.0|capfirst }} {% elif facet == "orthology" %} {% if item.0 == 0 %} no orthology {% else %} orthology {% endif %} {% elif facet == "coexpression" %} {% if item.0 == 0 %} no coexpression groups {% else %} coexpression groups {% endif %} {% elif facet == "orthologs_coexpression" %} {% if item.0 == 'false' %} no coexpression {% else %} coexpression {% endif %} {% elif facet == "orthologs_biomaterial" %} {{ item.0|capfirst }} {% else %} {{ item.0 }} {% endif %} {% endwith %} ({{ item.1 }})
{% endfor %}
{% if facets.fields|get_count:facet > 4 %} {% endif %}
{% endif %} {% endwith %} {% endfor %}