Esempio n. 1
0
<?php

include_once '../config/symbini.php';
include_once $serverRoot . '/classes/TaxonProfileManager.php';
Header("Content-Type: text/html; charset=" . $charset);
$descrDisplayLevel;
$taxonValue = array_key_exists("taxon", $_REQUEST) ? $_REQUEST["taxon"] : "";
$taxAuthId = array_key_exists("taxauthid", $_REQUEST) ? $_REQUEST["taxauthid"] : 1;
$clValue = array_key_exists("cl", $_REQUEST) ? $_REQUEST["cl"] : 0;
$projValue = array_key_exists("proj", $_REQUEST) ? $_REQUEST["proj"] : 0;
$lang = array_key_exists("lang", $_REQUEST) ? $_REQUEST["lang"] : $defaultLang;
$descrDisplayLevel = array_key_exists("displaylevel", $_REQUEST) ? $_REQUEST["displaylevel"] : "";
//if(!$projValue && !$clValue) $projValue = $defaultProjId;
$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();
Esempio n. 2
0
<?php

include_once '../config/symbini.php';
include_once $SERVER_ROOT . '/content/lang/taxa/index.' . $LANG_TAG . '.php';
include_once $SERVER_ROOT . '/classes/TaxonProfileManager.php';
Header("Content-Type: text/html; charset=" . $CHARSET);
$taxonValue = array_key_exists("taxon", $_REQUEST) ? $_REQUEST["taxon"] : "";
$taxAuthId = array_key_exists("taxauthid", $_REQUEST) ? $_REQUEST["taxauthid"] : 1;
$clValue = array_key_exists("cl", $_REQUEST) ? $_REQUEST["cl"] : 0;
$projValue = array_key_exists("proj", $_REQUEST) ? $_REQUEST["proj"] : 0;
$lang = array_key_exists("lang", $_REQUEST) ? $_REQUEST["lang"] : $DEFAULT_LANG;
$descrDisplayLevel = array_key_exists("displaylevel", $_REQUEST) ? $_REQUEST["displaylevel"] : "";
//if(!$projValue && !$clValue) $projValue = $defaultProjId;
$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();
}
$ambiguous = $taxonManager->getAmbSyn();