DOI Handling in 2.4

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
kreissaege
Posts: 24
Joined: Thu Nov 05, 2009 4:14 am

DOI Handling in 2.4

Postby kreissaege » Thu Aug 01, 2013 3:19 am

Hello,

I have installed for testing purposes a OJS 2.4.1 system.
For some data export I need to find out the DOI for an article.
As the DOI (or generally) public identifiers are set in the article_settings table as "setting_name" pub-id::doi

1) How can I now retrive the DOI for a article (if I have the article_id)
2) When will generated the DOI entry in the article_settings table - only after the article is published or before?

Thanks for any help!
Katrin

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: DOI Handling in 2.4

Postby asmecher » Thu Aug 01, 2013 7:40 am

Hi Katrin,

Have you seen the DOI documentation in the wiki? See http://pkp.sfu.ca/wiki/index.php/DOIPluginsDocumentation.

Regards,
Alec Smecher
Public Knowledge Project Team

kreissaege
Posts: 24
Joined: Thu Nov 05, 2009 4:14 am

Re: DOI Handling in 2.4

Postby kreissaege » Mon Aug 19, 2013 1:39 am

Hello Alex,

thanks for the tip.
So I understand correct, that the DOI is only generated when we do a Crossref-Export to register the issue by Crossref ?
It seems that we cannot compare the DOI in XML-Exportfile and and in article-metadata before the article is published.

Regards Katrin

swing
Posts: 157
Joined: Tue Oct 09, 2007 2:59 am

Re: DOI Handling in 2.4

Postby swing » Sun Sep 01, 2013 6:30 am

Hi Katrin,

The DOIs are permanently saved in the article_settings table first time when they are used, i.t. when the article is published and when
-- using an export (not only CrossRef but also some others e.g. OJS native),
-- viewing the article or
-- harvesting via OAI.
As journal editor you can preview a DOI (before publishing the article) in the article metadata (article summary view > edit metadata) and thus see how it will look like when the article is published.

To retrieve an article DOI you will first have to get the article object, using the article_id. Then:
-- if you would like to retrieve the stored DOI, you would use $article->getStoredPubId('doi'); For this the DOI plug-in doesn't have to be enabled.
-- if you would like to generate DOI without permanently saving it, i.e. if you would just like to preview it, you would use $article->getPubId('doi', true); For this the DOI plug-in has to be enabled.
-- if you would like to generate DOI and to permanently save it, you would use $article->getPubId('doi'); For this the DOI plug-in has to be enabled.

I hope this helps.
Best,
Bozana


Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests