Skip to content

DOI not being fetched if called from CLI/scheduledTasks #24

Open
@mpbraendle

Description

@mpbraendle

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.

# Run Crossref Reference linking job every hour
0 * * * *        /usr/bin/php {ojsroot}/tools/runScheduledTasks.php plugins/generic/crossrefReferenceLinking/scheduledTasks.xml

I think pkp/pkp-lib#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//pull/25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions