getModel(self :: MODEL); $locale = JFactory :: getLanguage() -> getTag(); $this -> itemId = JRequest :: getUInt('Itemid', 0); $this -> keyword = JRequest :: getString('keyword'); if ($this -> keyword == NULL) { $this -> publications = $model -> getPublicationStatistics($locale,false); $this -> datasets = $model -> getDatasetStatistics($locale,false); $this -> projects = $model -> getProjectStatistics($locale,false); $this -> organizations = $model -> getOrganizationStatistics($locale); $this -> datasources = $model -> getDatasourceStatistics($locale); } else { $this -> publications = $model -> searchPublications($this -> keyword, FALSE, FALSE, FALSE, FALSE, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL,self :: PAGE, self :: SIZE, $locale,FALSE); $this -> datasets = $model -> searchDatasets($this -> keyword, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, self :: PAGE, self :: SIZE, $locale,FALSE); $this -> projects = $model -> searchProjects($this -> keyword, NULL, NULL, NULL, NULL, NULL, NULL, self :: PAGE, self :: SIZE, $locale, FALSE); $this -> organizations = $model -> searchOrganizations($this -> keyword, NULL, NULL, self :: PAGE, self :: SIZE, $locale, FALSE); $this -> datasources = $model -> searchDatasources($this -> keyword, NULL, NULL, NULL, NULL, self :: PAGE, self :: SIZE, $locale, FALSE); } if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing search: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }