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 -> 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 -> id == NULL) ? '' : ('')) . ((($author -> lastName == NULL) || ($author -> firstName == NULL)) ? $author -> fullName : ($author -> lastName . ', ' . $author -> firstName)) . (($author -> id == NULL) ? '' : '') . '');}, 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 -> id == NULL) ? '' : ('')) . ((($author -> lastName == NULL) || ($author -> firstName == NULL)) ? $author -> fullName : ($author -> lastName . ', ' . $author -> firstName)) . (($author -> id == NULL) ? '' : '') . '');}, 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) {
$subjects_clean = array();
$subjects_inferred= array();
foreach ($this->article->subjects as $subject){
$subjects_clean[] = ("
".$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?"
":"") . "");*/
/* 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)); ?>
$taxonomySubjects){
?>
");
}
?>
article -> embargoEndDate != NULL) { ?>
article -> embargoEndDate)); ?>
article -> pids != NULL) {
$pidsToShow=array_filter(array_map(function ($pid) {
switch ($pid -> clazz) {
case OpenAireViewArticle :: DOI:
return ($pid -> value == NULL) ? '' : ('
' . ((substr($pid -> value, 0, strlen($pid -> clazz . ':')) == ($pid -> clazz . ':')) ? $pid -> value : ($pid -> clazz . ':' . $pid -> value)) . '');
case OpenAireViewArticle :: PMC:
return ($pid -> value == NULL) ? '' : ('
' . ((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)) { ?>
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] ;});
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)) { ?>
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();
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;
}
}
}
if($harvestedRelatedDatasets!=null||$externalHarvestedDatasets!=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).' ');
//" trust*100)."% \" style=\"float:right\" class=\"uk-progress\"> 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));
} ?>