{%- assign tools = site.data.tool_and_resource_list | where:"related_pages", include.tag %} {%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.resources != nil" %} {%- unless tools.size == 0 %} {%- if include.tag %}

Relevant tools and resources

{%- endif %} Skip tool table
{%- for tool in tools | sort %} {%- assign total_county_tools = 0 %} {%- assign instances_tool = 0 %} {%- assign query = "related_pages." | append: page.type %} {%- for country_page in country_pages %} {%- assign instance_matches = country_page.resources | where: "instance_of", tool.name | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %} {%- assign tool_matches = country_page.resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %} {%- unless tool_matches.size == 0 %} {%- assign total_county_tools = total_county_tools | plus: tool_matches.size %} {%- endunless %} {%- unless instance_matches.size == 0 %} {%- assign instances_tool = instances_tool | plus: instance_matches.size %} {%- endunless %} {%- endfor %} {% if tool.link %} {%- 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}} {%- endunless %} {%- endfor %} {%- endcapture %} {%- endfor %} {%- unless total_county_tools == 0 or include.tag == nil %} {%- endunless %} {%- assign hide_ids = "resource_title" %} {%- for country_page in country_pages %} {%- if include.tag %} {%- assign tool_matches = country_page.resources| where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %} {%- else %} {%- assign tool_matches = country_page.resources %} {%- endif %} {%- for tool in tool_matches %} {%- assign tool_id = tool.name | slugify %} {%- assign hide_ids = hide_ids | append: " " | append: tool_id %} {% if tool.url %} {%- else %} {%- endif %} {%- if tool.related_pages %} {%- capture related_pages %} {%- for section in tool.related_pages %} {%- unless section.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}} {%- endunless %} {%- endfor %} {%- endunless %} {%- endfor %} {%- endcapture %} {%- else %} {%- endif %} {%- endfor %} {%- endfor %}
Tool or resource {%- if include.tag -%} {%- endif %} Description Related pages Registry {%- if include.tag -%} {%- endif %}
{{tool.name}}{{tool.name}}{{tool.description}} {%- unless instances_tool == 0 or total_county_tools == 0 or include.tag == nil %} Different instances available {%- endunless %} {{related_pages}} {%- if tool.registry.biotools %} Tool info {%- endif %} {%- if tool.registry.fairsharing %} Standards/Databases {%- endif %} {%- if tool.registry.fairsharing-coll %} Standards/Databases {%- endif %} {%- if tool.registry.tess %} Training {%- endif %}
National resources
{{tool.name}}{{tool.name}}{{tool.description | markdownify }} {%- if tool.instance_of or tool.how_to_access %}
{{tool.instance_of}} {%- if tool.how_to_access %} {%- endif %}
{%- endif %}
{{related_pages}}
{%- unless total_county_tools == 0 or include.tag == nil %} {%- endunless %}
{%- endunless %}