Zeige Nutzbarkeit, Didaktik und oeffentliche Programmfassung
Deploy Test / test (push) Successful in 17s
Deploy Test / deploy (push) Successful in 22s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 08:33:19 +01:00
1 parent 5e763d15ec
commit c99a957e6f
17 files changed
+307 -6

No files matched your search

@@ -5,6 +5,7 @@
use App\Domain\Catalog\Composition;
use App\Domain\Catalog\CompositionDisplayRelease;
use App\Domain\Catalog\CompositionKind;
use App\Domain\Catalog\CompositionMember;
use App\Domain\Catalog\CompositionVersion;
use App\Domain\Catalog\ContentElementVersion;
use App\Domain\Catalog\ContentService;
@@ -56,6 +57,20 @@ public function form(Schema $schema): Schema
->options(fn (): array => EditorialContentKind::selectOptions())
->nullable()
->helperText('Optional für Bibliothek und Website. Ändert weder die technische Art noch eine Fassung.'),
Placeholder::make('usage')->label('Verwendung')->content(function (): HtmlString {
$version = $this->currentReadyVersion();
if ($version === null) {
return new HtmlString('Noch keine Fassung.');
}
$lines = CompositionMember::query()
->where('nested_composition_version_id', $version->id)
->with('compositionVersion.composition')
->get()
->map(fn (CompositionMember $member): string => ($member->compositionVersion->composition->designation ?? 'Programm').' · '.$member->role)
->all();
return new HtmlString($lines === [] ? 'In keiner anderen Fassung enthalten.' : e(implode(' · ', $lines)));
}),
Placeholder::make('history')->label('Aktuelle Fassung')->content(function (): HtmlString {
/** @var Composition $composition */
$composition = $this->getRecord();