I like the custom review form feature, but when using it there is apparently not a way for a reviewer to give confidential information to a director. I have added a new type of textarea which is not included when peer reviews are imported in the e-mail sent to the authors. I added
- Code: Select all
define('REVIEW_FORM_ELEMENT_TYPE_TEXTAREA_NO_AUTHOR', 0x000007);
and
- Code: Select all
REVIEW_FORM_ELEMENT_TYPE_TEXTAREA_NO_AUTHOR => 'manager.reviewFormElements.textareanoauthor',
to classes/reviewForm/ReviewFormElement.inc.php;
- Code: Select all
<message key="manager.reviewFormElements.textareanoauthor">Extended text box not visible to authors</message>
to locale/en_US/locale.xml;
I changed
- Code: Select all
{elseif $reviewFormElement->getElementType() == REVIEW_FORM_ELEMENT_TYPE_TEXTAREA}
to
- Code: Select all
{elseif $reviewFormElement->getElementType() == REVIEW_FORM_ELEMENT_TYPE_TEXTAREA or $reviewFormElement->getElementType() == REVIEW_FORM_ELEMENT_TYPE_TEXTAREA_NO_AUTHOR}
in templates/submission/reviewForm/reviewFormResponse.tpl, templates/manager/reviewForms/previewReviewForm.tpl and templates/trackDirector/previewReviewForm.tpl; and most importantly, I added
- Code: Select all
if ($reviewFormElement->getElementType() != REVIEW_FORM_ELEMENT_TYPE_TEXTAREA_NO_AUTHOR) {
...
}
around the code in the foreach ($reviewFormElements as $reviewFormElement) construct in classes/submission/trackDirector/TrackDirectorAction.inc.php.
I hope this helps anyone andd perhaps it can be included in an upcoming release.
Wouter
