{{/*
Get all entries with available data into an array
*/}}
{{ $all_entries := slice }}
{{ $valid_db_list := slice "URL" "NA" "N/A" "GENBANK" "PDB" "BioProject" "GEO" "ISRCTN" "Dryad" "PubChem-Substance" "RefSeq" "dbGaP"}}
{{ range $index, $entry := $.Site.Data.publications.publications }}
{{ $has_data := false }}
{{ range .xrefs }}
{{ if in $valid_db_list .db }}
{{ $has_data = true}}
{{ end }}
{{ end }}
{{ if $has_data }}
{{ $all_entries = $all_entries | append $entry }}
{{ end }}
{{ end }}
{{/*
Count how many entries we have for each data type
*/}}
{{ $all_data_types := slice "Category: Biochemistry" "Category: Drug Discovery" "Category: Genomics & transcriptomics" "Category: Health" "Category: Imaging" "Category: Other" "Category: Proteins" "Category: Public Health" "Category: Serology" }}
{{ $num_entries_per_data_type := dict }}
{{ range $all_data_types }}
{{ $current_type := . }}
{{ $num_entries := 0 }}
{{ range $all_entries }}
{{ range $key, $content := .labels }}
{{ if eq $key $current_type}}
{{ $num_entries = add $num_entries 1}}
{{ end }}
{{ end }}
{{ end }}
{{ $data_type_num_entries := dict $current_type $num_entries }}
{{ $num_entries_per_data_type = merge $num_entries_per_data_type $data_type_num_entries }}
{{ end }}
{{/*
The following bit ensures that it is not necessary to copy the datatypes_to_display list in the Swedish version of the page
*/}}
{{ $datatypes_to_display := slice }}
{{ $path := strings.TrimPrefix "/sv" (strings.TrimRight "/" (string .Page.RelPermalink)) }}
{{ with .Sites.First.GetPage $path }}
{{ $datatypes_to_display = .Params.datatypes_to_display }}
{{ end }}
About this portal
The Greek COVID-19 Data Portal provides information, guidelines, tools and services to support researchers to utilise Greek and European infrastructures for data sharing. The portal is a national node of the European COVID-19 Data Portal.