Esempio n. 1
0
 /**
  * Set up common template variables.
  * @param $request PKPRequest
  * @param $publishedMonograph PublishedMonograph
  */
 function setupTemplate($request, $publishedMonograph)
 {
     $templateMgr = TemplateManager::getmanager($request);
     if ($seriesId = $publishedMonograph->getSeriesId()) {
         $seriesDao = DAORegistry::getDAO('SeriesDAO');
         $series = $seriesDao->getById($seriesId, $publishedMonograph->getContextId());
         $templateMgr->assign('series', $series);
     }
     parent::setupTemplate($request);
 }