Medium, Modul, Programm und Lizenzartikel nutzen denselben Objektkopf, dieselben Register (Texte, Präsentationsmedien, Einordnung) und denselben visuellen Picker. Präsentationsmedien, Abweichungen und Texte bilden einen Arbeitsstand, den nur „Redaktion speichern“ schreibt; Austausch behält die Position, Sortierung bleibt in der Rolle. Der Wechsel zur Redaktion und zurück erhält offene Eingaben des Ausgangseditors. Entfernt versteckte Mitspeicherungen: Der Didaktikdialog schreibt keine Redaktionstexte mehr, die Website-Freigabe keine offenen Quellenzeilen, Entwurf verwerfen setzt keine offenen Redaktionseingaben zurück. Tests, die alte Orte oder CSS-Zeichenketten prüften, sind auf die neue Bedienung umgestellt; neue Tests decken Arbeitsstand, Austausch, Abbrechen und Rückweg ab. Datenmodell, Fassungen und Rechte bleiben unverändert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
41658d98dd
commit
e1fd59491c
44 files changed
+3917
-2173
No files matched your search
@@ -398,9 +398,21 @@ public function browse(string $query, string $kind, string $dimension, int $exce
|
||||
*
|
||||
* @return array{items: list<array<string, string|null>>, more: bool}
|
||||
*/
|
||||
public function presentationBrowse(string $query): array
|
||||
public function presentationBrowse(string $query, string $kind = 'alle'): array
|
||||
{
|
||||
$catalog = $this->browse($query, 'alle', '', 0, elementsOnly: true);
|
||||
$catalog = $this->browse($query, $kind, '', 0, elementsOnly: true);
|
||||
$outputs = match ($kind) {
|
||||
'bild' => ['bild'],
|
||||
'film' => ['film'],
|
||||
'audio' => ['audio'],
|
||||
'dokument' => [],
|
||||
default => ['bild', 'film', 'audio'],
|
||||
};
|
||||
// Reine Texte sind Lehrinhalt oder Beschreibung, keine Präsentationsmedien.
|
||||
$catalog['items'] = array_values(array_filter(
|
||||
$catalog['items'],
|
||||
fn (array $item): bool => ($item['output'] ?? '') !== 'text',
|
||||
));
|
||||
$seen = [];
|
||||
|
||||
foreach ($catalog['items'] as $item) {
|
||||
@@ -413,7 +425,7 @@ public function presentationBrowse(string $query): array
|
||||
$like = '%'.str_replace(['%', '_'], ['', ''], $query).'%';
|
||||
$elements = ContentElement::query()
|
||||
->with('editorialContentKind')
|
||||
->whereIn('output_class', ['bild', 'film', 'audio'])
|
||||
->whereIn('output_class', $outputs)
|
||||
->whereNull('archived_at')
|
||||
->whereDoesntHave('versions')
|
||||
->where(function ($builder): void {
|
||||
@@ -558,6 +570,7 @@ private function constrainElement($builder, string $query, string $like, string
|
||||
'film' => ['film'],
|
||||
'text' => ['text'],
|
||||
'bild' => ['bild'],
|
||||
'audio' => ['audio'],
|
||||
'dokument' => ['pdf', 'document'],
|
||||
default => null,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user