{{ define "main" }} {{ .Content }} {{/* 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.data }} {{ $has_data := true }} {{ range .xrefs }} {{ $has_data = true}} {{ 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" "Category: Publications" }} {{ $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 }} {{/* Select which entries from the database to display on this page */}}
DOI | Title | Venue | Year | Popularity | Influence |
---|---|---|---|---|---|
{{ .doi }} |
{{ .title }}
|
{{ .venue }}
|
{{.date}} |
{{ .popularity }} | {{ .influence }} |