From c637f3e00bd09e2a5408293856df288dbf01f0fd Mon Sep 17 00:00:00 2001
From: LianeHughes <68756672+LianeHughes@users.noreply.github.com>
Date: Fri, 10 Feb 2023 13:30:48 +0100
Subject: [PATCH] Fix broken link to available data scripts
---
layouts/datasets/single.html | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/layouts/datasets/single.html b/layouts/datasets/single.html
index 835f0c6d8..96f7394ca 100644
--- a/layouts/datasets/single.html
+++ b/layouts/datasets/single.html
@@ -9,8 +9,8 @@
Data available from research groups in Sweden
began to use a script to query the Europe PMC database (making use of their API)
in order to locate relevant publications. We only include data from publications about COVID-19/SARS-CoV-2 that BOTH
involve at least one author affiliated with a Swedish research institution AND openly share reusable data and/or
- code. The code
- used for the query is written in Python and, as with all of our code, it is openly available in GitHub. We
+ code. The code
+ used for the query is written in Python and, as with all of our code, it is openly available in GitHub. We
welcome others to reuse it and to repurpose it for other pathogens.
The lists of available data may not be exhaustive as the script used to generate it does not search for every
possible database/repository. If you find that a dataset is missing, or that the information related to it is
@@ -26,19 +26,19 @@
Data available from research groups in Sweden
{{ $current_datatype := .Title }}
{{ $ds_to_display := slice }}
{{ range $index, $item := $all_data }}
- {{ if eq $current_datatype "All data types"}}
- {{ $ds_to_display = $ds_to_display | append $item }}
- {{ else }}
- {{ $add := false }}
- {{ range .available_items }}
- {{ if in .data_type $current_datatype }}
- {{ $add = true }}
- {{ end }}
- {{ end }}
- {{ if $add }}
- {{ $ds_to_display = $ds_to_display | append $item }}
- {{ end }}
- {{ end }}
+{{ if eq $current_datatype "All data types"}}
+{{ $ds_to_display = $ds_to_display | append $item }}
+{{ else }}
+{{ $add := false }}
+{{ range .available_items }}
+{{ if in .data_type $current_datatype }}
+{{ $add = true }}
+{{ end }}
+{{ end }}
+{{ if $add }}
+{{ $ds_to_display = $ds_to_display | append $item }}
+{{ end }}
+{{ end }}
{{ end }}
@@ -168,7 +168,9 @@
Data types
});
-
-
+
+
{{ end }}
\ No newline at end of file