Lasse Bilder im Text den Rechten des Textes folgen, gib Bild- und PDF-Adressen ohne Ablauf aus und belege die Abnahme
Deploy Test / test (push) Successful in 3m0s
Deploy Test / deploy (push) Successful in 25s

- Bilder im Text folgen dem Recht am Text; eine eigene Fähigkeit für Bilder ist nicht nötig (ADR-51, fachliche Entscheidung zur Bestätigung).
- Bildadresse und PDF-Adresse des Dokuments laufen nicht ab; jeder Abruf entscheidet neu.
- Die Fähigkeit text:laden ist im Rechteprofil wählbar.
- Dokumentkapitel in der Medienansicht verweisen auf ihr Dokument; die Pille nennt jetzt auch Dokumentkapitel (MedienFilterDialogTest bewusst angepasst).
- Abnahmeprotokoll mit Bildern unter docs/ux/verwaltung/abnahme/dokumente.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-24 12:55:21 +01:00
1 parent 8a44c5886b
commit 81037b9868
56 files changed
+222 -95

No files matched your search

+2 -2
View File
@@ -114,7 +114,7 @@ public function build(User $user, LicenseArticle $article, ArticleRelease $relea
{
$exercise->loadMissing(['composition', 'variants', 'members.variant', 'members.contentElementVersion.element']);
$library = app(LibraryCatalog::class);
$images = app(EmbeddedImages::class)->forView($user, $article, $release);
$embedded = app(EmbeddedImages::class);
$offered = $exercise->variants->filter(fn (CompositionVersionVariant $variant): bool => $selection === null || in_array($variant->key, $selection, true))->values();
$chosen = $offered->firstWhere('key', $variantKey) ?? $offered->first();
$entries = [];
@@ -147,7 +147,7 @@ public function build(User $user, LicenseArticle $article, ArticleRelease $relea
'download_grant' => $download?->grant,
'state' => $decision->allowed ? 'ok' : ($version->status === ContentVersionStatus::Gesperrt ? 'gesperrt' : 'nicht_lizenziert'),
'blocks' => $decision->allowed && $class === 'text' ? FormattedText::blocks($version->body) : null,
'html' => $decision->allowed && $class === 'text' ? FormattedText::html($version->body, $images) : null,
'html' => $decision->allowed && $class === 'text' ? FormattedText::html($version->body, $embedded->forView($user, $article, $release, $version)) : null,
];
}