{{ $model := . }} {{/* .result: type AlmanachResult struct { Entry *dbmodels.Entry Places []*dbmodels.Place Series []*dbmodels.Series Contents []*dbmodels.Content Agents map[string]*dbmodels.Agent // <- Key is agent id EntriesSeries map[string]*dbmodels.REntriesSeries // <- Key is series id EntriesAgents []*dbmodels.REntriesAgents ContentsAgents map[string][]*dbmodels.RContentsAgents // <- Key is content id } */}} {{ $isGer := false }} {{ $isFra := false }} {{ $isEng := false }} {{- $hasContents := len $model.result.Contents -}}
Almanach
{{- if (IsAdminOrEditor $model.request.user) -}}
Bearbeiten
{{- end -}}
Almanach-Nummer
{{ $model.result.Entry.MusenalmID }}
{{- if $model.result.Entry.PreferredTitle -}}
Kurztitel
{{ $model.result.Entry.PreferredTitle }}
{{- end -}} {{- if $model.result.Entry.TitleStmt -}}
Titel
{{ $model.result.Entry.TitleStmt }}
{{- end -}}
Jahr
{{- if $model.result.Entry.Year -}} {{ $model.result.Entry.Year }} {{- else -}} [keine Angabe] {{- end -}}
{{- if $model.result.Entry.ResponsibilityStmt -}}
Herausgeberangabe
{{ $model.result.Entry.ResponsibilityStmt }}
{{- end -}} {{- if $model.result.Entry.Extent -}}
Umfang
{{- end -}} {{- if $model.result.Entry.Language -}}
Sprache
{{- range $i, $lang := $model.result.Entry.Language -}} {{- if $i -}},{{- end -}} {{- if eq $lang "ger" -}} {{ $isGer = true }} Deutsch {{- else if eq $lang "eng" -}} {{ $isEng = true }} Englisch {{- else if eq $lang "fre" -}} {{ $isFra = true }} Französisch {{- else if eq $lang "ita" -}} Italienisch {{- else if eq $lang "lat" -}} Latein {{- else -}} {{ $lang }} {{- end -}} {{- end -}}
{{- end -}} {{- if $model.result.Entry.References -}}
Nachweise
{{- $model.result.Entry.References -}}
{{- end -}} {{- if $model.result.Series -}}
Reihen
{{- range $i, $s := $model.result.Series -}}
{{- $rel := index $model.result.EntriesSeries $s.Id -}} {{- if $rel -}} {{- if not (eq $rel.Type "Bevorzugter Reihentitel") -}} {{- if eq $rel.Type "Früherer Reihentitel" -}} hat Titelauflage s.a. {{- else if eq $rel.Type "Späterer Reihentitel" -}} ist Titelauflage von, s.a. {{- else if eq $rel.Type "In anderer Sprache" -}} {{- if $isFra -}} In deutscher Sprache s.a. {{- else -}} In französischer Sprache s.a. {{- end -}} {{- else if eq $rel.Type "Alternatives Titelblatt" -}} alternatives Titelblatt, s.a. {{- end -}} {{- end -}} {{- end -}} {{ $s.Title }}
{{- end -}}
{{- end -}} {{- if $model.result.Places -}}
Orte
{{- range $i, $p := $model.result.Places -}} {{- end -}}
{{- end -}} {{- if $model.result.EntriesAgents -}}
Personen
{{- range $i, $r := $model.result.EntriesAgents -}} {{- $a := index $model.result.Agents $r.Agent -}} {{- if $a -}}
{{ $a.Name }} {{- $r.Type -}}
{{- end -}} {{- end -}}
{{- end -}} {{- if $model.result.Entry.Annotation -}}
Anmerkungen
{{- Safe (ReplaceSlashParen $model.result.Entry.Annotation) -}}
{{- end -}}