In OpenAIRE/oai_datacite export, when the user adds contributor and chooses any contriubutor type, or adds Distributors and Producers, add guessed nameType to `contributor` property
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Overview of the Feature Request
The OpenAIRE/oai_datacite export should include guessed nameType values (person or organization) for all contributors that the user adds and when the user adds Distributors and Producers, as the DataCite/Datacite export does. Currently, the OpenAIRE/oai_datacite export doesn't include the guessed nameType when the user adds Distributors and Producers, and when the user adds a Contributor and chooses any of about half of the contributor types in the Contributor Type dropdown.
This issue is part of a larger effort to align both metadata exports, described in https://github.com/IQSS/dataverse/issues/11916 and https://github.com/IQSS/dataverse/issues/12281.
What kind of user is the feature intended for?
API User, Superuser, and Sysadmin
What inspired the request?
This is part of a larger effort to align the OpenAIRE/oai_datacite and DataCite/Datacite metadata exports. There is more context at https://github.com/IQSS/dataverse/issues/11916 and https://github.com/IQSS/dataverse/issues/12281.
What existing behavior do you want changed?
Currently, the DataCite/Datacite export includes a guessed nameType (person or organization) when the user adds Distributors and Producers and when they add Contributors and choose any of the contributor types in the Contributor Type dropdown.
For example:
<contributors>
<contributor
contributorType="Editor">
<contributorName
nameType="Personal">Name of Editor
</contributorName>
</contributor>
<contributor
contributorType="Distributor">
<contributorName
nameType="Personal">Name of Distributor
</contributorName>
</contributor>
</contributors>
The OpenAIRE/oai_datacite export includes guessed nameType values for the Contributors that a user adds when they choose only about half of the contributor types. The export doesn't include guessed nameType values when the user adds a contributor and chooses any of the following from the Contributor Type dropdown: Editor, Hosting Institution, Project Leader, Project Manager, Project Member, Researcher, Rights Holder, Sponsor, Supervisor, Work Package Leader, and Other. And the export doesn't include guessed nameType values when the user adds Distributors and Producers.
For example:
<contributor
contributorType="Producer">
<contributorName>Producer Name</contributorName>
The OpenAIRE/oai_datacite export should be changed to include guessed nameType values for the Distributors and Producers that the user adds and when they add Contributors and choose any types or no type from the Contributor Type dropdown, matching the behavior of the DataCite/Datacite export.
Any open or closed issues related to this feature request?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the OpenAIRE/oai_datacite and DataCite/Datacite metadata export implementations and compare how contributor nameType values are produced. Verify the output for every contributor type, including no type, plus user-added Distributors and Producers; done means the OpenAIRE export includes the same guessed Personal or Organizational nameType values as the DataCite export.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100