{{ $a := . }} {{ if and $a (ne (len $a.Names) 0) }} {{ $gnd := GetGND $a.GND }} {{ $works := LookupWorks $a }} {{ $pieces := LookupPieces $a }}
{{ index $a.Names 0 }} {{ if ne $gnd nil }} {{- if ne (len $gnd.DateOfBirth) 0 -}} , {{ HRDateShort (index $gnd.DateOfBirth 0) }} {{- end -}} {{- if ne (len $gnd.DateOfDeath) 0 -}} –{{ HRDateShort (index $gnd.DateOfDeath 0) }} {{- end -}} {{ end }} {{- if ne $gnd nil -}} , GND {{- 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 (len $works) 0 -}}
Werke
{{ range $_, $w := $works }}
{{- if ne (len $w.Item.Citation.InnerXML ) 0 -}}
{{- end -}} {{ range $_, $url := $w.Item.URLs }}
{{ $url.Chardata }}
{{ end }}
{{ $workPieces := LookupPieces $w.Item }} {{ if len $workPieces }}
{{ range $_, $p := $workPieces }} {{ range $_, $issue := $p.Item.IssueRefs }} {{ $issue.Nr }}/{{ $issue.When }}{{ if $issue.Von }} [S. {{ $issue.Von }}{{ if $issue.Bis }}-{{ $issue.Bis }}{{ end }}]{{ end }} {{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ $pieces := LookupPieces $a }} {{ if ne (len $pieces) 0 }}
Beiträge
{{ range $_, $p := $pieces }} {{ range $_, $issue := $p.Item.IssueRefs }} {{ $issue.Nr }}/{{ $issue.When }}{{ if $issue.Von }} [S. {{ $issue.Von }}{{ if $issue.Bis }}-{{ $issue.Bis }}{{ end }}]{{ end }} {{ end }} {{ end }}
{{ end }}
{{ end }}