layout = JRequest :: getString('layout', self :: HTML); $this -> projectId = JRequest :: getString('projectId'); $this -> size = JRequest :: getInt('size'); $locale = JFactory :: getLanguage() -> getTag(); $projectId = JRequest :: getString('projectId'); $model = $this -> getModel(self :: MODEL); $this -> project = $model -> getProject($projectId, $locale); /* if($this -> layout==='html'){ $result = $model -> browsePublications(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, $this -> size, $locale, $projectId, NULL); $this -> publications = $result -> publications; }else{*/ //$url='search?action=search&sTransformer=results_openaire&rTransformer=results_openaire_browse&query=%28objIdentifier=od_______908::64da1cf1a1fd143bf958011be8ec857f%29&format=csv'; $url='search?action=search&sTransformer=results_openaire&query=(oaftype+exact+result)+and+(resulttypeid+exact+publication)+and+(relprojectid+exact+'.$this -> projectId.')&page=1&size='.$this -> size.'&locale=en_GB&format='.$this -> layout; $this ->result = $model -> browsePublicationsRaw($url); //} if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing publications: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }