{%- set ns = namespace(featured_institutions=0) -%}
{%- for institution in institutions | sort(attribute='name') -%}
{%- if institution.is_featured and institution.name != "Other institutions" -%}
{# Hide institutions ending with "Students". #}
{# The hidden institutions will be processed by Javascript. #}
{%- set hidden = "hidden" if institution.name[-9:] == " Students" else "" -%}
{%- set ns.featured_institutions = ns.featured_institutions + 1 -%}
{%- endif -%}
{%- endfor -%}
{%- for institution in institutions | sort(attribute='name') -%}
{%- if not institution.is_featured and institution.name != "Other institutions" -%}
{%- set hidden = "hidden" if institution.name[-9:] == " Students" else "" -%}
{%- endif -%}
{%- endfor -%}
{% if ns.featured_institutions > 0 %}
{% endif %}
Deposit Types
Search Scope
File Types
Published Date
Licenses
{% for license in licenses | sort(attribute='name') %}
{% endfor %}
Categories
{%- for category in categories | sort(attribute='title') -%}
{%- if not "parent_id" in category -%}
{%- for subcategory in categories -%}
{%- if subcategory.parent_id == category.id -%}