Ein Baustein (FormattedText) bereinigt, bringt Werte in die kanonische Form und wandelt Klartext des Altbestands; RichField ist der eine Editor, ManagesRichFields verbindet ihn mit den Arbeitsplätzen. Formatiert sind Texte der Übungen und Textbausteine, Kurzbeschreibung und Beschreibung, Lernziel und Ausstattung. Mitgliederansicht und PDF zeigen fett, kursiv, Listen, Überschrift, Zitat und Link (PDF: schräge Schnitte, nur wenn gebraucht). Das Livewire-Limit für verschachtelte Pfade steigt auf 30, weil Aufzählungen sonst abgelehnt werden. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
72 lines
4.0 KiB
PHP
72 lines
4.0 KiB
PHP
@extends('layouts.member')
|
|
|
|
@section('title', $title)
|
|
@section('nav', 'bibliothek')
|
|
|
|
{{-- Einzelner Lizenzartikel (Medium oder Material ohne Programmkontext). Aktionen nur mit eigener Entscheidung je Aktion. --}}
|
|
@section('content')
|
|
<p class="mb-crumb"><a href="{{ route('member.library') }}"><x-heroicon-o-arrow-left aria-hidden="true" /> Zur Bibliothek</a></p>
|
|
<header class="mb-content-head">
|
|
@if ($kind)
|
|
<x-member.type :type="($entries[0]['class'] ?? null) === 'film' ? 'film' : 'material'" :label="$kind" />
|
|
@endif
|
|
<h1 class="mb-title">{{ $title }}</h1>
|
|
@if ($release?->classification_note)
|
|
<p class="mb-lede">{{ $release->classification_note }}</p>
|
|
@endif
|
|
</header>
|
|
@if ($entries === [])
|
|
<div class="empty mb-empty">
|
|
<h2>Kein veröffentlichter Stand</h2>
|
|
<p>Für diesen Eintrag liegt noch kein veröffentlichter Stand vor.</p>
|
|
</div>
|
|
@else
|
|
<ol class="mb-outline">
|
|
@foreach ($entries as $entry)
|
|
<li class="mb-outline-item">
|
|
<div class="mb-outline-main">
|
|
<h2 class="mb-outline-title">{{ $entry['title'] === $entry['role'] ? $entry['title'] : $entry['role'].': '.$entry['title'] }}</h2>
|
|
@if (filled($entry['version']->element->description))
|
|
<p class="mb-outline-text">{{ $entry['version']->element->description }}</p>
|
|
@endif
|
|
</div>
|
|
@if ($entry['playable'])
|
|
<div class="mb-player player">
|
|
@include('content.video', [
|
|
'playback' => ['mode' => $entry['playback'] ?? 'file', 'url' => $entry['url']],
|
|
'poster' => \App\Domain\Media\ThumbnailRef::url('member.thumbnail', 'element', $entry['version']->element->id, $entry['version']->element->thumbnail_path),
|
|
])
|
|
</div>
|
|
<div class="mb-actions">
|
|
<button class="button button-secondary" type="button" data-fullscreen><x-heroicon-o-arrow-top-right-on-square aria-hidden="true" /> Vollbild</button>
|
|
@if ($entry['download_url'])
|
|
<a class="button button-secondary" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
|
|
@endif
|
|
</div>
|
|
@elseif ($entry['allowed'] && $entry['url'])
|
|
<div class="mb-actions">
|
|
<a class="button" href="{{ $entry['url'] }}"><x-heroicon-o-eye aria-hidden="true" /> Ansehen</a>
|
|
@if ($entry['download_url'])
|
|
<a class="button button-secondary" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
|
|
@endif
|
|
</div>
|
|
@elseif ($entry['download_url'])
|
|
{{-- Lizenz nur zum Herunterladen (kein Streamen oder Ansehen): der Download bleibt erreichbar. --}}
|
|
<div class="mb-actions">
|
|
<a class="button" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
|
|
</div>
|
|
@else
|
|
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
|
@endif
|
|
@if (filled($entry['version']->body))
|
|
<article class="mb-prose">
|
|
{!! \App\Domain\Catalog\FormattedText::display($entry['version']->body) !!}
|
|
</article>
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ol>
|
|
@endif
|
|
<p class="mb-muted">Artikel {{ $article->code }}</p>
|
|
@endsection
|