Skip to content

Commit

Permalink
Prepare journal to display assessment terms for version-of-record art…
Browse files Browse the repository at this point in the history
…icles teasers

elifesciences/issues#9034
  • Loading branch information
giorgiosironi committed Dec 18, 2024
1 parent 7c44046 commit fbc7abe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/ViewModel/Converter/ArticleTeaserConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function convert($object, string $viewModel = null, array $context = [])
$status = $statusInfo['status'];
$statusColor = $statusInfo['statusColor'];

$teaserTermsBuilder = new TeaserTermsBuilder();
return ViewModel\Teaser::main(
$object->getFullTitle(),
$this->urlGenerator->generate('article', [$object]),
Expand All @@ -60,7 +61,8 @@ public function convert($object, string $viewModel = null, array $context = [])
$this->simpleDate($object, $context),
$status,
$statusColor
)
),
$object->getElifeAssessment() ? $teaserTermsBuilder->build($object->getElifeAssessment()) : null
)
);
}
Expand Down

0 comments on commit fbc7abe

Please sign in to comment.