Open mpbraendle opened 8 months ago
@mpbraendle, I think I'd prefer an approach closer to https://github.com/pkp/ojs/pull/3173, probably added within the loops through all contexts directly in tools/checkCrossrefReferencesDOIs.php
. But I'll tag @bozana for her thoughts too; she works with this more than I do!
@mpbraendle, what OJS and plugin version are you using?
I see it is relevant for stable-3_3_0 branch... I think in stable-3_4_0 it should not be a problem any more, because the DOIs are in core... I will provide a fix here...
@mpbraendle, could you maybe double check if this PR/changes solve the problem for you: https://github.com/pkp/crossrefReferenceLinking/pull/25?
Will check asap.
In getCrossrefReferencesDOIs, the stored DOI is not fetched via $publication->getStoredPubId('doi') if the called from the CLI, e.g.
php tools/checkCrossrefReferencesDOIs.php submission #somesubmissionId
or via scheduledTasks, e.g.
I think https://github.com/pkp/pkp-lib/issues/7194 bites here, too.
My current workaround is to fetch the DOI via $submission->getData('crossref::registeredDoi') .
Please check a possible solution.
PR (stable-3_3_0): https://github.com/pkp/crossrefReferenceLinking/pull/25