That was my suggestion but I hadn’t tried it. Looking a bit further, I think my suggestion may only work if the imported PID is one Dataverse can manage (i.e. Dataverse is configured to have access for the protocol/authority/shoulder you’re using.)
TLDR: So what I suggested is probably not a viable work-around unless you have access to manage the imported PIDs.
Details:
In terms of the files themselves - with import, I think the requirement to preposition the files only applies if you are setting the release=true flag (such that the dataset is immediately published and you can’t add files later). I think adding files in import was originally a convenience as well – there was no other mechanism to move the files yourself and then update the Dataset to reference then without editing the database. However, now the direct upload mechanism can be used the same way.
The issue I see is that calling the publish api, after doing an import with no files (release=no) and using the direct-upload option of the add file api to register the files you’ve previously placed, results in a difference from using release=yes. The files aren’t the issue and I expect the direct-upload option to work, but I think the normal publish command will try to update the metadata for your imported PID and fail if it can’t. The :import release=yes mechanism disables trying to contact the PID provider. If you can configure Dataverse to update the PID, I think my suggested route ending with publish would work (and would update the DOI at DataCite to point to your new landing page.).
FWIW: PR #7504 adds another migration mechanism that can preserve the original publication date and version number as well. It is not yet accepted/merged though, and it still was designed for the case where you can update the PID/DOI.
-- Jim
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dataverse-commu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dataverse-community/4e9633fe-242f-4dba-945b-ef56fc707045n%40googlegroups.com.