getProjectInfo($id, $grant); $searchMenuId = $this->getModel('statistics')->getSearchMenuId(); $app = JFactory::getApplication(); if ($metadata) $app -> redirect(JRoute :: _('index.php?option=' . JRequest :: getVar('option') . '&view=publications&format=raw&Itemid=' . $this->searchMenuId . '&project=' . $project -> acronym, FALSE)); else if ($csv) $app -> redirect(JRoute :: _('index.php?option=' . JRequest :: getVar('option') . '&view=publications&layout=csv&format=raw&Itemid=' . $this->searchMenuId . '&project=' . $project -> acronym, FALSE)); else $app -> redirect(JRoute :: _('index.php?option=' . JRequest :: getVar('option') . '&view=search&Itemid=' . $this->searchMenuId . '&href=' . base64_encode('/xmlResults.action?query=(project="'.$project->acronym.'")&format=xml'), FALSE)); parent::display($tpl); } function getProjectInfo($id, $grant) { $model = $this->getModel('deposition'); if ($id != null) return $model->getShortProjectInfo($id); else return $model->getShortProjectInfoByGrant($grant); } } ?>