EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10150


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] coin DOI with Datacite


CAUTION: This e-mail originated outside the University of Southampton.

Yes! I thought it was quite common to use this plugin to expose data in
OAI in Datacite (or similar OpenAIRE) format, maybe it was my
assumption. I've added a EPrints/Plugin/Export/OAI_DataCite.pm plugin
adapted from OAI_DC.pm, and as you pinted out, it sets
$self->{metadataPrefix} = "oai_datacite".

Actually, the code is correct because generate_doi does not coin dois,
just generate the string. I've found I was using an older version. My bad!

Il 18/06/25 12:04, John Salter ha scritto:
CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi Yuri,
The DataCiteXML export does not have a 'metadataPrefix' specified, so would not normally be listed in the OAI-PMH interface as a supported format.
I guess you have defined a metadataPrefix for it, so it does appear in your OAI-PMH ListMetadataFormats response?

I can see your point - an export format should be a read-only function - I would not expect the behaviour you describe either!

Cheers,
John

-----Original Message-----
From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Yuri
Sent: 18 June 2025 10:54
To: EPrints.org Technical List <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] coin DOI with Datacite

CAUTION: External Message. Use caution opening links and attachments.

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2FDataCiteDoi%2Fblob%2Ffb9379fd834d5aad7507b8dcbe6d23bc49165a6e%2Flib%2Fplugins%2FEPrints%2FPlugin%2FExport%2FDataCiteXML.pm%23L61&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C018f744a41f24b07b57908ddae57251a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638858411516528048%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=kG1uG4ht98e3n0e%2BL6g6xzBgAJtc0jk4t4uYLj2tVmk%3D&reserved=0

Can someone explain me why this code will try to coin a DOI while exporting the XML? If the DOI coi has failed before, it will fail again.
This is a read operation that became a write operation. This can be triggered easily on oai2 cgi script is something going wrong, thus OAI failing too.

I'm thinking of implementing a filter in oai2 to avoid records without a DOI, do you have some experience on this?

Thanks!


*** Options: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C018f744a41f24b07b57908ddae57251a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638858411516551508%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2FBryZuOIxfy2pJVGWOv%2BzD1R%2BxJ5o64JMfUAJspoYsU%3D&reserved=0
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C018f744a41f24b07b57908ddae57251a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638858411516568225%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=kmMqA3yOEdwScNLij%2F265OsfMa18k8SNreiQjNs0M2I%3D&reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C018f744a41f24b07b57908ddae57251a%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638858411516582950%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=neZZ6CsE8Sy2GNGzUl1TPgO8gX0N%2FflDN%2BBLqVDtaMo%3D&reserved=0