You are viewing the PKP Support Forum | PKP Home Wiki

Changing emails

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Changing emails

Postby jugriffin » Thu Feb 01, 2007 10:10 am

This message is somewhat related to: viewtopic.php?t=1575

I'd like the EDITOR_ASSIGN email template to include {$reviewDueDate}.

I believe I need to make PHP changes, but where can I locate this function?

Also, I would like to change the REVIEW_CONFIRM, REVIEW_DECLINE and REVIEW_COMPLETE email templates - to remove the Section Editor email address in the To field and replace it with the Editor email address - in each of these templates. I would also like to delete the Editor email address from the CC fields. Can someone point me to where to make PHP changes for this to happen?

Thank you!
Posts: 12
Joined: Wed Aug 16, 2006 12:32 pm

Postby asmecher » Thu Feb 01, 2007 10:38 am

Hi Julie,

There is a reviewDueDate associated with each review, and generally editors are assigned before reviews are assigned, so this information probably won't be available at the time the EDITOR_ASSIGN email is composed.

However, you can find the variable assignments for these emails as follows:
  • EDITOR_ASSIGN: classes/submission/editor/EditorAction.inc.php approx. line 82
  • REVIEW_CONFIRM and REVIEW_DECLINE: classes/submission/reviewer/ReviewerAction.inc.php approx. line 98
  • REVIEW_COMPLETE: classes/submission/reviewer/ReviewerAction.inc.php approx. line 180
If you need to find additional ones, search the PHP code for the symbolic name of the email (e.g. REVIEW_COMPLETE); you'll find it in the constructor for an ArticleMailTemplate or MailTemplate object, such as:
Code: Select all
$email = &new ArticleMailTemplate($reviewerSubmission, 'REVIEW_COMPLETE');
The variables are assigned to this $email object using the assignParams function.

Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby jugriffin » Wed Feb 07, 2007 12:53 pm

Hi Alec,

Thank you for this information. I've tested making changes in these locations and haven't had much success. Specifically, I changed
Code: Select all
$assignedEditors = $email->ccAssignedEditors($reviewerSubmission->getArticleId());
$reviewingSectionEditors = $email->toAssignedReviewingSectionEditors($reviewerSubmission->getArticleId());

Code: Select all
$assignedEditors = $email->toAssignedEditors($reviewerSubmission->getArticleId());
$reviewingSectionEditors = $email->ccAssignedReviewingSectionEditors($reviewerSubmission->getArticleId());

and when I tested the email link it opened a blank white page. I noticed changing the assignParams only changes the body of the email. Do you know what the problem might be?

Thank you!
Posts: 12
Joined: Wed Aug 16, 2006 12:32 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 5 guests