Skip to content

Commit

Permalink
pkp#10759 Remove orcidReviewPutCode from User schema, and fix invalid…
Browse files Browse the repository at this point in the history
… header reference in DepositOrcidSubmission
  • Loading branch information
taslangraham committed Jan 7, 2025
1 parent 72e802d commit fed6e1a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion classes/orcid/PKPOrcidWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function build(): array
$this->context->getPath(),
'article',
'view',
$submission->getId(),
[$submission->getId()],
urlLocaleForPage: '',
);

Expand Down
2 changes: 1 addition & 1 deletion jobs/orcid/DepositOrcidSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function handle(): void
OrcidManager::logInfo("Work updated in profile, putCode: {$putCode}");
break;
case 201:
$location = $responseHeaders['Location'][0];
$location = $responseHeaders['location'][0];
// Extract the ORCID work put code for updates/deletion.
$putCode = intval(basename(parse_url($location, PHP_URL_PATH)));
OrcidManager::logInfo("Work added to profile, putCode: {$putCode}");
Expand Down
7 changes: 0 additions & 7 deletions schemas/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,6 @@
"nullable"
]
},
"orcidReviewPutCode": {
"type": "string",
"apiSummary": true,
"validation": [
"nullable"
]
},
"rememberToken": {
"type": "string",
"writeOnly": true,
Expand Down

0 comments on commit fed6e1a

Please sign in to comment.