diff --git a/_data/affiliations.yml b/_data/affiliations.yml index d4d9fba..e92f46d 100644 --- a/_data/affiliations.yml +++ b/_data/affiliations.yml @@ -15,3 +15,15 @@ expose: true type: infrastructure url: https://www.biocommons.org.au/ + +- name: Bioplatforms Australia + image_url: /images/infrastructures/BioplatformsAustralia.png + expose: true + type: infrastructure + url: https://bioplatforms.com/ + +- name: Galaxy Australia + image_url: /images/infrastructures/galaxy-aust-logo-portrait-CMYK.png + expose: true + type: infrastructure + url: https://usegalaxy.org.au/ \ No newline at end of file diff --git a/_includes/resource-table-all.html b/_includes/resource-table-all.html new file mode 100644 index 0000000..5cc7890 --- /dev/null +++ b/_includes/resource-table-all.html @@ -0,0 +1,177 @@ +{%- 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 %} +

Relevant tools and resources

+{%- endif %} +Skip tool table +
+ + + + + + + + + + + {%- for tool in tools %} + + {%- assign instances_tool = 0 %} + {%- assign total_county_tools = 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 %} + {%- assign tool_matches = country_page.national_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.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 %} + {%- 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.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag | sort_natural: "name" %} + {%- else %} + {%- assign tool_matches = country_page.national_resources | sort_natural: "name" %} + {%- 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[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 {%- if include.tag -%} + + + {%- endif %} + DescriptionRelated pagesRegistry {%- if include.tag -%} + + + {%- endif %} +
{{tool.name}}{{tool.name}}{{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 %} +
{{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}}{{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 %} + 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 %} +
+
+{%- unless total_county_tools == 0 or include.tag == nil %} + +{%- endunless %} +
+{%- endunless %} diff --git a/images/infrastructures/BioplatformsAustralia.png b/images/infrastructures/BioplatformsAustralia.png new file mode 100644 index 0000000..4706acd Binary files /dev/null and b/images/infrastructures/BioplatformsAustralia.png differ diff --git a/images/infrastructures/galaxy-aust-logo-portrait-CMYK.png b/images/infrastructures/galaxy-aust-logo-portrait-CMYK.png new file mode 100644 index 0000000..01f7952 Binary files /dev/null and b/images/infrastructures/galaxy-aust-logo-portrait-CMYK.png differ diff --git a/index.md b/index.md index c6cda92..546dc9a 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,6 @@ --- title: Welcome to the How-to Hub -affiliations: [Australian BioCommons] +affiliations: [Australian BioCommons, Galaxy Australia, Bioplatforms Australia] --- @@ -27,6 +27,8 @@ The **How-to Hub** would not be possible without the following contributors: {% include contributor-tiles-all.html custom="Johan Gustafsson, Patrick Capon, Bert Droesbeke"%} +
+ The **How-to Guides** would not be possible without the following contributors: {% include contributor-tiles-all.html %}