";
$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 .= "
".str_replace("'", "\'", $doc->title)."
";
foreach ($doc->fields as $name=>$values) {
$tip .= ''.$name.': ';
for ($i = 0; $i < count($values); $i++) {
$value = $values[$i];
if ($i > 0)
$tip .= ' - ';
$value = preg_replace("/[\n\r]/", "", str_replace("'", "\'", trim($value)));
if (strlen($value) > 200)
$value = substr($value, 0, 197).'...';
$tip .= $value;
}
$tip .= '
';
}
$tip .= '
".str_replace("'", "\'", $doc->title)."
";
$tip .= 'Author(s): ';
foreach($doc->authors as $i=>$name) {
if ($i > 0)
$tip .= " - ";
$tip .= $name;
}
$tip .= '
';
$tip .= 'Description: ';
$desc = preg_replace("/[\n\r]/", "", str_replace("'", "\'", trim($doc->description)));
if (strlen($desc) > 200)
$desc = substr($desc, 0, 197).'...';
$desc = str_replace("'", "", $desc);
$tip .= $desc.'
';
$tip .= 'Repository: '.str_replace("'", "\'", $doc->repositoryName).'
';
$tip .= 'Language: '.$doc->language.'
';
$tip .= 'Subject(s): '.str_replace("'", "\'", $doc->subjects).'
';
$tip .= 'Publisher: '.str_replace("'", "\'", $doc->publisher).'
';
$tip .= 'Publication Date: '.$doc->publicationDate.'
';
$tip .= 'Project(s): ';
foreach($doc->projects as $i=>$proj) {
if ($i > 0)
$tip .= "- ";
$tip .= $proj->projectAcronym;
}
$tip .= '
';
$tip .= 'Access: '.$doc->accessMode.'
';
$tip .= 'Embargo End Date: '.(($doc->embargoEndDate != "")?$doc->embargoEndDate:'-').'
';
$tip .= '