{%- if include.tag %} {%- assign tools = site.data.tool_and_resource_list | add_related_pages | where:"related_pages", include.tag | sort_natural: "name" %} {%- else %} {%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %} {%- endif %} {%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %} {%- unless country_pages.size == 0 %} {%- assign tool_matches_total = 0 %} {%- assign query = "related_pages." | append: page.type %} {%- for country_page in country_pages %} {%- if include.tag %} {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %} {%- unless tool_matches.size == 0 %} {%- assign tool_matches_total = tool_matches_total | plus: tool_matches.size %} {%- endunless %} {%- else %} {%- assign tool_matches_total = tool_matches_total | plus: country_page.national_resources.size %} {%- endif %} {%- endfor %} {%- endunless %} {%- unless tools.size == 0 and tool_matches_total.size == 0 %} {%- if include.tag %} Skip tool table {%- if site.theme_variables.headings.resource-table-all-collapse %}
{%- endif %} {%- endif %} {%- unless tools.size == 0 %}
{%- for tool in tools %} {%- assign instances_tool = 0 %} {%- assign query = "related_pages." | append: page.type %} {%- for country_page in country_pages %} {%- assign instance_matches = country_page.national_resources | where: "instance_of", tool.id | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %} {%- unless instance_matches.size == 0 %} {%- assign instances_tool = instances_tool | plus: instance_matches.size %} {%- endunless %} {%- endfor %} {% if tool.url %} {%- else %} {%- endif %} {%- capture related_pages %} {%- for tag in tool.related_pages %} {%- unless tag == page.page_id %} {%- assign related_page = site.pages | where:"page_id",tag | first %} {{ related_page.title | truncate: 25 }} {%- endunless %} {%- endfor %} {%- endcapture %} {%- endfor %} {%- if tool_matches_total == 0 or include.tag %}
Tool or resource Description Related pages Registry {%- if include.tag -%} {%- endif %}
{{tool.name}}{{tool.name}}{{tool.description}} {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 != 0 and include.tag != nil %} {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
{%- if linked_tool %} {{linked_tool.name}} {%- endif %} {%- if tool.how_to_access %} {%- endif %} {%- unless instances_tool == 0 or include.tag == nil %} {%- endunless %}
{%- endif %}
{{related_pages}} {%- if tool.registry.biotools and tool.registry.biotools != "NA" %} Tool info {%- endif %} {%- if tool.registry.fairsharing and tool.registry.fairsharing != "NA" %} Standards/Databases {%- endif %} {%- if tool.registry.fairsharing-coll and tool.registry.fairsharing-coll != "NA" %} Standards/Databases {%- endif %} {%- if tool.registry.tess and tool.registry.tess != "NA" %} Training {%- endif %} {%- if tool.registry.europmc and tool.registry.europmc != "NA" %} Publication {%- endif %}
{%- endif %} {%- if include.tag %} {%- if site.theme_variables.headings.resource-table-all-collapse %}
{%- endif %}
{%- endif %} {%- endunless %} {%- unless tool_matches_total == 0 %} {%- if include.tag %} Skip national tools table {%- if site.theme_variables.headings.resource-table-all-collapse %}
{%- endif %}

Tools and resources tailored to users in different countries.

{%- endif %} {%- for country_page in country_pages %} {%- if include.tag %} {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag | sort_natural: "name" %} {%- else %} {%- assign tool_matches = country_page.national_resources %} {%- endif %} {%- for tool in tool_matches %} {% if tool.url %} {%- else %} {%- endif %} {%- if tool.related_pages %} {%- capture related_pages %} {%- for section in tool.related_pages %} {%- unless section[1].size == 0 %} {%- for tag in section[1] %} {%- unless tag == page.page_id %} {%- assign related_page = site.pages | where:"page_id",tag | first %} {{ related_page.title | truncate: 25 }} {%- endunless %} {%- endfor %} {%- endunless %} {%- endfor %} {%- endcapture %} {%- else %} {%- endif %} {%- endfor %} {%- endfor %}
Tool or resource Description Related pages Registry
{{tool.name}}{{tool.name}}{{tool.description | markdownify }} {%- if tool.instance_of or tool.how_to_access %} {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
{%- if linked_tool %} {{linked_tool.name}} {%- endif %} {%- if tool.how_to_access %} {%- endif %}
{%- endif %}
{{related_pages}} {%- if tool.registry.biotools and tool.registry.biotools != "NA" %} Tool info {%- endif %} {%- if tool.registry.fairsharing and tool.registry.fairsharing != "NA" %} Standards/Databases {%- endif %} {%- if tool.registry.fairsharing-coll and tool.registry.fairsharing-coll != "NA" %} Standards/Databases {%- endif %} {%- if tool.registry.tess and tool.registry.tess != "NA" %} Training {%- endif %} {%- if tool.registry.europmc and tool.registry.europmc != "NA" %} Publication {%- endif %}
{%- if include.tag %} {%- if site.theme_variables.headings.resource-table-all-collapse %}
{%- endif %}
{%- endif %} {%- endunless %} {%- endunless %}