Ordne Übungsabschnitte im Medienbestand ein und filtere Materialarten mehrfach
- Medium anlegen: Pflichtfeld Fachliche Materialart (serverseitig geprüft) - Materialart Übungsabschnitt (automatisch) für Abschnitte im Übungseditor und aus Shinkan, mit Verweis auf die Übung - Medienmanager: Checkboxen statt Dropdown, Start ohne Übungsabschnitte, persönlicher Standard je Konto - Zuordnung des Bestands nur bei belegter Herkunft; Übungsabschnitte nie öffentlich Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
99122ddfee
commit
ad581cb545
29 files changed
+1321
-25
No files matched your search
@@ -15,6 +15,7 @@
|
||||
use App\Domain\Catalog\DomainRuleException;
|
||||
use App\Domain\Catalog\EditorialVocabulary;
|
||||
use App\Domain\Catalog\EditorialWorkingDraft;
|
||||
use App\Domain\Catalog\ExerciseSections;
|
||||
use App\Domain\Catalog\ForeignCompositions;
|
||||
use App\Domain\Catalog\FormattedText;
|
||||
use App\Domain\Catalog\IdentityDimension;
|
||||
@@ -1278,6 +1279,11 @@ public function addText(): void
|
||||
$service = app(ContentService::class);
|
||||
$element = $service->createElement('text', 'text', $title);
|
||||
$version = $service->draftElementVersion($element, $body);
|
||||
|
||||
// Ein Abschnitt, der im Übungseditor entsteht, gehört zu dieser Übung (Materialart „Übungsabschnitt“).
|
||||
if ($this->isExercise()) {
|
||||
app(ExerciseSections::class)->mark($element, $this->getRecord());
|
||||
}
|
||||
} catch (DomainRuleException $exception) {
|
||||
$this->feedback = $exception->getMessage();
|
||||
|
||||
|
||||
Reference in new issue
Block a user