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 authored Jan 13, 2025
2 parents f3834e1 + 86d8569 commit 323d645
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 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
{
}
}
6 changes: 6 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,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();
}
}

/**
Expand Down

0 comments on commit 323d645

Please sign in to comment.