Esempio n. 1
0
$urlPrefix .= $clientRoot . (substr($clientRoot, -1) == '/' ? '' : '/');
if (file_exists('../../webservices/dwc/rss.xml')) {
    $feedLink = $urlPrefix . 'webservices/dwc/rss.xml';
    echo '<a href="' . $feedLink . '" target="_blank">' . $feedLink . '</a>';
} else {
    echo '--feed not published for any of the collections within the portal--';
}
?>
	</div>
	<?php 
if ($collId) {
    $recFlagArr = $dwcaManager->verifyCollRecords($collId);
    if ($action == 'Create/Refresh Darwin Core Archive') {
        echo '<ul>';
        $dwcaManager->setVerbose(1);
        $dwcaManager->setLimitToGuids(true);
        $dwcaManager->createDwcArchive();
        $dwcaManager->writeRssFile();
        echo '</ul>';
        if ($publishGBIF && $endpointKey) {
            $collManager->triggerGBIFCrawl($datasetKey);
        }
    }
    if ($dwcaArr = $dwcaManager->getDwcaItems($collId)) {
        $dwcUri = '';
        foreach ($dwcaArr as $k => $v) {
            if ($v['collid'] == $collId) {
                $dwcUri = $v['link'];
            }
            ?>
				<div style="margin:10px;">