Skip to content

Commit

Permalink
pkp/pkp-lib#4601 Fix ORCID auto-fill for multilingual author names
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Mar 20, 2019
1 parent d0ca732 commit 63f1ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/OrcidHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function orcidAuthorize($args, $request) {
// Suppress errors for nonexistent array indexes
echo '
<html><body><script type="text/javascript">
opener.document.getElementById("firstName").value = ' . json_encode(@$profileJson['name']['given-names']['value']) . ';
opener.document.getElementById("lastName").value = ' . json_encode(@$profileJson['name']['family-name']['value']) . ';
opener.document.getElementById("givenName").value = ' . json_encode(@$profileJson['name']['given-names']['value']) . ';
opener.document.getElementById("familyName").value = ' . json_encode(@$profileJson['name']['family-name']['value']) . ';
opener.document.getElementById("email").value = ' . json_encode(@$profileJson['emails']['email'][0]['email']) . ';
opener.document.getElementById("country").value = ' . json_encode(@$profileJson['addresses']['address'][0]['country']['value']) . ';
opener.document.getElementById("affiliation").value = ' . json_encode(@$employmentJson['employment-summary'][0]['organization']['name']) . ';
Expand Down

0 comments on commit 63f1ed2

Please sign in to comment.