One click reviews in OJS 3.5

Describe the issue or problem

I’m testing OJS 3.5.0-0 and I’m trying to get a reviewer to receive an email with a one-click link. Obviously I have the box for One-Click reviews ticked in the workflow settings. But I’ve run into a few problems.

The first issue was that the Review Request email didn’t contain any links. The text ‘accept or decline’, which should be a link, is plain text when it arrives in the reviewer’s inbox. Similarly the title of the article in the email should be a link too, but wasn’t. Anything using the {$reviewAssignmentUrl} variable was broken.

I found some lines in lib/pkp/controllers/grid/users/reviewer/form/ReviewerForm.php which were unsetting some variables. I commented out these lines (500-502) and the links worked:

unset($mailable->viewData[ReviewAssignmentEmailVariable::REVIEW_DUE_DATE]); unset($mailable->viewData[ReviewAssignmentEmailVariable::RESPONSE_DUE_DATE]); unset($mailable->viewData[ReviewAssignmentEmailVariable::REVIEW_ASSIGNMENT_URL]);

But once I got this link to appear in the emails to reviewers, I realised that the link wasn’t a one-click review link I was hoping it would be.

Can anyone using OJS 3.5 advise on how to get reviewers to receive the one-click review links please?

Hi @swithun!

Thanks for reporting this.

I understand that you have access to the source code of your installation.

Could you please do the following:

  1. Uncomment the lines that you previously commented: lines (500-502) of lib/pkp/controllers/grid/users/reviewer/form/ReviewerForm.php

  2. At lib/pkp/classes/submission/action/EditorAction.php line 221 change existing
    $reviewInvitation->reviewAssignmentId = $reviewAssignment->getId(); to $reviewInvitation->getPayload()->reviewAssignmentId = $reviewAssignment->getId();

Do that and continue using the OneClick review feature - try to add a new reviewer for example - does that change solves your issue?

Thanks in advance!

Dimitris

Hello

Thanks for the suggestion, @Dimitris_Efstathiou. I followed your instructions, and, yes, the email to the reviewer now contains the one-click link.

I thought that there was a further problem, as following the link produced a 500 error. But that turned out to be because I was already logged in (as someone else) in that browser. Opening the accept/decline link in a private tab worked.

Thanks again. This was a great help.

Swithun.

@swithun That is perfect, thanks.

I have filed this issue to follow-up this fix and contain the appropriate PRs to add the fix for all future releases.

Regards