diff --git a/classes/core/PKPApplication.php b/classes/core/PKPApplication.php index f949e54d3dc..525627d2f2f 100644 --- a/classes/core/PKPApplication.php +++ b/classes/core/PKPApplication.php @@ -102,6 +102,11 @@ public function getReviewStages(): array; * Define if the application has customizable reviewer recommendation functionality */ public function hasCustomizableReviewerRecommendation(): bool; + + /** + * Define if the application has continuous publication functionality + */ + public function hasContinuousPublication(): bool; } abstract class PKPApplication implements iPKPApplicationInfoProvider diff --git a/locale/en/manager.po b/locale/en/manager.po index 8013a6896d0..9eed3627d64 100644 --- a/locale/en/manager.po +++ b/locale/en/manager.po @@ -1080,6 +1080,9 @@ msgstr "The following appears on the submissions page whe msgid "manager.setup.disableSubmissions" msgstr "Disable Submissions" +msgid "manager.setup.continuousPublication" +msgstr "Continuous Publication" + msgid "manager.setup.checklist" msgstr "Checklist" diff --git a/pages/dashboard/PKPDashboardHandler.php b/pages/dashboard/PKPDashboardHandler.php index 2278942c874..4335dbacd4d 100644 --- a/pages/dashboard/PKPDashboardHandler.php +++ b/pages/dashboard/PKPDashboardHandler.php @@ -164,10 +164,16 @@ public function index($args, $request) 'filtersForm' => $filtersForm->getConfig(), 'views' => $this->getViews(), 'contextMinReviewsPerSubmission' => $context->getData('numReviewsPerSubmission') ?: 0, + 'issueCount' => Repo::issue() + ->getCollector() + ->filterByContextIds([$context->getId()]) + ->getQueryBuilder() + ->count(), 'publicationSettings' => [ 'supportsCitations' => !!$context->getData('citations'), 'identifiersEnabled' => $identifiersEnabled, 'isReviewerSuggestionEnabled' => (bool)$context->getData('reviewerSuggestionEnabled'), + 'isContinuousPublicationEnabled' => (bool)$context->getData('continuousPublication'), ], 'componentForms' => [ 'contributorForm' => $contributorForm->getConfig(),