Skip to content
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

243 draft doi sent to datacite incorrectly and incompletely maps some fields #259

Conversation

sorochak
Copy link
Contributor

@sorochak sorochak commented Nov 3, 2023

Description

This pull request addresses several discrepancies noted in the DataCite Fabrica when reviewing draft DOIs for submitted metadata records. Previously, there were a number of fields either incorrectly mapped or left empty, leading to incomplete metadata. The changes made ensure that:

  • The URL element in DataCite is no longer left empty. It is now dynamically generated using the dataset UUID and appended to "https://catalogue.hakai.org/dataset/ca-cioos_".

  • Author names are correctly shown in the creators' list, along with their affiliations which are now properly nested under each creator in the JSON object sent to Datacite.

  • The Datacite Resource type general is auto-populated as 'Dataset'.

  • Dynamic setting of the prefix based on the region instead of using a hardcoded value.

Motivation and Context

These changes fix the open issue #243

How has this been tested?

The changes have been thoroughly tested with the following approaches:

  • Unit tests were added specifically for the recordToDataCite function to ensure proper mapping and generation of fields moving forward.

  • Manual testing was conducted to verify that the draft DOIs now contain complete and correctly mapped metadata and appear as expected in DataCite Fabrica. Cross-referencing with existing metadata records to ensure consistency and accuracy in the creator's list etc.

@sorochak sorochak added the bug Something isn't working label Nov 3, 2023
@sorochak sorochak requested a review from n-a-t-e November 3, 2023 22:09
@sorochak sorochak self-assigned this Nov 3, 2023
@sorochak sorochak linked an issue Nov 3, 2023 that may be closed by this pull request
3 tasks
@n-a-t-e n-a-t-e merged commit 1936054 into main Nov 20, 2023
1 check passed
fostermh pushed a commit that referenced this pull request Nov 30, 2023
…te-incorrectly-and-incompletely-maps-some-fields

243 draft doi sent to datacite incorrectly and incompletely maps some fields
@fostermh fostermh deleted the 243-draft-doi-sent-to-datacite-incorrectly-and-incompletely-maps-some-fields branch April 11, 2024 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Draft DOI sent to DataCite incorrectly and incompletely maps some fields
2 participants