Verfeinere Dokumente nach der Abnahme im Browser: Bilder inline, Fassungsansicht, Texte und Dokumentation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e2fd872c2
commit
8a44c5886b
8 files changed
+127
-14
No files matched your search
@@ -799,6 +799,11 @@ public function releaseFollowUp(): string
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($this->isDocument()) {
|
||||
return 'Module und Programme binden eine Dokumentfassung über „Hinzufügen“ ein; ein Stand schreibt sie dann fest. Frühere Fassungen bleiben dort, wo sie eingebunden sind, unverändert.'
|
||||
.(is_array($this->getRecord()->working_draft) && $this->getRecord()->working_draft !== [] ? ' Es gibt einen gespeicherten Entwurf neben der bereitgestellten Fassung.' : ' Es gibt keinen offenen Entwurf.');
|
||||
}
|
||||
|
||||
/** @var Composition $composition */
|
||||
$composition = $this->getRecord();
|
||||
$releases = app(CompositionDisplayRelease::class);
|
||||
@@ -1787,6 +1792,11 @@ public function presentationChips(): array
|
||||
{
|
||||
/** @var Composition $composition */
|
||||
$composition = $this->getRecord();
|
||||
|
||||
// Ein Dokument erscheint nie als eigene Karte in der Bibliothek; es wird in Module und Programme eingebunden.
|
||||
if ($this->isDocument()) {
|
||||
return [];
|
||||
}
|
||||
$offered = in_array($composition->id, app(EditorialCatalog::class)->offeredCompositionIds(), true);
|
||||
|
||||
return app(EditorialCatalog::class)->statusChips($composition, $offered);
|
||||
|
||||
Reference in new issue
Block a user