$urlPrefix = 'http://' . $_SERVER['SERVER_NAME']; if ($_SERVER['SERVER_PORT'] && $_SERVER['SERVER_PORT'] != 80) { $urlPrefix .= ':' . $_SERVER['SERVER_PORT']; } $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) {