OMP DOI plugin - How to export crossref XML?

As far as I know, CrossRef XML Export Plugin is not available in OMP 3.2.
Is there an option to export XML of any kind to upload it to CrossRef page or we still have to write all metadata of the book to CrossRef DOI webDeposit form?
Kind regards.
M. Rudolf

The export plugins available, i.e. the native xml export and the ONIX export (if I’m not mistaken), do not seem to be very helpful in this regard. The structure that comes out looks quite different to the Crossref xml. So, no I don’t think there are any options to either using the web deposit form or writing the xml manually.

I would be interested to know if anyone knows of a quick way to write up the xml-files. When submitting chapters it can take a while. I’ve used Visual Studio to do this and it’s slightly faster for me than using the web deposit form, but still kind of slow.

All the best
Magnus

I am working on a simple OMP Crossref export plugin. Should be ready in April and will of course release it in Github. We are building a monograph version of journal.fi, so I need it there.

3 Likes

@ajnyga is there any news for plugin

1 Like

Any news on this automatic DOI generation plugin for OMP?

I forked the Datacite plugin from Dulip and made a version for Crossref. It does not include automatic registration but has worked for us so far. Can not promise much support for that. I am waiting for the new DOI stuff PKP is preparing and will build a better one once they are ready.

Other plugins you might be interested in GitHub - ajnyga/quickSubmit at omp (just for OMP 3.2 at the moment)

And GitHub - ajnyga/autoApprovePublicationFormats if you are tired of clicking those publication format boxes green.

2 Likes

Hi @ajnyga,

Should crossref plugin folder be unzipped in Plugins / ImportExport?

Section plugins does not load when I unzip folder

¿Cómo puedo generar el XML manualmente para enviarlo a Crossref? Tengo un OMP 3.1.2.1
Muchas gracias, saludos.
Elena Cruz.

Hi @Elena_Najera, see this previous post on this thread, I understand that the plugin mentioned can be installed on OMP 3+ and used to export a valid crossref xml and upload it on web deposit form.
@ajnyga, can you confirm that?
Best regards
Stefano

1 Like

Hi,

The Crossref plugin I made for OMP only works for OMP 3.2 at the moment.

It uses the Crossref API meaning that once installed, you can directly deposit DOIs using it (no need to upload any files).

1 Like

Hi @ajnyga,

do you know if there will be an official CrossRef XML export plugin for OMP 3.4?

Hi
Is there any news about CrossRef XML export plugin for OMP 3.4? @ajnyga do you know what the prognosis is?

@ajnyga: Does your CrossRef XML plugin works at version 3.3.0.12?

1 Like

sorry not yet, but probably soon

1 Like

I do not think there is anything official coming out for 3.4

There is a more recent version of my plugin that should work with OMP 3.3.0:

The old OMP 3.2.1 compatible version is here: GitHub - ajnyga/datacite at crossref-3-2-1

4 Likes

Hi @ajnyga
I have an OMP 3.3.8 installation waiting for the update of your plugin. I will test it in the upcoming days, and share the results.
Thank you very much for this valuable sharing.
Uğur Koçak

Dear @ajnyga
Thank you for sharing this plugin with us.
I installed it on two OMP 3.3.8 sites. One of the sites gave a 504 gateway timeout, and I couldn’t reach the plugin interface (to enter the username & password, and to deposit a book doi). On the other site, I entered a valid CrossRef username and password. But I get the following error message when I tried to deposit a doi. Hope, this may help to improve the plugin,
I noticed that the orcid id information is located within the person name tag.
Regards,

##<?xml version="1.0" encoding="UTF-8"?>
 <doi_batch_diagnostic status="completed" sp="a-cs1">
 <submission_id>1435065238</submission_id>
 <batch_id>_20221225193122000</batch_id>
 <record_diagnostic status="Failure">
 <doi />
 <msg>Error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'NMTOKEN'.
 Error: cvc-attribute.3: The value '' of attribute 'language' on element 'book_metadata' is not valid with respect to its type, 'null'.
 Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ORCID'. One of '{"http://www.crossref.org/schema/4.4.2":given_name, "http://www.crossref.org/schema/4.4.2":surname}' is expected.
 </msg>
 </record_diagnostic>
 <batch_data>
 <record_count>1</record_count>
 <success_count>0</success_count>
 <warning_count>0</warning_count>
 <failure_count>1</failure_count>
 </batch_data>
 </doi_batch_diagnostic>
 
 (403 Forbidden)##

The xml code produced by the plugin is here

<?xml version="1.0" encoding="UTF-8"?>

<?xml version="1.0" encoding="utf-8"?>
<doi_batch xmlns="http://www.crossref.org/schema/4.4.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jats="http://www.ncbi.nlm.nih.gov/JATS1" xmlns:ai="http://www.crossref.org/AccessIndicators.xsd" xmlns:rel="http://www.crossref.org/relations.xsd" version="4.4.2" xsi:schemaLocation="http://www.crossref.org/schema/4.4.2 https://www.crossref.org/schemas/crossref4.4.2.xsd">
<head>
<doi_batch_id>_20221225192738000</doi_batch_id>
<timestamp>20221225192738000</timestamp>
<depositor>
<depositor_name>Editör</depositor_name>
<email_address>editor@adlitip.net</email_address>
    </depositor>
<registrant>Turkforensic Test Yayınevi</registrant>
  </head>
<body>
<book xmlns:default="http://www.crossref.org/schema/4.4.2" xmlns:jats="http://www.ncbi.nlm.nih.gov/JATS1" book_type="edited_book">
<book_metadata xmlns="http://www.crossref.org/schema/4.4.2" xmlns:jats="http://www.ncbi.nlm.nih.gov/JATS1" language="">
<contributors>
<person_name contributor_role="author" sequence="first">
<ORCID>https://orcid.org/0000-0003-4946-3826</ORCID>
          </person_name>
        </contributors>
<titles>
<title>Adli Tıp ve Adli Bilimler</title>
        </titles>
<jats:abstract xmlns:jats="http://www.ncbi.nlm.nih.gov/JATS1">
<jats:p>Adaletin... Rehberi</jats:p>
        </jats:abstract>
<publication_date media_type="online">
<month>07</month>
<day>02</day>
<year>2019</year>
        </publication_date>
<isbn media_type="electronic">9786052584446</isbn>
<publisher>
<publisher_name>Turkforensic Test Yayınevi</publisher_name>
        </publisher>
<doi_data>
<doi>10.37609/akya.1</doi>
<resource>https://books.adlitip.net/index.php/tf/catalog/book/9</resource>
        </doi_data>
      </book_metadata>
    </book>
  </body>
</doi_batch>

Thanks,

Hard to say what is wrong in the first case, would need to see a php error for that.

Error: cvc-attribute.3: The value '' of attribute 'language' on element 'book_metadata' is not valid with respect to its type, 'null'.
What is the language of the publication? The language attribute mentioned there is set with PKPLocale::getIso1FromLocale($locale) so it seems like whatever the locale is that function is returning null.

Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ORCID'. One of '{&quot;http://www.crossref.org/schema/4.4.2&quot;:given_name, &quot;http://www.crossref.org/schema/4.4.2&quot;:surname}' is expected.
This is probably because there is no author name available and Crossref is expecting to see that data before ORCID. I am not sure if it is possible to register content without an author name.

Hi @ajnyga!

First, thanks so much for sharing your plugin!
The Datacite plugin is now part of the plugin gallery. Would it be possible to integrate your code to that plugin, so we maximize future compatibility efforts? Have you suggested this to @Dulip_Withanage?
Thanks again!