usap-dc-dev / usap-dc-website

repository for usap-dc website. Includes javascript client side app and python/flask server side.
2 stars 0 forks source link

check for existing title when creating/validating DIF xml files #26

Open fnitsche2001 opened 1 year ago

fnitsche2001 commented 1 year ago

The GCMD CMR system does not allow entries with the same title. This is somewhat related to the issue of duplicate project titles. We had a case where a project page existed for one award and we had created and submitted a DIF xml record for this project page (USAP-1738989_1). Later a new award was added to the project page and the new award became the main award. When the DIF file was updated it used and saved a new DIF record based on the new award number (USAP-2317097_1). This caused an issue for the CMR ingestion, because there were two DIF - IDs with the same title. (And there should not have been two DIF entries in the first place). I solved this temporary by setting the main award back to the old award number. I am not sure what the best way is here. Maybe providing, when a new DIF ID is created for a project with an existing DIF?

astrong-ldeo commented 10 months ago

So are/were there now two awards on the project page or was the original replaced?

Are there any restrictions on the title of the DIF ID, or can we make small changes to make sure there are no duplicates? Is it possible that two different projects have the same title?