Ejemplo n.º 1
0
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;
if ($symbUid) {
    if ($isAdmin || array_key_exists("TaxonProfile", $userRights)) {
        $isEditor = true;
    }