- {{- /* Use first piece for display text */ -}}
- {{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0).Item "CurrentActorID" $a.ID "DisplayMode" "akteure" "ShowPlaceTags" true "UseColonFormat" false "ShowContinuation" false) }}
+ {{- /* Use piece link component for consistent linking */ -}}
+ {{ template "_piece_link" (dict "Piece" (index $groupedItems 0).Item "DisplayMode" "akteure" "ShowUnifiedEntry" true "LongForm" false "CurrentActorID" $a.ID) }}
{{- /* Show all citations from all pieces in this group inline with commas */ -}}
{{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}}
diff --git a/views/routes/components/_piece_link.gohtml b/views/routes/components/_piece_link.gohtml
new file mode 100644
index 0000000..ae2e6db
--- /dev/null
+++ b/views/routes/components/_piece_link.gohtml
@@ -0,0 +1,49 @@
+{{- /*
+ Piece Link Component
+ Creates appropriate links to pieces/beiträge based on their structure
+
+ Usage: {{ template "_piece_link" (dict
+ "Piece" $piece
+ "DisplayMode" "search|akteure|place|kategorie|issue"
+ "ShowUnifiedEntry" true|false
+ "LongForm" true|false
+ "CurrentActorID" $currentActorID
+ ) }}
+
+ Parameters:
+ - Piece: The piece object to create links for
+ - DisplayMode: Context for formatting ("search", "akteure", "place", "kategorie", "issue")
+ - ShowUnifiedEntry: Whether to show the unified piece description (default: true)
+ - LongForm: Whether to use long form for unified entry (default: false for search only)
+ - CurrentActorID: ID of current actor (for akteure view context, optional)
+
+ Link Logic:
+ - Single-issue pieces: Link directly to the issue/page
+ - Multi-issue pieces: Link to /beitrag/{piece-id} endpoint
+ - Always wraps the unified piece entry in appropriate link(s)
+*/ -}}
+
+{{- $piece := .Piece -}}
+{{- $displayMode := .DisplayMode -}}
+{{- if not $displayMode -}}{{ $displayMode = "search" }}{{- end -}}
+{{- $showUnifiedEntry := .ShowUnifiedEntry -}}
+{{- if eq $showUnifiedEntry nil -}}{{ $showUnifiedEntry = true }}{{- end -}}
+{{- $longForm := .LongForm -}}
+{{- if eq $longForm nil -}}{{ $longForm = (eq $displayMode "search") }}{{- end -}}
+{{- $currentActorID := .CurrentActorID -}}
+
+{{- /* Determine if this is a multi-issue piece */ -}}
+{{- $isMultiIssue := gt (len $piece.IssueRefs) 1 -}}
+
+{{- /* Always show the unified entry without any link wrapper */ -}}
+{{- if $showUnifiedEntry -}}
+ {{ template "_unified_piece_entry" (dict
+ "Piece" $piece
+ "DisplayMode" $displayMode
+ "ShowPlaceTags" true
+ "UseColonFormat" (eq $displayMode "place")
+ "ShowContinuation" (eq $displayMode "issue")
+ "LongForm" $longForm
+ "CurrentActorID" $currentActorID
+ ) }}
+{{- end -}}
\ No newline at end of file
diff --git a/views/routes/components/_unified_piece_entry.gohtml b/views/routes/components/_unified_piece_entry.gohtml
index c379e91..dffd519 100644
--- a/views/routes/components/_unified_piece_entry.gohtml
+++ b/views/routes/components/_unified_piece_entry.gohtml
@@ -170,78 +170,28 @@
{{- /* Generate category-specific descriptions */ -}}
{{- if $categoryFlags.Rezension -}}
- {{- /* Show authors, translators, and editors in prefix */ -}}
- {{- if or (gt (len $authors) 0) (gt (len $translators) 0) (gt (len $editors) 0) -}}
- {{- $hasCurrentActorAuthor := false -}}
- {{- range $author := $authors -}}
- {{- if eq $author.ID $currentActorID -}}
- {{- $hasCurrentActorAuthor = true -}}
- {{- end -}}
+ {{- /* Always show: Author(s), Rezension von: Work */ -}}
+ {{- Safe $fortsPrefix -}}
+ {{- $authorElements := slice -}}
+ {{- range $author := $authors -}}
+ {{- if or (not $currentActorID) (ne $author.ID $currentActorID) -}}
+ {{- $authorElements = append $authorElements (printf "
%s" $author.ID $author.Name) -}}
{{- end -}}
- {{- $hasCurrentActorTranslator := false -}}
- {{- range $translator := $translators -}}
- {{- if eq $translator.ID $currentActorID -}}
- {{- $hasCurrentActorTranslator = true -}}
- {{- end -}}
- {{- end -}}
- {{- $hasCurrentActorEditor := false -}}
- {{- range $editor := $editors -}}
- {{- if eq $editor.ID $currentActorID -}}
- {{- $hasCurrentActorEditor = true -}}
- {{- end -}}
- {{- end -}}
- {{- /* Show other authors/translators/editors in prefix */ -}}
- {{- if and $useColonFormat (or (not $hasCurrentActorAuthor) (not $hasCurrentActorTranslator) (not $hasCurrentActorEditor)) -}}
- {{ Safe $fortsPrefix }}
- {{- $authorElements := slice -}}
- {{- range $author := $authors -}}
- {{- if ne $author.ID $currentActorID -}}
- {{- $authorElements = append $authorElements (printf "
%s" $author.ID $author.Name) -}}
- {{- end -}}
- {{- end -}}
- {{- range $translator := $translators -}}
- {{- if ne $translator.ID $currentActorID -}}
- {{- $authorElements = append $authorElements (printf "
%s (Übers.)" $translator.ID $translator.Name) -}}
- {{- end -}}
- {{- end -}}
- {{- range $editor := $editors -}}
- {{- if ne $editor.ID $currentActorID -}}
- {{- $authorElements = append $authorElements (printf "
%s (Hrsg.)" $editor.ID $editor.Name) -}}
- {{- end -}}
- {{- end -}}
- {{- range $index, $element := $authorElements -}}
- {{- if gt $index 0 }}, {{ end }}{{ Safe $element }}
- {{- end -}}
- {{- if gt (len $authorElements) 0 -}}{{ $colonPrefix }}{{- end -}}Rezension von:
- {{- else if not $useColonFormat -}}
- {{ Safe $fortsPrefix }}
- {{- $authorElements := slice -}}
- {{- range $author := $authors -}}
- {{- if ne $author.ID $currentActorID -}}
- {{- $authorElements = append $authorElements (printf "
%s" $author.ID $author.Name) -}}
- {{- end -}}
- {{- end -}}
- {{- range $translator := $translators -}}
- {{- if ne $translator.ID $currentActorID -}}
- {{- $authorElements = append $authorElements (printf "
%s (Übers.)" $translator.ID $translator.Name) -}}
- {{- end -}}
- {{- end -}}
- {{- range $editor := $editors -}}
- {{- if ne $editor.ID $currentActorID -}}
- {{- $authorElements = append $authorElements (printf "
%s (Hrsg.)" $editor.ID $editor.Name) -}}
- {{- end -}}
- {{- end -}}
- {{- range $index, $element := $authorElements -}}
- {{- if gt $index 0 }}, {{ end }}{{ Safe $element }}
- {{- end -}}
- {{- if gt (len $authorElements) 0 -}},{{- end -}}
- {{- else -}}
- {{ Safe $fortsPrefix }}Rezension von:
- {{- end -}}
- {{- else -}}
- {{ Safe $fortsPrefix }}Rezension von:
{{- end -}}
-
+ {{- range $translator := $translators -}}
+ {{- if or (not $currentActorID) (ne $translator.ID $currentActorID) -}}
+ {{- $authorElements = append $authorElements (printf "%s (Übers.)" $translator.ID $translator.Name) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- range $editor := $editors -}}
+ {{- if or (not $currentActorID) (ne $editor.ID $currentActorID) -}}
+ {{- $authorElements = append $authorElements (printf "%s (Hrsg.)" $editor.ID $editor.Name) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- range $index, $element := $authorElements -}}
+ {{- if gt $index 0 }}, {{ end }}{{ Safe $element }}
+ {{- end -}}
+ {{- if gt (len $authorElements) 0 -}}, {{- end }} Rezension von: {{- /* inline with space after colon */ -}}
{{ if or (gt (len $workAuthors) 0) (gt (len $workTranslators) 0) (gt (len $workEditors) 0) }}
{{- /* Display work authors */ -}}
{{- range $index, $author := $workAuthors -}}
@@ -280,42 +230,28 @@
>{{ Safe $placeTag }}
{{- else if $categoryFlags.Weltnachrichten -}}
- {{ Safe $fortsPrefix }}Politische Nachrichten aus aller Welt{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}Politische Nachrichten aus aller Welt{{ Safe $placeTag }}
{{- else if $categoryFlags.EinkommendeFremde -}}
{{- if $categoryFlags.Lokalnachrichten -}}
- {{ Safe $fortsPrefix }}Lokale Meldungen über einreisende Fremde
+ {{- Safe $fortsPrefix -}}Lokale Meldungen über einreisende Fremde
{{- else if $categoryFlags.Nachruf -}}
- {{ Safe $fortsPrefix }}Nachruf und Einreiseliste
+ {{- Safe $fortsPrefix -}}Nachruf und Einreiseliste
{{- else -}}
- {{ Safe $fortsPrefix }}Einreiseliste
+ {{- Safe $fortsPrefix -}}Einreiseliste
{{- end -}}{{ Safe $placeTag }}
{{- else if $categoryFlags.Wechselkurse -}}
- {{ Safe $fortsPrefix }}Wechselkurse{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}Wechselkurse{{ Safe $placeTag }}
{{- else if $categoryFlags.Buecher -}}
- {{ Safe $fortsPrefix }}Bücheranzeigen{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}Bücheranzeigen{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
{{- else if $categoryFlags.Lokalanzeigen -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Nachruf }}
- Todesanzeige
- {{ else }}
- Lokalanzeige
- {{ end }}{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}{{- if $categoryFlags.Nachruf -}}Todesanzeige{{- else -}}Lokalanzeige{{- end -}}{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
{{- else if $categoryFlags.Lokalnachrichten -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Lotterie }}
- Lotterienachrichten
- {{ else if $categoryFlags.Nachruf }}
- Nachrufe
- {{ else if $categoryFlags.Theaterkritik }}
- Theaternachrichten
- {{ else if $categoryFlags.Panegyrik }}
- Festlichkeiten
- {{ else }}
- Lokalnachrichten
- {{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}{{- if $categoryFlags.Lotterie -}}Lotterienachrichten{{- else if $categoryFlags.Nachruf -}}Nachrufe{{- else if $categoryFlags.Theaterkritik -}}Theaternachrichten{{- else if $categoryFlags.Panegyrik -}}Festlichkeiten{{- else -}}Lokalnachrichten{{- end -}}{{ Safe $placeTag }}
{{- else if $categoryFlags.Gedicht -}}
{{- $authorFound := false -}}
@@ -324,11 +260,11 @@
{{- $agent := GetAgent $agentref.Ref -}}
{{- if and $agent (gt (len $agent.Names) 0) -}}
{{- if and $useColonFormat (ne $agentref.Ref $currentActorID) -}}
- {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}{{ $colonPrefix }}
+ {{- Safe $fortsPrefix -}}{{ index $agent.Names 0 }}{{ $colonPrefix }}
{{- else if not $useColonFormat -}}
- {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }},
+ {{- Safe $fortsPrefix -}}{{ index $agent.Names 0 }},
{{- else -}}
- {{ Safe $fortsPrefix }}
+ {{- Safe $fortsPrefix -}}
{{- end -}}
{{ if $categoryFlags.Kommentar }}
Gedicht mit Kommentar
@@ -345,7 +281,7 @@
{{- end -}}
{{- end -}}
{{- if not $authorFound -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Kommentar }}
+ {{- Safe $fortsPrefix -}}{{ if $categoryFlags.Kommentar }}
Gedicht mit Kommentar
{{ else if $categoryFlags.Uebersetzung }}
Gedichtübersetzung
@@ -357,7 +293,7 @@
{{- end -}}
{{- else if $categoryFlags.Vorladung -}}
- {{ Safe $fortsPrefix }}Gerichtliche Vorladung{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}Gerichtliche Vorladung{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
{{- else if $categoryFlags.Aufsatz -}}
{{- $authorFound := false -}}
@@ -366,11 +302,11 @@
{{- $agent := GetAgent $agentref.Ref -}}
{{- if and $agent (gt (len $agent.Names) 0) -}}
{{- if and $useColonFormat (ne $agentref.Ref $currentActorID) -}}
- {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}{{ $colonPrefix }}
+ {{- Safe $fortsPrefix -}}{{ index $agent.Names 0 }}{{ $colonPrefix }}
{{- else if not $useColonFormat -}}
- {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }},
+ {{- Safe $fortsPrefix -}}{{ index $agent.Names 0 }},
{{- else -}}
- {{ Safe $fortsPrefix }}
+ {{- Safe $fortsPrefix -}}
{{- end -}}
{{ if $categoryFlags.Replik }}
Erwiderung
@@ -391,7 +327,7 @@
{{- end -}}
{{- end -}}
{{- if not $authorFound -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Replik }}
+ {{- Safe $fortsPrefix -}}{{ if $categoryFlags.Replik }}
Erwiderung
{{ else if $categoryFlags.Uebersetzung }}
Übersetzung
@@ -407,13 +343,7 @@
{{- end -}}
{{- else if $categoryFlags.GelehrteNachrichten -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Theaterkritik }}
- Theaterkritik
- {{ else if $categoryFlags.Kommentar }}
- Gelehrter Kommentar
- {{ else }}
- Gelehrte Nachrichten
- {{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}{{- if $categoryFlags.Theaterkritik -}}Theaterkritik{{- else if $categoryFlags.Kommentar -}}Gelehrter Kommentar{{- else -}}Gelehrte Nachrichten{{- end -}}{{ Safe $placeTag }}
{{- else if $categoryFlags.Theaterkritik -}}
{{- $authorFound := false -}}
@@ -422,11 +352,11 @@
{{- $agent := GetAgent $agentref.Ref -}}
{{- if and $agent (gt (len $agent.Names) 0) -}}
{{- if and $useColonFormat (ne $agentref.Ref $currentActorID) -}}
- {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}{{ $colonPrefix }}
+ {{- Safe $fortsPrefix -}}{{ index $agent.Names 0 }}{{ $colonPrefix }}
{{- else if not $useColonFormat -}}
- {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }},
+ {{- Safe $fortsPrefix -}}{{ index $agent.Names 0 }},
{{- else -}}
- {{ Safe $fortsPrefix }}
+ {{- Safe $fortsPrefix -}}
{{- end -}}
Theaterkritik{{ if $workTitle }}
zu {{ $workTitle }}{{ if $workAuthorName }}
@@ -442,7 +372,7 @@
{{- end -}}
{{- end -}}
{{- if not $authorFound -}}
- {{ Safe $fortsPrefix }}Theaterkritik{{ if $workTitle }}
+ {{- Safe $fortsPrefix -}}Theaterkritik{{ if $workTitle }}
zu {{ $workTitle }}{{ if $workAuthorName }}
von {{ $workAuthorName }}
{{ end }}
@@ -452,23 +382,13 @@
{{- end -}}
{{- else if $categoryFlags.Proklamation -}}
- {{ Safe $fortsPrefix }}Amtliche Proklamation{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}Amtliche Proklamation{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
{{- else if $categoryFlags.Ineigenersache -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Kommentar }}
- {{ if $categoryFlags.Nachtrag }}Ergänzender Kommentar{{ else }}Redaktioneller Kommentar{{ end }}
- {{ else if $categoryFlags.Replik }}
- Redaktionelle Stellungnahme
- {{ else }}
- Anmerkung der Redaktion
- {{ end }}{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
+ {{- Safe $fortsPrefix -}}{{- if $categoryFlags.Kommentar -}}{{- if $categoryFlags.Nachtrag -}}Ergänzender Kommentar{{- else -}}Redaktioneller Kommentar{{- end -}}{{- else if $categoryFlags.Replik -}}Redaktionelle Stellungnahme{{- else -}}Anmerkung der Redaktion{{- end -}}{{ if $title }}: {{ $title }}{{ end }}{{ Safe $placeTag }}
{{- else if $categoryFlags.Brief -}}
- {{ Safe $fortsPrefix }}{{ if $categoryFlags.Nachruf }}
- Kondolenzbrief
- {{ else }}
- Leserbrief
- {{ end }}
+ {{- Safe $fortsPrefix -}}{{- if $categoryFlags.Nachruf -}}Kondolenzbrief{{- else -}}Leserbrief{{- end -}}
{{- $authorFound := false -}}{{- range $agentref := $piece.AgentRefs -}}
{{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}}
{{- $agent := GetAgent $agentref.Ref -}}{{- if and $agent (gt (len $agent.Names) 0) -}}
@@ -487,11 +407,10 @@
{{- $agent := GetAgent $agentref.Ref -}}
{{- if and $agent (gt (len $agent.Names) 0) -}}
{{- if not $obituaryPersonFound -}}
- {{ Safe $fortsPrefix }}Nachruf auf
+ {{- Safe $fortsPrefix -}}Nachruf auf {{ index $agent.Names 0 }}
{{- else -}}
- ,
+ , {{ index $agent.Names 0 }}
{{- end -}}
- {{ index $agent.Names 0 }}
{{- $obituaryPersonFound = true -}}
{{- end -}}
{{- end -}}
@@ -521,7 +440,7 @@
{{- end -}}
{{- /* Show other authors/translators/editors in prefix */ -}}
{{- if and $useColonFormat (or (not $hasCurrentActorAuthor) (not $hasCurrentActorTranslator) (not $hasCurrentActorEditor)) -}}
- {{ Safe $fortsPrefix }}
+ {{- Safe $fortsPrefix -}}
{{- $authorElements := slice -}}
{{- range $author := $authors -}}
{{- if ne $author.ID $currentActorID -}}
@@ -543,7 +462,7 @@
{{- end -}}
{{- if gt (len $authorElements) 0 -}}{{ $colonPrefix }}{{- end -}}
{{- else if not $useColonFormat -}}
- {{ Safe $fortsPrefix }}
+ {{- Safe $fortsPrefix -}}
{{- $authorElements := slice -}}
{{- range $author := $authors -}}
{{- if ne $author.ID $currentActorID -}}
@@ -565,7 +484,7 @@
{{- end -}}
{{- if gt (len $authorElements) 0 -}}
{{- if $title }}: {{ $title }}{{ end }}{{ if $workTitle }}
- {{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }}
+ {{- if or (gt (len $authorElements) 0) (and $title (not $categoryFlags.Uebersetzung)) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }}
{{ $workAuthorName }}, {{ end }}{{ $title }}{{ end }}{{ if $workTitle }}
- {{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }}
+ {{- if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }}
{{ $workAuthorName }}, {{ end }}{{ $title }}{{ end }}{{ if $workTitle }}
+ {{- Safe $fortsPrefix -}}{{ if $title }}{{ $title }}{{ end }}{{ if $workTitle }}
{{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }}
{{ $workAuthorName }}, {{ end }}{{ $title }}{{ end }}{{ if $workTitle }}
+ {{- Safe $fortsPrefix -}}{{ if $title }}{{ $title }}{{ end }}{{ if $workTitle }}
{{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }}
{{ $workAuthorName }}, {{ end }}
-{{- if eq $displayMode "issue" -}}
- {{- /* Only show annotations for issue view and non-continuation pieces */ -}}
- {{- if not $isContinuation -}}
+{{- if or (eq $displayMode "issue") $longForm -}}
+ {{- /* Show annotations for issue view (non-continuation pieces) or long form mode */ -}}
+ {{- if or (and (eq $displayMode "issue") (not $isContinuation)) $longForm -}}
{{- range $annotation := $piece.AnnotationNote.Annotations -}}
-
+
{{ Safe $annotation.HTML }}
{{- end -}}
{{- end -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
diff --git a/views/routes/kategorie/pieces/body.gohtml b/views/routes/kategorie/pieces/body.gohtml
index d37a5d7..5e057a6 100644
--- a/views/routes/kategorie/pieces/body.gohtml
+++ b/views/routes/kategorie/pieces/body.gohtml
@@ -95,8 +95,8 @@
{{- range $groupKey, $groupedItems := $groupedPieces -}}
- {{- /* Use first piece for display text with colon format for places */ -}}
- {{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0) "CurrentActorID" "" "DisplayMode" "place" "ShowPlaceTags" false "UseColonFormat" true "ShowContinuation" false) }}
+ {{- /* Use piece link component for consistent linking */ -}}
+ {{ template "_piece_link" (dict "Piece" (index $groupedItems 0) "DisplayMode" "kategorie" "ShowUnifiedEntry" true "LongForm" false) }}
{{- /* Show all citations from all pieces in this group inline with commas */ -}}
{{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}}
diff --git a/views/routes/ort/components/_place_details_fragment.gohtml b/views/routes/ort/components/_place_details_fragment.gohtml
index be6e5fb..66f7137 100644
--- a/views/routes/ort/components/_place_details_fragment.gohtml
+++ b/views/routes/ort/components/_place_details_fragment.gohtml
@@ -141,8 +141,8 @@
{{- range $groupKey, $groupedItems := $groupedPieces -}}
- {{- /* Use first piece for display text with colon format for places */ -}}
- {{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0) "CurrentActorID" "" "DisplayMode" "place" "ShowPlaceTags" false "UseColonFormat" true "ShowContinuation" false) }}
+ {{- /* Use piece link component for consistent linking with colon format for places */ -}}
+ {{ template "_piece_link" (dict "Piece" (index $groupedItems 0) "DisplayMode" "place" "ShowUnifiedEntry" true "LongForm" false) }}
{{- /* Show all citations from all pieces in this group inline with commas */ -}}
{{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}}
diff --git a/views/routes/ort/components/_place_pieces.gohtml b/views/routes/ort/components/_place_pieces.gohtml
index bc66007..d484810 100644
--- a/views/routes/ort/components/_place_pieces.gohtml
+++ b/views/routes/ort/components/_place_pieces.gohtml
@@ -59,8 +59,8 @@
{{- range $groupKey, $groupedItems := $groupedPieces -}}
- {{- /* Use first piece for display text with colon format for places */ -}}
- {{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0) "CurrentActorID" "" "DisplayMode" "place" "ShowPlaceTags" false "UseColonFormat" true "ShowContinuation" false) }}
+ {{- /* Use piece link component for consistent linking with colon format for places */ -}}
+ {{ template "_piece_link" (dict "Piece" (index $groupedItems 0) "DisplayMode" "place" "ShowUnifiedEntry" true "LongForm" false) }}
{{- /* Show all citations from all pieces in this group inline with commas */ -}}
{{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}}
diff --git a/views/routes/piece/components/_piece_inhaltsverzeichnis.gohtml b/views/routes/piece/components/_piece_inhaltsverzeichnis.gohtml
index 0645a34..1603b87 100644
--- a/views/routes/piece/components/_piece_inhaltsverzeichnis.gohtml
+++ b/views/routes/piece/components/_piece_inhaltsverzeichnis.gohtml
@@ -19,7 +19,7 @@
- {{ template "_unified_piece_entry" (dict "Piece" $firstPiece.PieceByIssue.Piece "DisplayMode" "piece" "ShowPlaceTags" true "UseColonFormat" false "ShowContinuation" true) }}
+ {{ template "_piece_link" (dict "Piece" $firstPiece.PieceByIssue "DisplayMode" "issue" "ShowUnifiedEntry" true "LongForm" false) }}
{{ end }}
@@ -88,7 +88,7 @@
{{ range $otherPiece := $pageEntry.OtherPieces }}
- {{ template "_unified_piece_entry" (dict "Piece" $otherPiece.PieceByIssue.Piece "DisplayMode" "piece" "ShowPlaceTags" true "UseColonFormat" false "ShowContinuation" true) }}
+ {{ template "_piece_link" (dict "Piece" $otherPiece.PieceByIssue "DisplayMode" "issue" "ShowUnifiedEntry" true "LongForm" false) }}
{{ end }}
{{ else }}
diff --git a/views/routes/search/body.gohtml b/views/routes/search/body.gohtml
index 6a7db9b..acffc37 100644
--- a/views/routes/search/body.gohtml
+++ b/views/routes/search/body.gohtml
@@ -90,7 +90,7 @@
-
+
Ausgaben
{{ if $model.Issues.Items }}{{ len $model.Issues.Items }}{{ end }}
@@ -365,8 +365,8 @@
{{- range $groupKey, $groupedItems := $groupedPieces -}}
- {{- /* Use first piece for display text */ -}}
- {{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0) "DisplayMode" "search" "ShowPlaceTags" true "UseColonFormat" false "ShowContinuation" false) }}
+ {{- /* Use first piece for display text with linking */ -}}
+ {{ template "_piece_link" (dict "Piece" (index $groupedItems 0) "DisplayMode" "search" "ShowUnifiedEntry" true "LongForm" true) }}
{{- /* Show all citations from all pieces in this group inline with commas */ -}}
{{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}}