<div style="clear:both;">
					<input type="hidden" name="collid" value="<?php 
    echo $collId;
    ?>
" />
					<input type="submit" name="formsubmit" value="Create/Refresh Darwin Core Archive" />
				</div>
			</fieldset>
		</form>
		<?php 
} else {
    if ($isAdmin) {
        if ($action == 'Create/Refresh Darwin Core Archive(s)') {
            echo '<ul>';
            $dwcaManager->setVerbose(1);
            $dwcaManager->batchCreateDwca($_POST['coll']);
            echo '</ul>';
        }
        ?>
			<div id="dwcaadmindiv" style="margin:10px;display:<?php 
        echo $emode ? 'block' : 'none';
        ?>
;" >
				<form name="dwcaadminform" action="datapublisher.php" method="post" onsubmit="return verifyDwcaAdminForm(this)">
					<fieldset style="padding:15px;">
						<legend><b>Publish / Refresh DWCA Files</b></legend>
						<div style="margin:10px;">
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input name="collcheckall" type="checkbox" value="" onclick="checkAllColl(this)" /> Select/Deselect All<br/> 
							<?php 
        $collArr = $dwcaManager->getCollectionList();
示例#2
0
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/DwcArchiverOccurrence.php';
$collStr = $argv[1];
$serverDomain = $argv[2];
$includeDets = 1;
$includeImgs = 1;
$redactLocalities = 1;
if ($argc > 3 && is_numeric($argv[3])) {
    $includeDets = $argv[3];
    if ($argc > 4 && is_numeric($argv[4])) {
        $includeImgs = $argv[4];
        if ($argc > 5 && is_numeric($argv[5])) {
            $redactLocalities = $argv[5];
        }
    }
}
if ($collStr) {
    $dwcaManager = new DwcArchiverOccurrence();
    $dwcaManager->setIncludeDets($includeDets);
    $dwcaManager->setIncludeImgs($includeImgs);
    $dwcaManager->setRedactLocalities($redactLocalities);
    $dwcaManager->setServerDomain($serverDomain);
    $dwcaManager->setTargetPath($serverRoot . (substr($serverRoot, -1) == '/' ? '' : '/') . 'collections/datasets/dwc/');
    $dwcaManager->setVerbose(0);
    $collArr = explode(',', $collStr);
    $dwcaManager->batchCreateDwca($collArr);
}