Zeige von Medien keine Kurzbeschreibung und begrenze die Kartenbildhöhe.
CI Feature / test (push) Successful in 43s
Deploy Test / test (push) Successful in 40s
Deploy Test / deploy (push) Successful in 34s

- Medienkarten nennen öffentlich nur Titel, Art und Programmzugehörigkeit; die Kurzbeschreibung eines
  Elements ist heute nirgends öffentlich (offene Entscheidung, ADR-39).
- PublicMaterialReader je Anfrage einmal (scoped), nicht je Karte.
- Kartenbild höchstens min(70vh, 640 px), damit breite gestapelte Karten nicht übermäßig hoch werden.
- Bericht mit Prüfungen, Grenzen und dem offenen Bedarf einer kaufbaren Angebotskarte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-18 13:58:10 +01:00
1 parent 39ab25d8c6
commit bc1f84ac89
9 files changed
+114 -6

No files matched your search

@@ -40,6 +40,15 @@ public function schematic(): array
return [[2, 2, 56, 32, 'line'], [5, 5, 22, 26, 'image'], [7, 7, 8, 3, 'accent'], [31, 8, 22, 4, 'ink'], [31, 15, 22, 5, 'line'], [31, 25, 14, 5, 'accent']];
}
public function settings(): array
{
// Ohne Kurzbeschreibung (nicht öffentlich, siehe PublicMaterialReader) gibt es nichts ein- oder auszublenden.
$settings = parent::settings();
unset($settings['show_summary']);
return $settings;
}
protected function refKey(): string
{
return 'element';
@@ -236,7 +236,7 @@ public function resolve(array $widget, RenderContext $context): array
'fit' => $option('fit', 'cover'),
'headingTag' => $option('heading_level', 'h3'),
'show' => [
'summary' => $option('show_summary', 'yes') === 'yes',
'summary' => ! array_key_exists('show_summary', $this->settings()) || $option('show_summary', 'yes') === 'yes',
'kind' => ! array_key_exists('show_kind', $this->settings()) || $option('show_kind', 'yes') === 'yes',
'meta' => $option('show_meta', 'yes') === 'yes',
'action' => $option('show_action', 'yes') === 'yes',