Example #1
0
 /**
  * Display the "finding references" search engine list
  */
 function findingReferences($args)
 {
     $articleId = isset($args[0]) ? $args[0] : 0;
     $galleyId = isset($args[1]) ? (int) $args[1] : 0;
     list($journal, $issue, $article) = RTHandler::validate($articleId, $galleyId);
     $rtDao =& DAORegistry::getDAO('RTDAO');
     $journalRt =& $rtDao->getJournalRTByJournal($journal);
     if (!$journalRt || !$journalRt->getFindingReferences()) {
         Request::redirect(null, Request::getRequestedPage());
     }
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('articleId', $articleId);
     $templateMgr->assign('galleyId', $galleyId);
     $templateMgr->assign_by_ref('journalRt', $journalRt);
     $templateMgr->assign_by_ref('article', $article);
     $templateMgr->display('rt/findingReferences.tpl');
 }