-
Notifications
You must be signed in to change notification settings - Fork 501
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
Add RelatedIdentifier of Dataset to File Metadata sent to DataCite #4782
Comments
I just made pull request #4795. Moving to code review at https://waffle.io/IQSS/dataverse |
@sekmiller indicated that this is a suggestion from @scolapasta so I'm assigning this issue to him to make a decision or provide further guidance on the definition of done for this issue. https://github.com/IQSS/dataverse/pull/4795/files#r199499888
@sekmiller and I discussed this issue this morning and I voice general grumpiness with the brittleness of the code, how it does a "find and replace" of and how the template has been dumped into the main "dataverse" package rather than being placed in a subpackage ( https://github.com/IQSS/dataverse/pull/4795/files#r199499888 ). The quick fix would be to make a second version of the XML file we do the "find and replace" on and only have that file include the new |
When we add file PIDs to the dataset metadata we're sending to DataCite, the relationship type we should use is HasPart. (This is what Dryad uses and the DataCite Search portal interprets it correctly (see example). See more here: https://docs.google.com/document/d/1tevjRIX96EFCYzAgw7KU-bmKT_kabyZb-ilMHxyb5dc/edit?usp=drivesdk |
To summarize, from the debugging we did last Fri.: When testing, it is the correct behavior, that no file-level identifiers are added to the metadata when the new dataset is created. This is because we only assign the global ids to files ON PUBLISH (unlike the dataset global id; that's registered when the dataset is created). When going through the files, do checks for NULLs on everything. Do not assume that a DataFile will have the global id - it may be NULL (if this DOI is being registered or updated while the Dataset is still in DRAFT). What happens when we publish a dataset: |
… save them before I switched over to develop. #4782
This a topic branch and should be merged to 4782-DataCite
@benjamin-martinez the pull request has merge conflicts again. Can you please resolve them? Thanks! Here's that page we were looking at yesterday if it helps: http://guides.dataverse.org/en/4.9.1/developers/version-control.html#how-to-resolve-conflicts-in-your-pull-request |
OK, in addition to Leonid's comments on how it works, the scope is DataCite but not EZID nor Handles. |
send relatedIdentifier to DataCite #4782
The metadata sent to DataCite for files should include the Dataset identifier with a relationType of IsPartOf
<relatedIdentifiers> <relatedIdentifier relationType="IsPartOf" relatedIdentifierType="DOI">${datasetIdentifier}</relatedIdentifier> </relatedIdentifiers>
see file workingDataCiteMetadataTemplate.xml
It should be referenced in DOIDataCiteRegisterService.java
Also, should there be references to the file DOIs in the Dataset metadata passed?
The text was updated successfully, but these errors were encountered: