{{ $inside_volume := .inside_volume | default false }} {{ $actions := .actions | default true }} {{ $modalId := print "modalID_" .index }} {{ $heading_level := .heading_level | default 3 }} {{ $heading_tag := (dict "open" ((printf "" $heading_level) | safeHTML) "close" ((printf "" $heading_level) | safeHTML) ) }} {{ with .paper }}
{{ $heading_tag.open }} {{ $heading_tag.close }}

{{- range $index, $authors := .Params.Researchers -}} {{- $author := site.GetPage (printf "/persons/%s" .) -}} {{ if $author }} {{- if ne $index 0 -}},{{ end }} {{- end -}} {{- end -}} {{ .Params.authors_list }}

{{ if not $inside_volume }}

{{ with .Params.paper_kind }} {{ . }} {{ end }} {{ range .Params.Volumes }} {{ $volume := site.GetPage (printf "/volumes/%s" .) }} {{ if $volume }} {{ $volume.Title }} {{ end }} {{ end }}

{{ end }}
{{ if eq $actions true }} {{ partial "papers/actions.html" (dict "paper" . ) }} {{ end }}
{{ end }}