Exemplo n.º 1
0
$citationFormat .= $defaultTitle . '. ' . date('Y') . '. ';
$citationFormat .= 'http//:' . $_SERVER['HTTP_HOST'] . $clientRoot . (substr($clientRoot, -1) == '/' ? '' : '/') . 'index.php. ';
$citationFormat .= 'Accessed on ' . date('F d') . '. ';
if ($translations) {
    if (in_array($language, $translations)) {
        $newTrans = array();
        foreach ($translations as $trans) {
            if ($trans != $language) {
                $newTrans[] = $trans;
            }
        }
        $translations = $newTrans;
    }
}
if ($exportType == 'translation') {
    $transExportArr = $glosManager->getTransExportArr($language, $taxon, $translations, $definitions);
    if ($transExportArr) {
        $sciName = $transExportArr['glossSciName'];
        $translationArr = $transExportArr['glossTranslations'];
        $referencesArr = $transExportArr['references'];
        $contributorsArr = $transExportArr['contributors'];
        $imgcontributorsArr = $transExportArr['imgcontributors'];
        unset($transExportArr['glossSciName']);
        unset($transExportArr['glossTranslations']);
        unset($transExportArr['references']);
        unset($transExportArr['contributors']);
        unset($transExportArr['imgcontributors']);
        ksort($referencesArr);
        ksort($contributorsArr);
        ksort($imgcontributorsArr);
        ksort($transExportArr, SORT_STRING | SORT_FLAG_CASE);