Closed amyehodge closed 5 months ago
I can reproduce this by manually going to the /works/{WORK_ID}/edit
URL in a browser (though I'm not sure how likely users are to do this). It certainly seems like a thing we could be checking for when rendering the edit page instead of assuming the user came via the work type modal. (The "thing" being that the work's type is no longer the PURL reservation type, and rendering the modal if so?)
Example in QA I just made: https://argo-qa.stanford.edu/view/druid:nk536cp1921
Work 7581/druid hw495rk5901 encountered problems when trying to deposit on Jun 28. The issue was that it somehow had "purl_reservation" as the work type, which didn't have a mapping to the required resourceTypeGeneral at DataCite. But no item should ever have this work type when the deposit button is clicked.
Just to review how this should work in the app, to reserve a PURL/DOI:
User clicks on "reserve a PURL" button
Modal opens and requires user to enter a temporary title.
The DOI option can be set one of three ways for the collection that results in one of two different displays in this modal:
User clicks Submit to reserve the PURL and DOI if appropriate.
Upon return to provide metadata for the item, the user clicks any of the pencil icons associated with the item and is always first shown the work type modal. They must make a choice here and click Continue before they ever get to the form where there is a button to deposit.
There should technically be no way for a user to get to a deposit button with the work type still set to "purl_reservation."
The task here is to figure out if possible how this happened for this item and make sure it doesn't happen again.