Skip to content

Releases

3.0.0.90 — hot-fix for pkp/crossrefReferenceLinking#52

Choose a tag to compare

@edersotto edersotto released this 03 Nov 18:29

Temporary build of PKP's crossrefReferenceLinking 3.0.0.2 for OJS 3.5, carrying one single change: the fix for pkp/crossrefReferenceLinking#52.

The bug. registerSchedules() checks whether the plugin is enabled, whether the Crossref credentials are set and whether citations metadata is on — without passing a context id. Under the CLI there is no request and therefore no current journal, so the three checks resolve against no context, return false, and CrossrefReferenceLinkingInfoSender is never registered. On installations whose scheduler is driven by cron the reference DOIs are never fetched: the articles are deposited, keep crossref::checkCitationsDOIs = 1 indefinitely, and their citations never receive the DOIs Crossref has already matched.

The guards are redundant — CrossrefReferenceLinkingInfoSender::getJournals() already filters journal by journal with the explicit id.

Proposed upstream in pkp/crossrefReferenceLinking#53. As soon as PKP merges and releases it, this build is discontinued and every installation should go back to the plugin from the PKP Plugin Gallery.

Install

Site Administrator → Settings → Website → Plugins → Crossref Reference Linking → Upgrade, and upload crossrefReferenceLinking-3.0.0.90.tar.gz. The plugin identity is unchanged, so the Crossref credentials, the journal settings and every crossref::* value already stored on your submissions and citations are preserved.

To catch up on the backlog right away, instead of waiting for the next hour:

php plugins/generic/crossrefReferenceLinking/tools/checkCrossrefReferencesDOIs.php all

Why 3.0.0.90

PluginHelper::upgradePlugin() refuses a package that is not strictly newer than the installed version, so this build could not be numbered 3.0.0.2. The jump also makes the Plugin Gallery report a newer version is installed, so it will not offer an upgrade and nobody overwrites the fix by accident. When PKP releases 3.0.1.0 with the fix, the gallery offers the upgrade again — that is the signal to go back to the standard plugin.