New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Datacite JSON #3280
Update Datacite JSON #3280
Conversation
Mainly to account for better publication metadata since Metadata Schema v. 4.4, also some additional improvements
Datacite JSON.js
Outdated
@@ -173,14 +179,17 @@ function doImport() { | |||
else if (contributor.nameType == "Personal") { | |||
item.creators.push(ZU.cleanAuthor(contributor.name, role)); | |||
} | |||
else { | |||
item.creators.push({ lastName: contributor.name, creatorType: role, fieldMode: 1 }); | |||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace
Datacite JSON.js
Outdated
else { | ||
item.creators.push({ lastName: contributor.name, creatorType: role, fieldMode: 1 }); | ||
else { | ||
item.creators.push({ lastName: contributor.name, creatorType: role, fieldMode: 1 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Datacite JSON.js
Outdated
lastName: contributor.familyName, | ||
firstName: contributor.givenName, | ||
creatorType: role |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastName: contributor.familyName, | |
firstName: contributor.givenName, | |
creatorType: role | |
lastName: contributor.familyName, | |
firstName: contributor.givenName, | |
creatorType: role |
Co-authored-by: Abe Jellinek <jellinek@berkeley.edu>
@AbeJellinek I think this should be all set |
@AbeJellinek -- currently all publishers/repositories import as [object Object] from Datacite. Could we get this merged? The CI just times out. |
Thanks - sorry for the delay. |
Mainly to account for better publication metadata since Metadata Schema v. 4.4, also some additional improvements