addScript(JRoute :: _(JUri :: base() . 'templates/yoo_solar/warp/libraries/jquery/jquery.js')); $document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/SqueezeBox.css')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadabbrevs.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/xmle4x.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/xmldom.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadlocale.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadsys.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/loadcsl.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/citeproc/citeproc.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/article.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/SqueezeBox.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tabcontent.js')); $document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tooltip.js')); $document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tabcontent.css')); $document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tooltip/tooltip1.css')); $document -> addScript( 'https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'); $document->addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/js/DataTables/DataTables-1.10.9/css/jquery.dataTables.min.css')); $document->addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/DataTables/DataTables-1.10.9/js/jquery.dataTables.min.js')); $document->setTitle("OpenAIRE - Publication".(isset($this -> article -> title)?': '.(strlen($this -> article -> title) > 30?substr($this -> article -> title,0,30).'...':$this -> article -> title):'')); $document->setMetaData( 'description', (isset($this -> article -> title)?$this -> article -> title:''), true ); $application = JFactory :: getApplication(); $user = JFactory :: getUser(); $parameters = JComponentHelper :: getParams('com_openaire'); $canonicalUrl = JRoute :: _('index.php?option=com_openaire&view=article&articleId=' . $this -> articleId); ?>
doiUrl=NULL; if (($this -> articleId == NULL) || ($this -> article == NULL) || ($this -> article -> title == NULL)) { ?>
addCustomTag(''); foreach ($this -> article -> authors as $author) { if (($author -> fullName != NULL) || (($author -> lastName != NULL) && ($author -> firstName != NULL))) { $document -> addCustomTag(''); } } if ($this -> article -> date != NULL) { $document -> addCustomTag(''); } foreach ($this -> article -> datasources as $datasource) { if ($datasource -> url != NULL) { $document -> addCustomTag(''); } } $document -> addCustomTag(''); ?>
article -> accessMode) { case OpenAireViewArticle :: OPEN_ACCESS: $accessModeClass = 'openAccess'; $accessModeTitle = JText :: _('OPEN_ACCESS'); break; case OpenAireViewArticle :: EMBARGO_ACCESS: $accessModeClass = 'embargoAccess'; $accessModeTitle = JText :: _('EMBARGO_ACCESS'); break; case OpenAireViewArticle :: RESTRICTED_ACCESS: $accessModeClass = 'restrictedAccess'; $accessModeTitle = JText :: _('RESTRICTED_ACCESS'); break; case OpenAireViewArticle :: CLOSED_ACCESS: $accessModeClass = 'closedAccess'; $accessModeTitle = JText :: _('CLOSED_ACCESS'); break; default: $accessModeClass = NULL; $accessModeTitle = NULL; } ?> > article -> url == NULL) ? '' : ('')) . $this -> article -> title . (($this -> article -> url == NULL) ? '' : '')); ?>
article -> underCuration){ ?>
'.JText :: _('UNDER_CURATION_MESSAGE').''); ?> .png" />
article -> authors != NULL) || ($this -> article -> year != NULL)) { ?>
itemId; //echo(implode('; ', array_filter(array_map(function ($author) use ($itemId) {return (($author == NULL) || ((($author -> lastName == NULL) || ($author -> firstName == NULL)) && ($author -> fullName == NULL))) ? '' : ('' . (($author -> id == NULL) ? '' : ('')) . ((($author -> lastName == NULL) || ($author -> firstName == NULL)) ? $author -> fullName : ($author -> lastName . ', ' . $author -> firstName)) . (($author -> id == NULL) ? '' : '') . '');}, $this -> article -> authors)))); if (count($this -> article -> authors ) > OpenAireViewArticle :: MAX_AUTHORS) { ?>
lastName == NULL) || ($author -> firstName == NULL)) && ($author -> fullName == NULL))) ? '' : ('' .((($author -> lastName == NULL) || ($author -> firstName == NULL)) ? $author -> fullName : ($author -> lastName . ', ' . $author -> firstName)) . '');}, array_slice($this -> article -> authors , 0, OpenAireViewArticle :: MAX_AUTHORS))))); if (count($this -> article -> authors) > OpenAireViewArticle :: MAX_AUTHORS) { ?> ... article -> authors)); ?> article -> year!= NULL) { ?> ( article -> year); ?>)
article -> publisher != NULL) { ?>
' . $this -> article -> publisher); ?>
article -> journal != NULL) { ?>
' . $this -> article -> journal); ?>
article -> languages != NULL) { ?>
' . implode(', ', $this -> article -> languages)); ?>
article -> type != NULL) { ?>
' . implode(",", $this -> article -> type)); ?>
article -> subjects != NULL || $this->article->inferredSubjects != NULL || $this->article->categorizedSubjects != NULL) { $subjects_clean = array(); $subjects_categorized = array(); $subjects_inferred= array(); foreach ($this->article->subjects as $subject){ $subjects_clean[] = ("".$subject->title.""); } foreach ($this->article->categorizedSubjects as $key => $subjects){ foreach($subjects as $subject){ $subjects_categorized[$key][] = ("" . $subject->title.""); } } foreach ($this->article->inferredSubjects as $key => $subjects){ foreach($subjects as $subject){ $subjects_inferred[$key][] = ("" . $subject->title.""); } } /* NMI following commented out line contains tooltips. Leave for later use */ /* NMI group by classification scheme and in each scheme sort by higher trust level*/ //foreach ($this->article->subjects as $subject){ //if ($subject->inferred == false) $subjects_clean[] = ("".$subject->title.""); /* NMI following commented out line contains tooltips. Leave for later use */ /*if ($subject->inferred == true) $subjects_inferred[] = ("inferred?" inferred":"")."\">" . str_replace("::", "/", $subject->title). ($subject->inferred == true?" getTemplate().'/styles/openaire/images/box_info_ok.png'>
":"") . "
");*/ /* NMI group by classification scheme and in each scheme sort by higher trust level*/ //if ($subject->inferred == true) $subjects_inferred[] = ("inferred?" inferred":"")."\">" . $subject->title. ""); //} ?>
' . implode(', ', $subjects_clean)); ?> '); } foreach($subjects_categorized as $taxonomy => $taxonomySubjects){ ?> "); } ?>

$taxonomySubjects){ ?> "); } ?>
article -> embargoEndDate != NULL) { ?>
article -> embargoEndDate)); ?>
article -> pids != NULL) { mb_internal_encoding('UTF-8'); $pidsToShow=array_filter(array_map(function ($pid) { switch ($pid -> clazz) { case OpenAireViewArticle :: DOI: if($pid -> value !== NULL){ $this->doiUrl= OpenAireViewArticle :: DOI_URL . urlencode($pid -> value) ; } return ($pid -> value == NULL) ? '' : ('' . ((mb_substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . ''); case OpenAireViewArticle :: PMC: return ($pid -> value == NULL) ? '' : ('' . ((mb_substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . ''); //case OpenAireViewArticle :: ARXIV: //return ($pid -> value == NULL) ? '' : ('' . ((substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . ''); default: return ''; } }, $this -> article -> pids)); if ($pidsToShow != NULL) { ?>
" . implode(', ',$pidsToShow));?>
article -> description != NULL) { ?>
article -> description); ?>
    article -> citations != NULL)){ $citations = sizeof($this -> article -> citations); } $inferredRelatedDatasets = array(); $harvestedRelatedDatasets = array(); $claimedRelatedDatasets = array(); $otherRelatedDatasets = array(); if($this->article->relatedDatasets != null){ foreach ($this->article->relatedDatasets as $relatedDataset) { if ($relatedDataset->provenance != null) { if (strpos($relatedDataset->provenance, 'iis') !== false) { $inferredRelatedDatasets[] = $relatedDataset; } else if (strpos($relatedDataset->provenance, 'sysimport') !== false) { $harvestedRelatedDatasets[] = $relatedDataset; } else if (strpos($relatedDataset->provenance, 'user') !== false) { $claimedRelatedDatasets[] = $relatedDataset; } else { $otherRelatedDatasets[] = $relatedDataset; } } } } $externalInferredDatasets = array(); $externalHarvestedDatasets = array(); $externalClaimedDatasets = array(); $externalOtherDatasets = array(); if($this->article->externalDatasets != null){ foreach ($this->article->externalDatasets as $externalDataset) { if ($externalDataset->provenance != null) { if (strpos($externalDataset->provenance, 'iis') !== false) { $externalInferredDatasets[] = $externalDataset; } else if (strpos($relatedDataset->provenance, 'sysimport') !== false) { $externalHarvestedDatasets[] = $externalDataset; } else if (strpos($relatedDataset->provenance, 'user') !== false) { $externalClaimedDatasets[] = $externalDataset; } else { $externalOtherDatasets[] = $externalDataset; } } } } $totalDatasets = sizeof($inferredRelatedDatasets)+sizeof($harvestedRelatedDatasets)+ sizeof($claimedRelatedDatasets) + sizeof($externalInferredDatasets)+ sizeof($externalHarvestedDatasets)+ sizeof($externalClaimedDatasets); if($this -> article -> similarPublications != null){ $totalPublications = sizeof($this -> article -> similarPublications); } ?>
  • article ->bioentities)>0){?>
  • article ->bioentities).')'); ?>
  • article -> citations == NULL)) { ?>
    article -> citations) > OpenAireViewArticle :: MAX_RELATED) { ?> '.(JText :: _('CITATIONS_TECHNOLOGY')).'

    '; /* Remove the usort if citations are sorted from db*/ //usort($this -> article -> citations , function ($citation1, $citation2) {return explode("]",explode("[",$citation1 -> title)[1])[0] - explode("]",explode("[",$citation2 -> title)[1])[0] ;}); echo("
      "); foreach (array_slice($this -> article -> citations, 0, OpenAireViewArticle :: MAX_RELATED) as $citation) { echo(PublicationHelper :: formatCitationLinks($citation)); } if (count($this -> article -> citations) > OpenAireViewArticle :: MAX_RELATED) { ?>
      article -> citations, OpenAireViewArticle :: MAX_RELATED, count($this -> article -> citations)) as $citation) { echo(PublicationHelper :: formatCitationLinks($citation)); } ?>
      "); ?>
  • article -> relatedDatasets == NULL) && ($this -> article -> externalDatasets == NULL)) { ?>

    '; } foreach ( $externalHarvestedDatasets as $relatedDataset) { echo ''; } ?>
    '; echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); echo '
    '; echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); echo '

    trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); } ?> '; } foreach ( $externalClaimedDatasets as $relatedDataset) { echo ''; } ?>
    '; echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); echo '
    '; echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); echo '

    trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;}); ?> '; echo ''; } ?>
    '; echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId)); echo ''; echo('' .($relatedDataset -> trust*100).'
    '.($relatedDataset -> trust*100).'%
    '); echo '
  • article -> similarPublications == NULL)) { ?>

    article -> similarPublications, function ($a, $b) { //if ($a->similarity === $b->similarity) { //if($a->year==null||$b->year==null||$a->year==$b->year){return 0;}return $a->year < $b->year;} return ($a->similarity-$b->similarity); //($a->similarity > $b->similarity) ? -1 : 1; });*/ ?> article -> similarPublications, 0, OpenAireViewArticle :: MAX_RELATED) as $relatedPublication) { // echo(PublicationHelper :: formatTrustMeter($relatedPublication)); // echo(PublicationHelper :: formatPublication($relatedPublication, $this -> itemId)); foreach ($this -> article -> similarPublications as $similarPublication) { $title=PublicationHelper :: _formatTitle(htmlspecialchars($similarPublication -> title), $similarPublication -> accessMode, $similarPublication -> id, $similarPublication -> source, $similarPublication -> url, $itemId, isset($similarPublication -> inferred)?$similarPublication -> inferred:false, isset($similarPublication -> trust)?$similarPublication -> trust:"", isset($similarPublication -> provenance)?$similarPublication -> provenance:""); echo(''); echo(''); if(isset($similarPublication -> inferred)&&($similarPublication -> inferred)){ echo(''); } } ?>
    '.(empty($title)?'-':$title).''.(($similarPublication -> year)==NULL?'-':$similarPublication -> year).''.PublicationHelper :: formatTrustMeter($similarPublication).'
    article -> similarPublications) > OpenAireViewArticle :: MAX_RELATED) { ?>
    article -> similarPublications, OpenAireViewArticle :: MAX_RELATED) as $relatedPublication) { echo(PublicationHelper :: formatTrustMeter($relatedPublication)); echo(PublicationHelper :: formatPublication($relatedPublication, $this -> itemId)); } ?>
  • article->bioentities)!=0){ foreach ($this -> article->bioentities as $key => $bioentityGroup) { ?>
  • '; echo(''); echo(''); echo ''; } ?>
    '.$bioentity->id.''.$bioentity->sitename.'

article -> pids != NULL) { $doi=''; $arxiv=''; foreach($this -> article -> pids as $pid){ if(strpos($pid-> clazz,OpenAireViewArticle :: DOI)!==false){ $doi=$pid-> value; }else if(strpos($pid-> clazz,OpenAireViewArticle :: ARXIV)!==false){ $arxiv=$pid-> value; } } if($doi!='' ){ echo '
'; }else if($arxiv!=''){ echo '
'; } } ?> name != NULL) && ($datasource -> name != OpenAireViewArticle :: OTHER_RESOURCES) && ($datasource -> name != OpenAireViewArticle :: UNKNOWN_REPOSITORY);}, $this -> article -> datasources)) != NULL) { ?>

    publisherJournal=(($this -> article -> publisher != NULL)?$this -> article -> publisher:''). (($this -> article -> publisher != NULL && $this -> article -> journal != NULL)?'/ ':''). (($this -> article -> journal != NULL)?$this -> article -> journal:''); $this->accessModeClass = 'openAccess'; $this->accessModeTitle = JText :: _('OPEN_ACCESS'); if(!empty($this->publisherJournal)&&$this->doiUrl != NULL){ echo( '
  • '. (($this->doiUrl == NULL) ? '' : ('')) . $this->publisherJournal . (($this->doiUrl == NULL) ? '' : '') .'
  • '); } foreach($this -> article -> datasources as $datasource) { if (($datasource -> name != NULL) && ($datasource -> name != OpenAireViewArticle :: OTHER_RESOURCES) && ($datasource -> name != OpenAireViewArticle :: UNKNOWN_REPOSITORY)) { switch ($datasource -> accessMode) { case OpenAireViewArticle :: OPEN_ACCESS: $accessModeClass = 'openAccess'; $accessModeTitle = JText :: _('OPEN_ACCESS'); break; case OpenAireViewArticle :: EMBARGO_ACCESS: $accessModeClass = 'embargoAccess'; $accessModeTitle = JText :: _('EMBARGO_ACCESS'); break; case OpenAireViewArticle :: RESTRICTED_ACCESS: $accessModeClass = 'restrictedAccess'; $accessModeTitle = JText :: _('RESTRICTED_ACCESS'); break; case OpenAireViewArticle :: CLOSED_ACCESS: $accessModeClass = 'closedAccess'; $accessModeTitle = JText :: _('CLOSED_ACCESS'); break; default: $accessModeClass = NULL; $accessModeTitle = NULL; } ?> > url == NULL) ? '' : ('')) . $datasource -> name . (($datasource -> url == NULL) ? '' : '')); ?>
article -> sources != NULL) && (array_filter(array_map(function ($datasource) {return ($datasource -> name == NULL) || ($datasource -> name == OpenAireViewArticle :: OTHER_RESOURCES) || ($datasource -> name == OpenAireViewArticle :: UNKNOWN_REPOSITORY);}, $this -> article -> datasources)) != NULL)) { ?>

    article -> datasources as $datasource) { if ((($datasource -> name == OpenAireViewArticle :: OTHER_RESOURCES) || ($datasource -> name == OpenAireViewArticle :: UNKNOWN_REPOSITORY)) && array_key_exists($i, $this -> article -> sources)) { switch ($datasource -> accessMode) { case OpenAireViewArticle :: OPEN_ACCESS: $accessModeClass = 'openAccess'; $accessModeTitle = JText :: _('OPEN_ACCESS'); break; case OpenAireViewArticle :: EMBARGO_ACCESS: $accessModeClass = 'embargoAccess'; $accessModeTitle = JText :: _('EMBARGO_ACCESS'); break; case OpenAireViewArticle :: RESTRICTED_ACCESS: $accessModeClass = 'restrictedAccess'; $accessModeTitle = JText :: _('RESTRICTED_ACCESS'); break; case OpenAireViewArticle :: CLOSED_ACCESS: $accessModeClass = 'closedAccess'; $accessModeTitle = JText :: _('CLOSED_ACCESS'); break; default: $accessModeClass = NULL; $accessModeTitle = NULL; } ?> > url == NULL) ? '' : ('')) . $this -> article -> sources[$i++] . (($datasource -> url == NULL ? '' : ''))); ?>
article -> projects != NULL) { ?>

article->contexts)){ $count_context_with_type_community=0; foreach($this -> article -> contexts as $context){ if ($context->type != "community"){ continue; } $count_context_with_type_community=$count_context_with_type_community+1; } if($count_context_with_type_community>0){ ?>
article -> contexts as $context) { if ($context->type != "community") continue; ?>

    categories)==0){ ?>
  • name ;?>
  • categories as $category) { foreach ($category->concepts as $concept) {?>
  • name ;?> name; ?>: name; ?>

name != NULL);}, $this -> article -> collectedFrom)) == NULL) { ?>