Ein Dokument ist eine Komposition der Art document, ein Kapitel ein Text mit der automatischen Materialart Dokumentkapitel; die Ebene steht in der Rolle. Der Aufbaueditor bekommt den Kapitelarbeitsplatz (Übersicht, Ordnen als Block, offene Eingaben bleiben beim Wechsel erhalten, Speichern als Entwurf, Bereitstellen als Dokumentfassung). Module und Programme binden eine Fassung über den gemeinsamen Picker ein. Mitglieder lesen sie mit anklickbarem Inhaltsverzeichnis und laden ein PDF mit Inhaltsverzeichnis, Seitenzahlen, Tabellen und Bildern. Ein älterer Stand liefert die gebundene Fassung weiter. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
68 lines
3.7 KiB
PHP
68 lines
3.7 KiB
PHP
{{--
|
|
Geordnete Struktur eines Programms oder Moduls. Jede Einbindung steht an ihrer Stelle, auch wenn dasselbe Medium in
|
|
einem anderen Programm vorkommt. Verschachtelung bleibt erhalten (Module in Programmen, Medien in Modulen).
|
|
Aktionen: Film → Kontextseite (Player, Beschreibung, Begleitmaterial); Dokument → Ansehen; Laden nur mit eigenem Recht.
|
|
Gesperrte Teile zeigen den Grund, aber keine Datei und keine Adresse.
|
|
--}}
|
|
<ol class="mb-outline">
|
|
@foreach ($nodes as $node)
|
|
@php
|
|
$isFilm = $node['output_class'] === 'film';
|
|
$isAudio = $node['output_class'] === 'audio';
|
|
$isGroup = $node['children'] !== [] || $node['composition_id'] !== null;
|
|
$type = $isGroup ? 'modul' : ($isFilm ? 'film' : 'material');
|
|
@endphp
|
|
<li class="mb-outline-item mb-outline-{{ $type }}">
|
|
<div class="mb-outline-row">
|
|
@if (! $isGroup && filled($node['poster_url']))
|
|
<img class="mb-outline-thumb" src="{{ $node['poster_url'] }}" alt="" loading="lazy">
|
|
@endif
|
|
<div class="mb-outline-main">
|
|
<p class="mb-outline-meta">
|
|
<x-member.type :type="$type" :label="$node['kind'] ?: $node['role']" />
|
|
@if ($node['role'] !== ($node['kind'] ?: $node['role']))
|
|
<span class="mb-outline-role">Rolle: {{ $node['role'] }}</span>
|
|
@endif
|
|
</p>
|
|
<h3 class="mb-outline-title">
|
|
@if ($isGroup && $node['program_url'])
|
|
<a href="{{ $node['program_url'] }}">{{ $node['title'] }}</a>
|
|
@elseif ($isFilm && $node['view_url'] && $node['content_url'])
|
|
<a href="{{ $node['content_url'] }}">{{ $node['title'] }}</a>
|
|
@else
|
|
{{ $node['title'] }}
|
|
@endif
|
|
</h3>
|
|
@if (filled($node['summary']))
|
|
<p class="mb-outline-text">{{ $node['summary'] }}</p>
|
|
@endif
|
|
</div>
|
|
@if (! $isGroup)
|
|
<div class="mb-outline-actions">
|
|
@if ($node['view_url'])
|
|
@if ($isFilm || $isAudio)
|
|
<a class="button" href="{{ $node['content_url'] }}"><x-heroicon-o-play aria-hidden="true" /> {{ $isAudio ? 'Anhören' : 'Film ansehen' }}</a>
|
|
@else
|
|
<a class="button button-secondary" href="{{ $node['view_url'] }}"><x-heroicon-o-eye aria-hidden="true" /> Ansehen</a>
|
|
@endif
|
|
@if ($node['download_url'])
|
|
<a class="button button-secondary" href="{{ $node['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Laden</a>
|
|
@endif
|
|
@else
|
|
<x-member.status state="nicht enthalten" />
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</div>
|
|
@if (! $isGroup && ! $node['view_url'])
|
|
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
|
@elseif ($isGroup && $node['children'] === [] && empty($node['document']))
|
|
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
|
@endif
|
|
@if ($node['children'] !== [])
|
|
@include('member.partials.structure', ['nodes' => $node['children']])
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ol>
|