"; $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 .= "

', "; $tip .= "{ mode: 'cursor', display: 'inline', width: 300, style: 'default', sticky: 0 }).tooltip.setStyle('z-index', 100);"; return $tip; } function createDocumentTooltip($doc, $tooltipId) { $tip = "new YOOtooltip('".$tooltipId."', "; $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 .= '

\', '; $tip .= "{ mode: 'cursor', display: 'inline', width: 500, style: 'default', sticky: 0 }).tooltip.setStyle('z-index', 100);"; return $tip; } /* 1: string title, 2: list authors, 3: string description, 4: string repositoryName, 5: string language, 6: string subjects, 7: string publisher, 8: string publicationDate, 9: list projects, 10: string accessMode, 11: string embargoEndDate, 12: string claimDate, 13: string documentId */ function createClaimedDocumentTooltip($doc, $tooltipId) { $tip = "new YOOtooltip('".$tooltipId."', "; $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 .= '

\', '; $tip .= "{ mode: 'cursor', display: 'inline', width: 500, style: 'default', sticky: 0 }).tooltip.setStyle('z-index', 100);"; return $tip; } } ?>