";
$tip .= "".str_replace("'", "\'", $projectInfo->projectName)."
";
$tip .= "Acronym: ".str_replace("'", "\'", $projectInfo->acronym)."
";
$tip .= "Cordis info: ".str_replace("'", "\'", $projectInfo->cordisUrl)."
";
$tip .= "Project n°: ".str_replace("'", "\'", $projectInfo->grandAgreement)."
";
$tip .= "Call Identifier: ".str_replace("'", "\'", $projectInfo->callId)."
";
$tip .= "Start date: ".$projectInfo->startDate."
";
$tip .= "End date: ".$projectInfo->endDate."
";
$tip .= "Special clause 39: ".(($projectInfo->sc39 == true)?'yes':'no')."
";
$tip .= "Programme: ".str_replace("'", "\'", $projectInfo->fundingSpecificProgramName)."
";
$tip .= "Subdivision: ".str_replace("'", "\'", $projectInfo->fundingSubdivisionName)."
";
$tip .= "
".preg_replace("/[\n\r]/", "", str_replace("'", "\'", $doc->title))."
";
if ($doc->authors != null && count($doc->authors) > 0) {
$tip .= 'Author(s): ';
foreach($doc->authors as $i=>$author) {
if ($i > 0)
$tip .= " - ";
$tip .= str_replace("'", "\'", $this->formatAuthorName($author->name, $author->surname));
}
$tip .= '
';
}
$desc = preg_replace("/[\n\r]/", "", str_replace("'", "\'", trim($doc->description)));
if ($desc != null && strlen($desc) > 0 && trim($desc) != '-') {
$tip .= 'Description: ';
if (strlen($desc) > 200)
$desc = substr($desc, 0, 197).'...';
$desc = str_replace("'", "", $desc);
$tip .= $desc.'
';
}
if ($doc->repositoryName != null && strlen(trim($doc->repositoryName)) > 0 && trim($doc->repositoryName) != '-')
$tip .= 'Repository: '.str_replace("'", "\'", $doc->repositoryName).'
';
if ($doc->language != null && strlen(trim($doc->language)) > 0 && trim($doc->language) != '-')
$tip .= 'Language: '.$doc->language.'
';
if ($doc->subjects != null && strlen(trim($doc->subjects)) > 0 && trim($doc->subjects) != '-')
$tip .= 'Subject(s): '.str_replace("'", "\'", $doc->subjects).'
';
if ($doc->publisher != null && strlen(trim($doc->publisher)) > 0 && trim($doc->publisher) != '-')
$tip .= 'Publisher: '.str_replace("'", "\'", $doc->publisher).'
';
if ($doc->publicationDate != null && strlen(trim($doc->publicationDate)) > 0 && trim($doc->publicationDate) != '-')
$tip .= 'Publication Date: '.$doc->publicationDate.'
';
if ($displayOpenaireInfo) {
if (isset($doc->projects)) {
$projectList = '';
foreach($doc->projects as $i=>$proj) {
if ($proj->status == null || $proj->status == 'CONFIRMED') {
if ($i > 0)
$projectList .= "- ";
$projectList .= $proj->project->projectAcronym;
}
}
if ($projectList != '') {
$tip .= 'Project(s): ';
$tip .= $projectList;
}
}
$tip .= '
';
if ($doc->accessMode != null && strlen(trim($doc->accessMode)) > 0 && trim($doc->accessMode) != '-')
$tip .= 'Access: '.$doc->accessMode.'
';
if ($doc->embargoEndDate != null && strlen(trim($doc->embargoEndDate)) > 0 && trim($doc->embargoEndDate) != '-')
$tip .= 'Embargo End Date: '.(($doc->embargoEndDate != "")?$doc->embargoEndDate:'-').'
';
}
$tip .= '