} /* if (isset($_GET['style'])) { $cite_style = strtolower(trim($_GET['style'])); } $cite_style_template = SB.'template'.DS.'citation'.DS.$cite_style.'_style_template.php'; if (!file_exists($cite_style_template)) { exit(__('Sorry, no cite template available.')); } */ require SIMBIO . 'simbio_FILE/simbio_directory.inc.php'; $dir = new simbio_directory(SB . 'template' . DS . $sysconf['template']['theme'] . DS . 'citation'); $style_files = $dir->getFileList(); // create Biblio $biblio = new Biblio($dbs, $biblio_id); $biblio_detail = $biblio->detail(); // var_dump($biblio_detail); extract($biblio_detail); // Pre-proccess author $authors_string = ''; $author_list = array(); $last_author = ''; $a = 0; foreach ($authors as $auth) { // invert first author name if it is not inverted if ($a == 0 && stripos($auth['author_name'], ',', 2) === false) { $last_name = strrpos($auth['author_name'], ' ') + 1; $name = substr($auth['author_name'], $last_name); die($name); $author_list[] = $name; } else {