* @return array
*/
function createAffiliationsList($authors, $article) {
$affilList = array();
foreach ($authors as $author) {
if(!in_array($author->getAffiliation($article->getLocale()), $affilList)) {
$affilList[] = $author->getAffiliation($article->getLocale()) ;
}
}
return $affilList;
}
/**
* Format a date by Y-m-d format.
* @param $date string
* @return string
*/
function formatDate($date) {
if ($date == '') return null;
return date('Y-m-d', strtotime($date));
}
}
?>