if ($IS_ADMIN || array_key_exists("Taxonomy", $USER_RIGHTS)) { $editable = true; } $statusStr = ''; if ($editable) { if (array_key_exists("taxonedits", $_POST)) { $statusStr = $taxonEditorObj->submitTaxonEdits($_POST); } elseif ($submitAction == 'updatetaxstatus') { $statusStr = $taxonEditorObj->submitTaxStatusEdits($_POST['parenttid'], $_POST['tidaccepted']); } elseif (array_key_exists("synonymedits", $_REQUEST)) { $statusStr = $taxonEditorObj->submitSynonymEdits($_POST['tidsyn'], $tid, $_POST['unacceptabilityreason'], $_POST['notes'], $_POST['sortsequence']); } elseif ($submitAction == 'linktoaccepted') { $deleteOther = array_key_exists("deleteother", $_REQUEST) ? true : false; $statusStr = $taxonEditorObj->submitAddAcceptedLink($_REQUEST["tidaccepted"], $deleteOther); } elseif (array_key_exists('deltidaccepted', $_REQUEST)) { $statusStr = $taxonEditorObj->removeAcceptedLink($_REQUEST['deltidaccepted']); } elseif (array_key_exists("changetoaccepted", $_REQUEST)) { $tidAccepted = $_REQUEST["tidaccepted"]; $switchAcceptance = false; if (array_key_exists("switchacceptance", $_REQUEST)) { $switchAcceptance = true; } $statusStr = $taxonEditorObj->submitChangeToAccepted($tid, $tidAccepted, $switchAcceptance); } elseif ($submitAction == 'changetonotaccepted') { $tidAccepted = $_REQUEST["tidaccepted"]; $statusStr = $taxonEditorObj->submitChangeToNotAccepted($tid, $tidAccepted, $_POST['unacceptabilityreason'], $_POST['notes']); } elseif ($submitAction == 'updatehierarchy') { $statusStr = $taxonEditorObj->rebuildHierarchy($tid); } elseif ($submitAction == 'Remap Taxon') { $statusStr = $taxonEditorObj->transferResources($_REQUEST['remaptid']); header('Location: taxonomydisplay.php?target=' . $_REQUEST["genusstr"] . '&statusstr=' . $statusStr);