Skip to content

Commit

Permalink
Set creators to use Personal attribute so they show up as people
Browse files Browse the repository at this point in the history
  • Loading branch information
wfyson committed Oct 10, 2023
1 parent a915948 commit 570925d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DataCiteDoi.epmi
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<datasetid>document</datasetid>
<filename>cfg.d/z_datacite_mapping.pl</filename>
<mime_type>text/plain</mime_type>
<hash>a8ea31619777aed5849a83cdc1d7e7e1</hash>
<hash>ffe4d09471560d241104baa376b26dfd</hash>
<hash_type>MD5</hash_type>
<filesize>35704</filesize>
<filesize>35790</filesize>
</file>
<file>
<datasetid>document</datasetid>
Expand Down Expand Up @@ -147,7 +147,7 @@
<content>coverimage</content>
</document>
</documents>
<version>3.2.3</version>
<version>3.2.4</version>
<creators>
<item>
<name>
Expand Down
4 changes: 3 additions & 1 deletion lib/cfg.d/z_datacite_mapping.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
if ($family eq '' && $given eq '') {
$creators->appendChild($author);
} else {
$author->appendChild($xml->create_data_element("creatorName", $name_str));
$author->appendChild($xml->create_data_element("creatorName", $name_str,
nameType => "Personal",
));
}
if ($given eq '') {
$creators->appendChild($author);
Expand Down

0 comments on commit 570925d

Please sign in to comment.