Esempio n. 1
0
$taxonManager = new TaxonProfileManager();
if ($taxAuthId || $taxAuthId === "0") {
    $taxonManager->setTaxAuthId($taxAuthId);
}
if ($clValue) {
    $taxonManager->setClName($clValue);
}
if ($projValue) {
    $taxonManager->setProj($projValue);
}
if ($lang) {
    $taxonManager->setLanguage($lang);
}
if ($taxonValue) {
    $taxonManager->setTaxon($taxonValue);
    $taxonManager->setAttributes();
}
$spDisplay = $taxonManager->getDisplayName();
$taxonRank = $taxonManager->getRankId();
$links = $taxonManager->getTaxaLinks();
if ($links) {
    foreach ($links as $linkKey => $linkUrl) {
        if ($linkUrl['title'] == 'REDIRECT') {
            $locUrl = str_replace('--SCINAME--', urlencode($taxonManager->getSciName()), $linkUrl['url']);
            header('Location: ' . $locUrl);
            exit;
        }
    }
}
$displayLocality = 0;
$isEditor = false;