Skip to content

Conversation

nibou230
Copy link
Contributor

How to test?

  1. Make a submission and send it to the Review step.
  2. Invite one reviewer.
  3. Connect as reviewer and complete the review (fill the form and add a file).
  4. As editor, Request revision and select Revisions will be subject to a new round of peer reviews.
  5. As an author, submit revision.
  6. As editor, open a 2nd round of review.
  7. Invite the 1st round reviewer.
  8. Connect as the reviewer.
  9. On top of the review page, you should see the Round 1 bouton.
  10. In the new window, the reviewer can access its answers (forms and files).

$reviewSubmission = Repo::submission()->get($reviewAssignment->getSubmissionId());
$reviewSubmissionId = $reviewSubmission->getId();

$this->insertNewStageAssignmentIfEmpty($request, $reviewSubmissionId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need inserting a new stage assignment here and in the step() method?

*/
function authorize($request, &$args, $roleAssignments): bool
{
$this->addPolicy(new RoleBasedHandlerOperationPolicy(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is checking the role enough here? Shouldn't we also check if a reviewer has was assigned to the assignment? I see that the current ReviewAssignmentAccessPolicy doesn't allow that. Maybe create a new policy, something like ReviewPreviousRoundsAccessPolicy?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asmecher, what do you think about this?

$('#okButtonForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
<div id="historyTab">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some styling isn't aligned, like font size, padding/margin... Maybe using FormBuilderVocabulary can help? @jardakotesovec, what do you think?

@jardakotesovec jardakotesovec self-requested a review December 12, 2023 13:17
<h4>{translate key="reviewer.submission.emailLog"}:</h4>
{if isset($declineEmail)}
<div>
<p>{$declineEmail->getSubject()}<br />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review the Smarty template to make sure that content is escaped appropriately. Plaintext content should go through |escape, and limited HTML content (e.g. email bodies) should go through |strip_unsafe_html.

@pilasou
Copy link

pilasou commented Feb 26, 2024

Hi @jardakotesovec, hi @asmecher, it seems that we are nearly there for this feature. Can you confirm if everything is OK?

@defstat
Copy link
Contributor

defstat commented May 1, 2024

Closed in favor of #9920

@defstat defstat closed this May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In OJS, a reviewer cannot access his/her recommendations from a previous round.
5 participants