Example #1
0
            $dwcaManager->setIncludeImgs(0);
        }
        if (!array_key_exists('redact', $_POST)) {
            $redactLocalities = 0;
            $dwcaManager->setRedactLocalities(0);
        }
        $dwcaManager->setTargetPath($serverRoot . (substr($serverRoot, -1) == '/' ? '' : '/') . 'collections/datasets/dwc/');
    }
}
if (isset($GBIF_USERNAME) && isset($GBIF_PASSWORD) && isset($GBIF_ORG_KEY)) {
    $installationKey = $collManager->getInstallationKey();
    $datasetKey = $collManager->getDatasetKey();
    $endpointKey = $collManager->getEndpointKey();
    $idigbioKey = $collManager->getIdigbioKey();
    if ($publishIDIGBIO && !$idigbioKey) {
        $idigbioKey = $collManager->findIdigbioKey($collPubArr[$collId]['collectionguid']);
        if ($idigbioKey) {
            $collManager->updateAggKeys($collId);
        }
    }
}
$isEditor = 0;
if ($isAdmin || array_key_exists('CollAdmin', $userRights) && in_array($collId, $userRights['CollAdmin'])) {
    $isEditor = 1;
}
$collArr = array();
if ($collId) {
    $dwcaManager->setCollArr($collId);
    $collArr = $dwcaManager->getCollArr();
}
if ($isEditor) {