diff --git a/classes/orcid/actions/SendSubmissionToOrcid.php b/classes/orcid/actions/SendSubmissionToOrcid.php index ce658eca58..70d6ed0adb 100644 --- a/classes/orcid/actions/SendSubmissionToOrcid.php +++ b/classes/orcid/actions/SendSubmissionToOrcid.php @@ -35,4 +35,12 @@ protected function canDepositSubmission(): bool { return true; } + + /** + * @inheritDoc + * Override with empty implementation since OPS does not have reviews + */ + public function depositReviewsForSubmission(): void + { + } } diff --git a/classes/search/PreprintSearchIndex.php b/classes/search/PreprintSearchIndex.php index 9e25df4114..eb9a1a53b6 100644 --- a/classes/search/PreprintSearchIndex.php +++ b/classes/search/PreprintSearchIndex.php @@ -18,6 +18,7 @@ use APP\core\Application; use APP\facades\Repo; +use APP\orcid\actions\SendSubmissionToOrcid; use APP\server\Server; use APP\server\ServerDAO; use APP\submission\Submission; @@ -75,6 +76,11 @@ public function submissionMetadataChanged($submission) $this->_updateTextIndex($submissionId, SubmissionSearch::SUBMISSION_SEARCH_TYPE, (array) $publication->getData('type')); $this->_updateTextIndex($submissionId, SubmissionSearch::SUBMISSION_SEARCH_COVERAGE, (array) $publication->getData('coverage')); // FIXME Index sponsors too? + + $context = app()->get('context')->get($submission->getData('contextId')); + if ($publication && $context) { + (new SendSubmissionToOrcid($publication, $context))->execute(); + } } /** diff --git a/lib/pkp b/lib/pkp index 74efdd857e..4a4b7f6b0d 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit 74efdd857e6dab9dac59eec9c3da74678d4fa368 +Subproject commit 4a4b7f6b0d2b1ed7796a47ce90da9e8a647985fe diff --git a/lib/ui-library b/lib/ui-library index 4fe6ad40af..48887248d0 160000 --- a/lib/ui-library +++ b/lib/ui-library @@ -1 +1 @@ -Subproject commit 4fe6ad40af5508ea1d6fa8cfd4763b7695465934 +Subproject commit 48887248d0207a9cf2878f13715413ce6e9f2206