ResearchObject / ro-crate-zenodo

RO-Crate uploader for Zenodo
Apache License 2.0
1 stars 0 forks source link

Remind users to update author names in Zenodo before publishing #8

Closed elichad closed 3 months ago

elichad commented 3 months ago

Persons in RO-Crates typically have a single name attribute, but Zenodo expects a family name and given names. From API docs this is the format we need to get names into:

name: Name of creator in the format Family name, Given names

For example 'Doe, John'

elichad commented 3 months ago

We could move toward using givenName and familyName in the RO-Crate spec as these are already supported by https://schema.org/Person, but this raises its own issues (and hasn't been necessary thus far). For example, how to list a community group under a single name?

Any solution must anyway be backwards-compatible with the single name option in existing RO-Crates.

The easiest way to handle this is to remind users to check and update the names in the Zenodo UI before publishing - as a consequence we should ensure that the Zenodo upload is not published when created using this tool.

elichad commented 3 months ago

The code now supports using givenName and familyName. If those aren't present, it will fall back on name and then @id and emit warnings as it does so.