{% include top.html %} {% assign spotlight_filters = " t:name, a:keywords, a:contributing_organisations:Organisations, a:scientific_community, t:hgf_research_field:Research field, a:hgf_centers:Centres, t:excerpt, t:license, h:content:_ " | split: "," %} {% assign spotlight_sort = " -date_added:Date added, +name:Name " | split: "," %} {% capture spotlight_filters_types %} {%- for flt in spotlight_filters -%} {%- assign flt_tan = flt | strip | split: ":" -%} {%- if flt_tan.size == 1 -%} t {%- else -%} {{- flt_tan[0] -}} {%- endif -%} {%- unless forloop.last -%},{%- endunless -%} {%- endfor -%} {% endcapture %} {% assign spotlight_filters_types = spotlight_filters_types | split: "," %} {% capture spotlight_filters_attrs %} {%- for flt in spotlight_filters -%} {%- assign flt_tan = flt | strip | split: ":" -%} {%- if flt_tan.size == 1 -%} {{- flt_tan[0] -}} {%- else -%} {{- flt_tan[1] -}} {%- endif -%} {%- unless forloop.last -%},{%- endunless -%} {%- endfor -%} {% endcapture %} {% assign spotlight_filters_attrs = spotlight_filters_attrs | split: "," %} {% capture spotlight_filters_names %} {%- for flt in spotlight_filters -%} {%- assign flt_tan = flt | strip | split: ":" -%} {%- if flt_tan.size == 3 -%} {{- flt_tan[2] -}} {%- elsif flt_tan.size == 2 -%} {{- flt_tan[1] | replace: '_', ' ' | capitalize -}} {%- else -%} {{- flt_tan[0] | replace: '_', ' ' | capitalize -}} {%- endif -%} {%- unless forloop.last -%},{%- endunless -%} {%- endfor -%} {% endcapture %} {% assign spotlight_filters_names = spotlight_filters_names | split: "," %}
{% include header.html %}