Skip to content

Commit

Permalink
Merge pull request #5 from gsu-library/develop
Browse files Browse the repository at this point in the history
Fix orcid metadata
  • Loading branch information
vle91 authored Feb 20, 2023
2 parents 25fb0ef + 219e7b4 commit 15d8913
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.1] - 2023-02-20
- Add name identifiers metadata to submission when using ORCID.

## [1.3.0] - 2023-02-15
- Add ORCID ID integration.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Code Repository: https://github.com/gsu-library/datacite-bulk-doi-creator-webapp
Author: Matt Brooks <[email protected]>
Date Created: 2022-06-29
License: [GPL3](LICENSE)
Version: 1.3.0
Version: 1.3.1

## Description
A PHP WebApp that bulk creates DataCite DOIs from a provided CSV file. DOIs are created in the findable state. If you are looking for the python version of this WebApp see [DataCite Bulk DOI Creator](https://github.com/gsu-library/datacite-bulk-doi-creator).
Expand Down
7 changes: 6 additions & 1 deletion includes/submit_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,12 @@ function get_orcid_name($orcid, $token) {
'name' => $result['name']['family-name']['value'].', '.$result['name']['given-names']['value'],
'nameType' => 'Personal',
'givenName' => $result['name']['given-names']['value'],
'familyName' => $result['name']['family-name']['value']
'familyName' => $result['name']['family-name']['value'],
'nameIdentifiers' => [
'schemeUri' => 'https://orcid.org',
'nameIdentifier' => 'https://orcid.org/'.$orcid,
'nameIdentifierScheme' => 'ORCID'
]
]);
}
else if($code === 404) {
Expand Down

0 comments on commit 15d8913

Please sign in to comment.