{{ $a := . }} {{ if and $a (ne (len $a.Names) 0) }} {{ $gnd := GetGND $a.GND }} {{ $works := LookupWorks $a }} {{ $pieces := LookupPieces $a }}
{{ if ne $gnd nil }} {{- if or (ne (len $gnd.DateOfBirth) 0) (ne (len $gnd.DateOfDeath) 0) -}}
{{- if ne (len $gnd.DateOfBirth) 0 -}} {{ HRDateYear (index $gnd.DateOfBirth 0) }} {{- end -}} {{- if ne (len $gnd.DateOfDeath) 0 -}} –{{ HRDateYear (index $gnd.DateOfDeath 0) }} {{- end -}}
{{- end -}} {{ end }} {{ if ne $gnd nil }} {{- if ne (len $gnd.ProfessionOrOccupation) 0 -}}
{{ range $i, $prof := $gnd.ProfessionOrOccupation }} {{ if lt $i 3 }} {{ if gt $i 0 }} · {{ end }}{{ $prof.Label }} {{ end }} {{ end }}
{{- end -}} {{ end }}
{{- if ne $gnd nil -}} {{- /* Wikipedia link if available */ -}} {{- if ne (len $gnd.Wikipedia) 0 -}} {{- end -}} {{- /* GND link if available */ -}} {{- if ne $a.GND "" -}} {{- else -}} {{- /* VIAF link if no GND available */ -}} {{- if ne (len $gnd.SameAs) 0 -}} {{ range $_, $ref := $gnd.SameAs }} {{- if ne $ref.ID "" -}} {{- end -}} {{ end }} {{- end -}} {{- end -}} {{- end -}}
{{- if ne (len $works) 0 -}}
Werke
{{ range $_, $w := $works }}
{{- if ne (len $w.Item.Citation.InnerXML ) 0 -}}
{{- range $_, $url := $w.Item.URLs -}} {{ $url.Chardata }} {{- end -}}
{{- end -}} {{ $workPieces := LookupPieces $w.Item }} {{ if len $workPieces }}
{{ range $_, $p := $workPieces }} {{ range $_, $issue := $p.Item.IssueRefs }} {{ template "_citation" $issue }} {{ end }} {{ end }}
{{ end }}
{{ end }}
{{ end }} {{ $pieces := LookupPieces $a }} {{ if ne (len $pieces) 0 }}
Beiträge
{{ range $_, $p := SortPiecesByDate $pieces }}
{{ template "_piece_summary" $p.Item }}
{{ range $_, $issue := $p.Item.IssueRefs }} {{ template "_citation" $issue }} {{ end }}
{{ end }}
{{ end }}
{{ end }}