예제 #1
0
$installationKey = '';
$datasetKey = '';
$endpointKey = '';
$idigbioKey = '';
if (isset($GBIF_USERNAME) && isset($GBIF_PASSWORD) && isset($GBIF_ORG_KEY)) {
    $collPubArr = $collManager->getCollPubArr($collId);
    if ($collPubArr[$collId]['publishToGbif']) {
        $publishGBIF = true;
    }
    if ($collPubArr[$collId]['publishToIdigbio']) {
        $publishIDIGBIO = true;
    }
}
if ($action) {
    if ($action == 'Save Key') {
        $collManager->setAggKeys($_POST['aggKeysStr']);
        $collManager->updateAggKeys($collId);
    } else {
        if (!array_key_exists('dets', $_POST)) {
            $includeDets = 0;
            $dwcaManager->setIncludeDets(0);
        }
        if (!array_key_exists('imgs', $_POST)) {
            $includeImgs = 0;
            $dwcaManager->setIncludeImgs(0);
        }
        if (!array_key_exists('redact', $_POST)) {
            $redactLocalities = 0;
            $dwcaManager->setRedactLocalities(0);
        }
        $dwcaManager->setTargetPath($serverRoot . (substr($serverRoot, -1) == '/' ? '' : '/') . 'collections/datasets/dwc/');