{{ $model := . }} {{/* .1 - *Content .2 - *Entry .3 - []*RContentsAgents .4 - map[string]*Agent .5 bool SingleView */}} {{- $content := index . 0 -}} {{- $entry := index . 1 -}} {{- $rcas := index . 2 -}} {{- $agents := index . 3 -}} {{- $singleView := false -}} {{- if gt (len .) 4 -}} {{- $singleView = index . 4 -}} {{- end -}} {{- $entrySubView := false -}} {{- if gt (len .) 5 -}} {{- $entrySubView = index . 5 -}} {{- end -}}
{{- if and (not $singleView) (not $entrySubView) -}}
{{- if $content.Extent -}}
S. {{- $content.Extent -}}
{{- end -}} {{- if $content.MusenalmType -}}
{{- range $_, $t := $content.MusenalmType -}}
{{- $t -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- if or $singleView $entrySubView -}}
Almanach
{{- $entry.PreferredTitle -}} {{- if $content.Extent -}} , S. {{- $content.Extent -}} {{- end -}}
{{- end -}} {{- if $content.TitleStmt -}}
Titel
{{- $content.TitleStmt -}}
{{- end -}} {{- if $content.IncipitStmt -}}
Incipit
{{ $content.IncipitStmt }}…
{{- end -}} {{- if $content.ResponsibilityStmt -}}
Autorangabe
{{- $content.ResponsibilityStmt -}}
{{- end -}} {{- if $rcas -}}
Personen
{{- range $_, $rca := $rcas -}} {{- $agent := index $agents $rca.Agent -}}
{{- $agent.Name -}} ({{ $agent.BiographicalData -}})
{{- end -}}
{{- end -}} {{- if $content.Annotation -}}
Anmerkung
{{- Safe (LinksAnnotation (ReplaceSlashParen $content.Annotation)) -}}
{{- end -}}
{{- if not $singleView -}} {{- $scans := $content.ImagePaths -}} {{- $slen := len $scans -}} {{- $double := false -}} {{- if gt $slen 2 -}} {{- $double = true -}} {{- end -}}
{{- if $scans -}}
{{- range $_, $scan := $scans -}}
{{- end -}}
{{- end -}}
NR {{ $content.MusenalmID -}}
{{- if $entrySubView -}} {{- if $content.MusenalmType -}}
{{- range $_, $t := $content.MusenalmType -}}
{{- $t -}}
{{- end -}}
{{- end -}} {{- end -}}
{{- end -}}
{{- if $singleView -}} {{- $scans := $content.ImagePaths -}} {{- $slen := len $scans -}} {{- $double := false -}} {{- if gt $slen 2 -}} {{- $double = true -}} {{- end -}}
{{- if $scans -}}
{{- range $i, $scan := $scans -}}
{{- end -}}
{{- end -}}
{{- end -}}