Hello Massimiliano,
we are running DSpace 5.x with DataCite 4.1 (heavily relying on our own
metadata and thus not yet backported to DSpace).
Prior to this we had DataCite 3.1 with no problems.
You can test your crosswalk by crosswalking an item with:
[dspace]/bin/dspace dsrun
org.dspace.content.crosswalk.XSLTDisseminationCrosswalk DataCite
[YOUR-HANDLE] [path/to/output]
and then validating the resulting xml
That is allways advisable prior to changing the one in production.
The difference between 5.x and 6.x is that in 6.x some things like the
namespace was made configurable which was prior hardcoded in the
DataCiteConnector.
Hope this helps
Claudia Jürgen
Am 14.02.2019 um 18:55 schrieb Tim Donohue:
Hi Massimiliano,
The main error message there seems to be this one:
While reserving the DOI doi:10.10xxx/un**-1194, we got a http status code
422 and the message "This element is not expected. expected is one of ( {
http://datacite.org/schema/kernel-3}identifier, {
http://datacite.org/schema/kernel-3}creators, {
http://datacite.org/schema/kernel-3}titles, {
http://datacite.org/schema/kernel-3}publisher, {
http://datacite.org/schema/kernel-3}publicationyear, {
http://datacite.org/schema/kernel-3}subjects, {
http://datacite.org/schema/kernel-3}contributors, {
http://datacite.org/schema/kernel-3}dates, {
http://datacite.org/schema/kernel-3}language, {
http://datacite.org/schema/kernel-3}resourcetype ).
That error is saying that the DataCite API seems to be returning a 422
(Unprocessable Entity) Response with an error message that says "This
element is not expected" and a list of expected elements.
I'm going to admit, I'm not familiar myself with the DataCite service or
this DOI connector in DSpace. (It was written & tested by other developers
-- DSpace is a community-wide effort, and I'm unable to review every line
of code.) It's possible either the patch you applied didn't full "work"
for DSpace 5.6, or maybe there's another fix in DSpace 6.0 that I
overlooked that provides compatibility with DataCite schema 3.x
Does anyone else on this list have experience in using the DOI connector
with DataCite Schema 3.x in either DSpace 6.x or 5.x? I'm wondering if
someone else may have seen errors of this sort before, or perhaps can
confirm that DSpace 6.x works fine with DataCite Schema 3.x?
- Tim
On Thu, Feb 14, 2019 at 9:56 AM Massimiliano CILURZO <[email protected]>
wrote:
Dear Tim,
I have tried the second option and updated to schema 3.1 first.
But the answer after
/dspace/bin/dspace doi-organiser -u
is this in dspace.log
ERROR org.dspace.identifier.doi.DOIOrganiser @ It wasn't possible to
update this identifier: doi:10.14273/unisa-937 Exceptions code: BAD_ANSWER
org.dspace.identifier.doi.DOIIdentifierException: Unable to parse an
answer from DataCite API. Please have a look into DSpace logs.
at
org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:564)
at
org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:681)
at
org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:412)
at
org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:669)
at
org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265)
at
org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
2019-02-14 16:43:43,985 WARN org.dspace.identifier.doi.DataCiteConnector
@ While reserving the DOI doi:10.10xxx/un**-1194, we got a http status code
422 and the message "This element is not expected. expected is one of ( {
http://datacite.org/schema/kernel-3}identifier, {
http://datacite.org/schema/kernel-3}creators, {
http://datacite.org/schema/kernel-3}titles, {
http://datacite.org/schema/kernel-3}publisher, {
http://datacite.org/schema/kernel-3}publicationyear, {
http://datacite.org/schema/kernel-3}subjects, {
http://datacite.org/schema/kernel-3}contributors, {
http://datacite.org/schema/kernel-3}dates, {
http://datacite.org/schema/kernel-3}language, {
http://datacite.org/schema/kernel-3}resourcetype ). at line 3, column 0".
2019-02-14 16:43:43,985 ERROR org.dspace.identifier.doi.DOIOrganiser @ It
wasn't possible to update this identifier: doi:10.14273/unisa-1194
Exceptions code: BAD_ANSWER
Could you help me to understand the reason?
Thanks
Best regards
Massimiliano
Il giorno martedì 12 febbraio 2019 19:23:47 UTC+1, Tim Donohue ha scritto:
Hello Massimiliano,
Since you are running DSpace 5.6, you'd have two options to get to
DataCite v4.1 compatibility:
- Either you should upgrade to DSpace 6.3 (the latest version of
6.x), and then apply this patch
https://github.com/DSpace/DSpace/pull/2321
- Or, you would need to apply *two* patches to DSpace 5.x. First,
you'd have to apply the fixes to update to DataCite schema v3.1 :
https://github.com/DSpace/DSpace/pull/1197 (This is the fix that was
included as part of 6.0). Then you would need to apply this patch:
https://github.com/DSpace/DSpace/pull/2321
You also may want to simply see if upgrading to DSpace 6.3 would *solve*
the issues you are having. In your original email, it was unclear if you
absolutely *must* be running DataCite schema v4.1, or if possibly DataCite
schema v3.1 would work. So, honestly, my recommendation would be to first
start up a test server with DSpace 6.3 on it to see if compatibility with
DataCite schema 3.1 fixes the issues you are seeing. If so, you may not
even need to apply the patch to update to DataCite schema 4.1. I cannot
give advice myself on whether upgrading to DSpace 6.3 will solve the issue
or not -- that's likely something you'd need to either test out yourself,
or talk to the DataCite team about.
- Tim
On Tue, Feb 12, 2019 at 12:12 PM Massimiliano CILURZO <[email protected]>
wrote:
Dear Tim.
I'm running DSpace 5.6 I could install this patch on it?
I would like to try this patch, If you tell me that I could use it only
on DSpace 6.0 I'll try it first on a test server with DSpace 6.0.
If I can I'll try to help for this patch with some notes about it.
Thanks
Best regards
Massimiliano
Il giorno martedì 12 febbraio 2019 17:13:42 UTC+1, Tim Donohue ha
scritto:
Massimiliano,
Just a follow-up to Mark's previous note. DSpace 6.x is using DataCite
Schema 3.1 (so if you are seeing Schema 2.2, I'm assuming you aren't using
the latest DSpace), see this update which was released in DSpace 6.0:
https://jira.duraspace.org/browse/DS-2924
As Mark notes, we have a pending update to DataCite Schema 4.1, which
likely won't be released until 6.4 (at the earliest). If you are already
running DSpace 6.x, this patch should be relatively easy to apply
immediately. If you are able to help test this patch, then we'd appreciate
it if you could add notes to the patch (in GitHub), as that will allow us
to more easily approve/merge the change in time for 6.4. Again, here's
where this patch is: https://github.com/DSpace/DSpace/pull/2321
If you have further questions, let us know on this list.
Tim
On Mon, Feb 11, 2019 at 8:00 AM Mark H. Wood <[email protected]>
wrote:
On Monday, February 11, 2019 at 4:23:53 AM UTC-5, Massimiliano CILURZO
wrote:
The DOI Datacite schema now is arrived to 4.1, we have on
DSpace version 2.2 and it could have some problem with the new managemant
software of DATACITE.
With a schema version 2.2 it cuold be impossible to do an update via
the "DOI DataCite Fabrica" system.
So I would like to know if it is possible to update this schema to
4.1.
There is a patch to upgrade to 4.0:
https://github.com/DSpace/DSpace/pull/2321 which has not yet been
merged.
--
All messages to this mailing list should adhere to the DuraSpace Code
of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
--
All messages to this mailing list should adhere to the DuraSpace Code of
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
--
All messages to this mailing list should adhere to the DuraSpace Code of
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Claudia Juergen
Eldorado
Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund
Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
[email protected]
www.ub.tu-dortmund.de
Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen
Schriftstücks per Telefax erfolgen.
Important note: The information included in this e-mail is confidential. It is
solely intended for the recipient. If you are not the intended recipient of
this e-mail please contact the sender and delete this message. Thank you.
Without prejudice of e-mail correspondence, our statements are only legally
binding when they are made in the conventional written form (with personal
signature) or when such documents are sent by fax.
--
All messages to this mailing list should adhere to the DuraSpace Code of
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.