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 -> 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) { ?>
...
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, OpenAireViewArticle :: MAX_AUTHORS, count($this -> article -> 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)) { ?>
|
';
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
echo ' | ';
}
foreach ( $externalHarvestedDatasets as $relatedDataset) {
echo '';
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
echo ' |
';
}
?>
trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;});
}
?>
|
';
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
echo ' | ';
}
foreach ( $externalClaimedDatasets as $relatedDataset) {
echo '';
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
echo ' |
';
}
?>
trust == $b->trust) {return 0;}return ($a->trust > $b->trust) ? -1 : 1;});
?>
|
|
';
echo(DatasetHelper :: formatDataset($relatedDataset, $this -> itemId));
echo ' | ';
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(''.(empty($title)?'-':$title).' | ');
echo(''.(($similarPublication -> year)==NULL?'-':$similarPublication -> year).' | ');
if(isset($similarPublication -> inferred)&&($similarPublication -> inferred)){
echo(''.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) {
?>
-