From 31b4be14ae27df827fce2801ef8abbeb6ac0269c Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Sat, 27 Sep 2025 18:47:21 +0200 Subject: [PATCH] further enhancements of citation --- .../components/_unified_piece_entry.gohtml | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/views/routes/components/_unified_piece_entry.gohtml b/views/routes/components/_unified_piece_entry.gohtml index c5f53d6..f4b7b38 100644 --- a/views/routes/components/_unified_piece_entry.gohtml +++ b/views/routes/components/_unified_piece_entry.gohtml @@ -207,7 +207,8 @@ {{- end -}} {{- range $index, $element := $authorElements -}} {{- if gt $index 0 }}, {{ end }}{{ Safe $element }} - {{- end -}}{{ $colonPrefix }}Rezension von: + {{- end -}} + {{- if gt (len $authorElements) 0 -}}{{ $colonPrefix }}{{- end -}}Rezension von: {{- else if not $useColonFormat -}} {{ Safe $fortsPrefix }} {{- $authorElements := slice -}} @@ -228,7 +229,8 @@ {{- end -}} {{- range $index, $element := $authorElements -}} {{- if gt $index 0 }}, {{ end }}{{ Safe $element }} - {{- end -}}, + {{- end -}} + {{- if gt (len $authorElements) 0 -}},{{- end -}} {{- else -}} {{ Safe $fortsPrefix }}Rezension von: {{- end -}} @@ -455,8 +457,7 @@ Redaktionelle Stellungnahme {{ else }} Anmerkung der Redaktion - {{ end }} - {{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }} + {{ end }}{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }} {{- else if $categoryFlags.Brief -}} {{ Safe $fortsPrefix }}{{ if $categoryFlags.Nachruf }} @@ -535,7 +536,8 @@ {{- end -}} {{- range $index, $element := $authorElements -}} {{- if gt $index 0 }}, {{ end }}{{ Safe $element }} - {{- end -}}{{ $colonPrefix }} + {{- end -}} + {{- if gt (len $authorElements) 0 -}}{{ $colonPrefix }}{{- end -}} {{- else if not $useColonFormat -}} {{ Safe $fortsPrefix }} {{- $authorElements := slice -}} @@ -559,7 +561,7 @@ {{- end -}} {{- if gt (len $authorElements) 0 -}} {{- if $title }}: {{ $title }}{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ end }}{{ if $workAuthorName }} + {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} {{ $workAuthorName }}, {{ end }}{{ $title }}{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ end }}{{ if $workAuthorName }} + {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} {{ $workAuthorName }}, {{ end }}{{ $title }}{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ end }}{{ if $workAuthorName }} + {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} {{ $workAuthorName }}, {{ end }}{{ $title }}{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ end }}{{ if $workAuthorName }} + {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} {{ $workAuthorName }}, {{ end }}