{{-- Gemeinsamer visueller Picker. Kontexte: aufbau (Bestandteil mit Fassung), praesentation (mehrere Medien), austausch (ein Medium ersetzt eine Zuordnung). --}} @php $zweck = $this->pickerPurpose; $mehrfach = $this->pickerAllowsMany(); $ergebnis = $this->pickerResult(); $detail = $this->pickerDetail(); $markiert = $this->pickerMarked; $ersetzt = $this->replacingKey !== null ? $this->pickerReplacing() : null; $rollen = $this->presentationRoleOptions(); $bindbar = in_array($zweck, ['praesentation', 'austausch'], true) && in_array($this->presentationRole, \App\Domain\Catalog\PresentationRole::BOUND_ROLES, true); $symbol = fn (?string $output): string => match ($output) { 'film' => 'film', 'bild' => 'bild', 'audio' => 'audio', default => 'dokument' }; $kopf = $this->pickerKontext(); $artLabel = $zweck === 'aufbau' ? 'Inhaltstyp' : 'Medienart'; $materialarten = $this->pickerMaterialarten(); @endphp