Führe PDF-Vorlagen für Dokumente ein: Titelseite, grafischer Kopf und Fuß, Angaben je Fassung (ADR-51, Nachtrag)
Deploy Test / test (push) Successful in 3m21s
Deploy Test / deploy (push) Successful in 27s

Eine Vorlage ist reines Layout (Titelseite mit allein stehendem Titel, Kopf- und Fußgrafik aus dem Medienbestand,
Herausgeber und Standardvermerk) und wird dem Dokument zugeordnet. Untertitel, Ausgabe, Veröffentlichungsdatum und
Copyright-Vermerk gehören zur Dokumentfassung (document_meta). Ohne Vorlage bleibt das PDF unverändert.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-24 14:28:34 +01:00
1 parent 81037b9868
commit 765b8e779e
31 files changed
+1272 -33

No files matched your search

+7
View File
@@ -25,6 +25,7 @@ class Composition extends Model
'editorial_content_kind_id',
'archived_at',
'working_draft',
'pdf_template_id',
];
protected function casts(): array
@@ -46,6 +47,12 @@ public function editorialContentKind(): BelongsTo
return $this->belongsTo(EditorialContentKind::class);
}
/** Die PDF-Vorlage eines Dokuments; leer = bisheriges Layout (ADR-51). */
public function pdfTemplate(): BelongsTo
{
return $this->belongsTo(PdfTemplate::class);
}
public function versions(): HasMany
{
return $this->hasMany(CompositionVersion::class);