PKP Bugzilla – Bug 8047
Wrong metadata in DOI Datacite registration
Last modified: 2012-12-02 06:19:40 PST
Created attachment 3892 [details]
test XML file for Datacite metadata upload
When I try to upload xml file to Datacite, I receive various validation errors.
The <subjects/> tag can not be noted in this way. If empty, it should be write in this way <subjects><subject></subject></subjects> o, maybe better, not included in XML
Same thing for <relatedIdentifiers/>
I can not imagine wich identifiers should encode in OJS, but the tag can not be empty and should be removed.
Bozana, any thoughts?
I'll look into this.
I made sure that empty elements should no longer be produced. This cannot be done for the publisher, though, as this is a mandatory field.
Obs: The patch is not yet in the master branch but will be part of it before the next release.
We still have to find out how it came that you got an XML with an empty publisher field. If no publisher is set then the export plugin should loop through all translations of the journal title and will take the one with the highest precedence (which is usually the primary journal language).
Do you have a journal without any title set? Or do you have a journal title but the title is not being found on export (which would be a bug of course...). Can you please check this?
If you find that you have titles set but they are not found then it would be great if you could send me a SQL export of your journals and journal_settings tables as I cannot reproduce the publisher problem here on my machine...
I checked for problems with publisher: I don't know how I got that error, in a new export of the same file it's correct (in attach).
I only have problem with subject and relatedidentifiers at the moment
Ok, then I'll close this issue for now. If the publisher issue should (re)appear and can be reproduced we'll re-open the issue. Thanks for reporting back.
You can find the patch here, if you'd like to patch your installation manually:
Hi Jerico, using the patch I get "Call to undefined method DOIExportDom::getObjectLocalePrecedence() in DataciteExportDom.inc.php line 256
Hi Andrea, sorry to hear that. It's possible that the patch depends on other fixes made in the master branch. In this case you'll probably have to adapt the patch to an earlier version or wait for the master branch to be released.