{%- 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 tools.size == 0 or tools == nil %} {%- if include.tag %}
Tool or resource | Description | Related pages | Registry {%- if include.tag -%} {%- endif %} | ||
---|---|---|---|---|---|
{{tool.name}} | {%- else %}{{tool.name}} | {%- endif %}{{tool.description}}
{%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 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 total_county_tools == 0 or include.tag == nil %}
Different instances available
{%- endunless %}
{%- 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 %}
{{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 %} {%- if tool.registry.europmc %} Publication {%- endif %} | |
National resources | |||||
{{tool.name}} | {%- else %}{{tool.name}} | {%- endif %}{{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 %}
|
{%- 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 %}
{{related_pages}} | {%- else %}{%- endif %} | {%- 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 %} {%- if tool.registry.europmc %} Publication {%- endif %} |