Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken link to available data scripts #945

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions layouts/datasets/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ <h4>Data available from research groups in Sweden</h4>
began to use a script to query the <a href="https://europepmc.org">Europe PMC database</a> (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. <a href="https://github.com/ScilifelabDataCentre/covid-portal-scripts/blob/main/pmc_pub_seeker.py">The code
used for the query</a> is written in Python and, as with all of our code, it is openly available in GitHub. We
code. <a href="https://github.com/ScilifelabDataCentre/covid-portal-scripts/tree/main/Available_data">The code
used for the query</a> 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.</p>
<p>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
Expand All @@ -26,19 +26,19 @@ <h4>Data available from research groups in Sweden</h4>
{{ $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 }}

<div class="container">
Expand Down Expand Up @@ -168,7 +168,9 @@ <h5>Data types</h5>
});
</script>

<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.13.1/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" charset="utf8"
src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" charset="utf8"
src="https://cdn.datatables.net/1.13.1/js/dataTables.bootstrap5.min.js"></script>

{{ end }}