From 5bf27e215d6509524ff1d5cc979521af8cd31fa6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 3 May 2026 20:12:58 +0200 Subject: [PATCH] Lehrplan: Klima 2D + 3D teilen Lehrplan + Glossar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - kompetenz_modules: klima-3d bekommt klimawandel primaer (Spiegelung von klima) - Neuer Block 5b im Seed: glossar_modules wird via INSERT IGNORE gespiegelt (klima → klima-3d, 46 Begriffe). Idempotent. - Auf modul-klima-3d sichtbar: 22 Anker, 1 Kompetenz, 46 Glossar-Chips — identisch zu modul-klima DB-Bilanz: kompetenz_modules 22 (vorher 21). Auftrag von Thomas (2026-05-03). Co-Authored-By: Claude Opus 4.7 (1M context) --- App/php/seed_content_architecture.php | 21 +++++++++++++++++++++ App/sims/_inbox/content/_status.md | 14 ++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/App/php/seed_content_architecture.php b/App/php/seed_content_architecture.php index a1136e5..bf42cd8 100644 --- a/App/php/seed_content_architecture.php +++ b/App/php/seed_content_architecture.php @@ -333,6 +333,8 @@ foreach ($db->query("SELECT id, key_slug FROM kompetenzen") as $r) { $kompetenzModules = [ // slug, module, level, strength ['klimawandel', 'klima', 0, 'primaer'], + // Klima 2D + 3D teilen sich Lehrplan und Glossar (Thomas, 2026-05-03) + ['klimawandel', 'klima-3d', 0, 'primaer'], ['klimawandel', 'energiemix', 0, 'sekundaer'], ['klimawandel', 'lieferketten', 0, 'sekundaer'], ['naturgefahren-hochwasser', 'fluss', 0, 'primaer'], @@ -1138,6 +1140,25 @@ foreach ($anchors as $a) { echo " lehrplan_anchors ... " . count($anchors) . " Zeilen (inkl. URLs + Typ)\n"; +// ------------------------------------------------------------------ +// 5b. Glossar-Spiegelung klima -> klima-3d +// Beide Varianten teilen identische Begriffe (Thomas, 2026-05-03). +// Glossar-Tabelle wird sonst von der Glossar-Instanz gepflegt. +// Nur Spiegelung der module_id-Verknuepfung; INSERT IGNORE haelt +// die Operation idempotent. +// ------------------------------------------------------------------ +try { + $glossarSpiegel = $db->exec(" + INSERT IGNORE INTO glossar_modules (glossar_id, module_id) + SELECT glossar_id, 'klima-3d' FROM glossar_modules + WHERE module_id = 'klima' + "); + echo " glossar_modules ... " . (int)$glossarSpiegel . " Begriffe von klima nach klima-3d gespiegelt\n"; +} catch (Throwable $e) { + echo " glossar_modules ... Hinweis: " . $e->getMessage() . "\n"; +} + + // ------------------------------------------------------------------ // 6. Bilanz // ------------------------------------------------------------------ diff --git a/App/sims/_inbox/content/_status.md b/App/sims/_inbox/content/_status.md index 5a695c8..ad94fca 100644 --- a/App/sims/_inbox/content/_status.md +++ b/App/sims/_inbox/content/_status.md @@ -1,9 +1,19 @@ --- instanz: lehrplan -zuletzt_aktualisiert: 2026-04-29 (Speicher-Snapshot) -session_id: lehrplan-apr24-29 +zuletzt_aktualisiert: 2026-05-03 +session_id: lehrplan-apr24-may03 --- +## Update 2026-05-03 + +- klima-3d teilt jetzt Lehrplan + Glossar mit klima (Thomas-Auftrag): + kompetenz_modules-Eintrag gespiegelt + glossar_modules per + INSERT IGNORE 46 Begriffe gespiegelt +- Module-Inventar: 14 Module (drei neue durch Atlas/Modul-Instanzen + hinzugekommen: farmer beta, sonnensystem beta, busfahrt geplant) + + + ## Aktueller Stand am Speicher-Snapshot Alle bisherigen Aufträge erledigt und committet. Keine offenen Inbox-