Ergänze die gemeinsame redaktionelle Basis an den Fachobjekten.
CI Feature / test (push) Successful in 54s
Deploy Test / test (push) Successful in 47s
Deploy Test / deploy (push) Successful in 24s

Texte, Materialart und Präsentationsmedien bleiben am Medium, Modul, Programm und Lizenzartikel und werden von Verwaltung und Karten aus derselben Quelle gelesen, ohne Fassung oder Lizenz zu verändern.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-19 07:54:36 +01:00
1 parent c4be6ed8dc
commit f29ea58fd5
40 files changed
+2311 -20

No files matched your search

@@ -23,6 +23,7 @@
use App\Domain\Cms\Catalog\PublicMaterialReader;
use App\Filament\Resources\ContentElements\ContentElementResource;
use App\Filament\Support\EditorialCatalog;
use App\Filament\Support\ManagesEditorialSurface;
use App\Filament\Support\MediumForm;
use App\Http\Controllers\ContentPreviewController;
use App\Jobs\DeriveCompositionFrame;
@@ -41,6 +42,7 @@
abstract class EditComposition extends EditRecord
{
use ManagesEditorialSurface;
use WithFileUploads;
protected string $view = 'filament.editorial.edit';
@@ -49,8 +51,12 @@ abstract class EditComposition extends EditRecord
public string $displayTitle = '';
public string $teaser = '';
public string $summary = '';
public string $searchTerms = '';
public string $description = '';
public string $learningGoal = '';
@@ -84,6 +90,8 @@ abstract class EditComposition extends EditRecord
public bool $pickerOpen = false;
public string $pickerPurpose = 'aufbau';
public string $pickerQuery = '';
public string $pickerKind = 'alle';
@@ -315,11 +323,51 @@ public function openPicker(): void
$this->closePart();
}
$this->pickerPurpose = 'aufbau';
$this->pickerOpen = true;
$this->textOpen = false;
$this->pickerSelected = '';
}
public function openPresentationPicker(): void
{
$this->guardEditorial();
if ($this->partOpen) {
$this->closePart();
}
$this->pickerPurpose = 'praesentation';
$this->pickerOpen = true;
$this->moduleOpen = false;
$this->textOpen = false;
$this->pickerSelected = '';
}
public function assignFromPicker(string $target): void
{
$this->guardEditorial();
if (preg_match('/^element:(\d+)$/', $target, $match) !== 1) {
$this->deskFeedback = 'Präsentationsmedien sind Medien aus dem Bestand. Ein Modul bleibt Bestandteil des Aufbaus.';
return;
}
$version = ContentElementVersion::query()->find((int) $match[1]);
if (! $version instanceof ContentElementVersion) {
$this->deskFeedback = 'Dieses Medium ist nicht verfügbar.';
return;
}
$this->rememberAssignment((int) $version->content_element_id, $target);
$this->pickerOpen = false;
$this->pickerPurpose = 'aufbau';
$this->pickerSelected = '';
}
public function closePicker(): void
{
$this->pickerOpen = false;
@@ -1003,7 +1051,9 @@ public function openModule(): void
$this->moduleSnapshot = [
'designation' => $this->designation,
'displayTitle' => $this->displayTitle,
'teaser' => $this->teaser,
'summary' => $this->summary,
'searchTerms' => $this->searchTerms,
'description' => $this->description,
'learningGoal' => $this->learningGoal,
'durationMinutes' => $this->durationMinutes,
@@ -1574,7 +1624,9 @@ protected function loadEditor(): void
$version = $this->currentReadyVersion();
$this->designation = $composition->designation;
$this->displayTitle = (string) ($composition->display_title ?? '');
$this->teaser = (string) ($composition->teaser ?? '');
$this->summary = (string) ($composition->summary ?? '');
$this->searchTerms = (string) ($composition->search_terms ?? '');
$this->description = (string) ($composition->description ?? '');
$this->thumbnailPath = $composition->thumbnail_path;
$this->thumbnailAlt = (string) ($composition->thumbnail_alt ?? '');
@@ -1829,7 +1881,9 @@ protected function persistPresentation(): bool
$record->designation = $name;
app(IdentityProfile::class)->fill($record, [
'display_title' => $this->displayTitle,
'teaser' => $this->teaser,
'summary' => $this->summary,
'search_terms' => $this->searchTerms,
'description' => $this->description,
'thumbnail_alt' => $this->thumbnailAlt,
], $this->actor());