Skip to content

Commit

Permalink
pkp/pkp-lib#7528 Crossref export: use given name in submission locale…
Browse files Browse the repository at this point in the history
… if family name does not exist
  • Loading branch information
bozana committed Aug 24, 2022
1 parent fd6dac4 commit 33b62fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function createJournalArticleNode($doc, $submission) {
}

} else {
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'surname', htmlspecialchars(ucfirst($author->getFullName(false)), ENT_COMPAT, 'UTF-8')));
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'surname', htmlspecialchars(ucfirst($givenNames[$locale]), ENT_COMPAT, 'UTF-8')));
}

$contributorsNode->appendChild($personNameNode);
Expand Down

0 comments on commit 33b62fb

Please sign in to comment.