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

Enhancement: Map the cff and codemeta to inveniordm metadata in seperate file #44

Open
panta-123 opened this issue Jul 22, 2024 · 1 comment

Comments

@panta-123
Copy link

panta-123 commented Jul 22, 2024

Description

Looking into the code. My idea is that it will better to seperate the mapping in a seperate file.

cff -> invenioRDM
codemeta -> InvenioRDM

This way we can track the mapping in single place rather than digging through the metadata.py .

And also we can have the check of cff version or codemeta version and its mapping.
Let me know what do you think. I can try to look into it if the idea ia apporved.
Also related to: #38

@tmorrell
Copy link
Member

The motivation for the current architecture is that is lets each metadata field get the best value, whether it happens to be in cff or codemeta. If you look at the metadata decisions https://caltechlibrary.github.io/iga/appendix.html#record-metadata, each field has its own rules. I could imaging doing separate mappings, but then you'd have to have another bunch of code to merge the mapped metadata. So I'm not sure which approach would end up being more readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants