Skip to content

Commit

Permalink
pkp/pkp-lib#10744 Increase opportunity for ORCID work/review deposits
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Jan 2, 2025
1 parent b9ffc82 commit 4c949b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions classes/orcid/actions/SendSubmissionToOrcid.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
}
3 changes: 3 additions & 0 deletions classes/search/PreprintSearchIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -75,6 +76,8 @@ 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?
(new SendSubmissionToOrcid($publication, Application::getContextDAO()->getById($submission->getData('contextId'))))->execute();
}

/**
Expand Down

0 comments on commit 4c949b8

Please sign in to comment.