{{- /* Note: When checking to show the observation map and its dependencies, do not also check for .Params.latitude or .Params.longitude as they can be set to 0 by default which is not truthy. So if user wants map but keeps them as 0, the map will not show. */ -}} {{ define "early_connections" }} {{ if .Params.initialZoom }} {{ end }} {{ end }} {{ define "script_includes" }} {{ if .Params.initialZoom }} {{ $gbifMap := resources.Get "js/gbif_map.js" | fingerprint | minify }} {{ end }} {{ end }} {{ define "main" }} {{ .Page.Store.Set "needsDate" true }} {{ partial "species_title.html" . }} {{ partial "species_nav.html" . }}
{{ if .Params.initialZoom }}
{{ else }}
{{ end }}
{{ if .Params.initialZoom }} Image of {{ .Title }} {{ else }} Image of {{ .Title }} {{ end }} {{ if .Params.img_attrib_link }}
{{ .Params.img_attrib_text }}
{{ else }}

{{ .Params.img_attrib_text }}

{{ end }}
{{ if .Params.initialZoom }}
{{ partial "distrib_map.html" . }}
{{ end }}

Taxonomy

{{ $lineage_file := (split .Params.lineage_data_path "/") }} {{ $unsorted_dict := index .Site.Data $lineage_file }} {{ $lineage_slice := slice }} {{ range $rank, $value := $unsorted_dict }} {{ $lineage_slice = $lineage_slice | append (dict "rank" $rank "value" $value) }} {{ end }} {{ $sorted_lineage := sort $lineage_slice "value.display_order" "desc" }} {{ range $rank, $item := $sorted_lineage }}
{{ if eq $item.rank "Superkingdom" }} Domain: {{ else }} {{ $item.rank }}: {{ end }} {{if or (eq $item.rank "Genus") (eq $item.rank "Species") }} {{ $item.value.science_name }} {{ else }} {{ $item.value.science_name }} {{ end }}
{{ end }}
NCBI Taxonomy ID: {{ $species_dict := index $unsorted_dict "Species" }} {{ $tax_id := index $species_dict "tax_id" }} {{ $ncbi_link := index $species_dict "ncbi_link" }} {{$tax_id}}
{{ if or .Params.iucn_category .Params.swe_red_list }}

Vulnerability

{{ if .Params.iucn_category }} IUCN Category: {{ .Params.iucn_category }}
{{ end }} {{ if .Params.swe_red_list }} Swedish Red List: {{ .Params.swe_red_list }}
{{ end }}

{{ end }}

External links

{{ if .Params.gbif_taxon_id }} {{ end }} {{ if .Params.goat_webpage }} {{ end }}
{{ .Content }}
{{ partial "last_updated.html" . }}
{{ end }}