$dlManager->addCondition('processingstatus', 'EQUALS', $_POST['processingstatus']); } if (array_key_exists('customfield1', $_POST) && $_POST['customfield1']) { $dlManager->addCondition($_POST['customfield1'], $_POST['customtype1'], $_POST['customvalue1']); } $dlManager->downloadData(); } elseif ($schema == 'checklist') { if (array_key_exists("publicsearch", $_POST) && $_POST["publicsearch"]) { $dlManager->setSqlWhere($occurManager->getSqlWhere()); } $dlManager->setSchemaType($schema); $dlManager->setCharSetOut($cSet); $dlManager->setDelimiter($format); $dlManager->setZipFile($zip); $taxonFilterCode = array_key_exists("taxonFilterCode", $_POST) ? $_POST["taxonFilterCode"] : 0; $dlManager->setTaxonFilter($taxonFilterCode); $dlManager->downloadData(); } else { $dwcaHandler->setVerbose(0); if ($schema == "coge") { $dwcaHandler->setCollArr($_POST["collid"]); $dwcaHandler->setCharSetOut('UTF-8'); $dwcaHandler->setSchemaType('coge'); $dwcaHandler->setExtended(false); $dwcaHandler->setDelimiter('csv'); $dwcaHandler->setRedactLocalities(0); $dwcaHandler->setIncludeDets(0); $dwcaHandler->setIncludeImgs(0); $dwcaHandler->addCondition('decimallatitude', 'NULL'); $dwcaHandler->addCondition('decimallongitude', 'NULL'); $dwcaHandler->addCondition('catalognumber', 'NOTNULL');