mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-31 01:55:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {{ $model := .model }}
 | |
| <div>
 | |
| 	<a href="/{{- $model.Year -}}">
 | |
| 		Zurück zum Jahr
 | |
| 		{{ $model.Year }}
 | |
| 	</a>
 | |
| </div>
 | |
| {{ $page := 0 }}
 | |
| {{ range  $piece := .model.Pieces.IssuePieces }}
 | |
| 	<div>
 | |
| 		{{ if (ne $page $piece.Von) }}
 | |
| 			{{ $page = $piece.Von }}
 | |
| 			<div>S. {{ $page }}</div>
 | |
| 		{{ end }}
 | |
| 
 | |
| 		Eintrag!
 | |
| 		{{ if gt (len $piece.IssueRefs) 1 }}
 | |
| 			{{ len $piece.IssueRefs }} Teile
 | |
| 			<ol>
 | |
| 				{{ range $issue := $piece.IssueRefs }}
 | |
| 					<li>
 | |
| 						<a
 | |
| 							href="/{{- $issue.Datum -}}/{{- $issue.Nr -}}"
 | |
| 							{{ if and (eq $issue.Nr $model.No) (eq $issue.Datum $model.Year) }}
 | |
| 								aria-current="page"
 | |
| 							{{ end }}>
 | |
| 							{{- $issue.Datum }} Nr.
 | |
| 							{{ $issue.Nr -}}
 | |
| 						</a>
 | |
| 					</li>
 | |
| 				{{ end }}
 | |
| 			</ol>
 | |
| 		{{ end }}
 | |
| 
 | |
| 		{{ range $agentref := $piece.AgentRefs }}
 | |
| 			{{ $agent := GetAgent $agentref.Ref }}
 | |
| 			{{ if gt (len $agent.Names) 0 }}
 | |
| 				{{ index $agent.Names 0 }}
 | |
| 			{{ end }}
 | |
| 			{{ if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) }}
 | |
| 				<span>Author</span>
 | |
| 			{{ end }}
 | |
| 		{{ end }}
 | |
| 
 | |
| 		{{ range $annotation := $piece.AnnotationNote.Annotations }}
 | |
| 			<div>
 | |
| 				{{ $annotation.Inner.InnerXML }}
 | |
| 			</div>
 | |
| 		{{ end }}
 | |
| 
 | |
| 	</div>
 | |
| {{ end }}
 | 
