NASA-PDS / doi-ui

The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/
Apache License 2.0
0 stars 4 forks source link

Error need to be catched when one draft a pds4 label from the url #27

Closed tloubrieu-jpl closed 3 years ago

tloubrieu-jpl commented 3 years ago

For example when one request this on the API: {{baseUrl}}/dois?action=draft&submitter=&node=atm&url=https://pds-geosciences.wustl.edu/insight/urn-nasa-pds-insight_seis/bundle_insight_seis.xml

By using label url https://pds-geosciences.wustl.edu/insight/urn-nasa-pds-insight_seis/bundle_insight_seis.xml which has already been submitted.

The user should be able to see the error message coming back from the API.

He should be able to force it or submit a different url.

Acceptance criteria: Given a pds4 label with warning (e.g. duplicated title with existing DOI) When the DOI is release from this url Then: a warning message is shown to the user And: the user can force the warning and save and submit the DOI to engineering node.