I use OJS 2. What is the name of class that controls the template summary.tpl located in templates/author/submission/summary.tpl?
I searched for it in most classes so much and still couldn’t find it.
Thanks alot
This is included in the template files:
and
These template files are called from:
/**
* Display the status and other details of an author's submission.
* @param $args array
* @param $request PKPRequest
*/
function submissionEditing($args, $request) {
$journal =& $request->getJournal();
$user =& $request->getUser();
$articleId = (int) array_shift($args);
$this->validate($request, $articleId);
$submission =& $this->submission;
$this->setupTemplate($request, true, $articleId);
AuthorAction::copyeditUnderway($submission);
import('classes.submission.proofreader.ProofreaderAction');
ProofreaderAction::proofreadingUnderway($submission, 'SIGNOFF_PROOFREADING_AUTHOR');
$templateMgr =& TemplateManager::getManager();
$templateMgr->assign_by_ref('submission', $submission);
This file has been truncated. show original
and
/**
* Display specific details of an author's submission.
* @param $args array
* @param $request PKPRequest
*/
function submissionReview($args, $request) {
$user =& $request->getUser();
$articleId = (int) array_shift($args);
$this->validate($request, $articleId);
$authorSubmission =& $this->submission;
$this->setupTemplate($request, true, $articleId);
AppLocale::requireComponents(LOCALE_COMPONENT_OJS_EDITOR); // editor.article.decision etc. FIXME?
$reviewAssignmentDao =& DAORegistry::getDAO('ReviewAssignmentDAO');
$reviewModifiedByRound = $reviewAssignmentDao->getLastModifiedByRound($articleId);
$reviewEarliestNotificationByRound = $reviewAssignmentDao->getEarliestNotificationByRound($articleId);
$reviewFilesByRound =& $reviewAssignmentDao->getReviewFilesByRound($articleId);
$authorViewableFilesByRound =& $reviewAssignmentDao->getAuthorViewableFilesByRound($articleId);
This file has been truncated. show original
respectively.
Thank you. Was so helpful
Just a question about it I have. How did you search for the class controls the summary.tpl?
Because now I am searching for the class that controls metadata.tpl by searching in the repository in GitHub search bar but it doesn’t find it.
You search the keyword in Gihub or other way?
Personally I am either typically in an IDE (such as Netbeans) or using the Linux command line. Both of them have far superior search capabilities than GitHub, IMO.