1) { if ($action == 'UpdateStatistics') { echo '

' . $LANG['UPDATE_STATISTICS'] . '

'; $collManager->updateStatistics(true); echo '
'; } } if ($collid && isset($collectionData[$collid])) { $collData = $collectionData[$collid]; $codeStr = ' (' . $collData['institutioncode']; if ($collData['collectioncode']) $codeStr .= '-' . $collData['collectioncode']; $codeStr .= ')'; $_SESSION['colldata'] = $collData; echo '

' . $LANG['COLL_PROF_FOR'] . ':
' . $collData['collectionname'] . $codeStr . '

'; // GBIF citations widget if ($datasetKey) { echo '
'; echo ''; // Check if the Bionomia badge has been created yet - typically lags ~2 weeks behind GBIF publication $bionomiaUrl = 'https://api.bionomia.net/dataset/' . $datasetKey . '/badge.svg'; $ch = curl_init($bionomiaUrl); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_exec($ch); $responseCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // Check the response code - display image if exists if ($responseCode === 200) { echo 'Bionomia dataset badge'; } echo '
'; } if ($editCode) { $deactivateStyle = ''; $deactivateTag = ''; $deactivateMsg = ''; if ($collData['managementtype'] != 'Live Data'){ //Deactivated until these changes can be better reviewed - shooting to re-activate for 3.2 //$deactivateStyle = 'style="pointer-events: none"'; //$deactivateTag = ' (*' . $LANG['DEACTIVATED'] . ')'; //$deactivateMsg = '
* ' . $LANG['DEACTIVATED_MESSAGE'] . '
'; } ?>

1) { ?>

:

:
getIdigbioKey(); if (!$idigbioKey) $idigbioKey = $collManager->findIdigbioKey($collData['recordid']); if ($idigbioKey) { $dataUrl = 'https://www.idigbio.org/portal/recordsets/' . $idigbioKey; ?>
:
Cite this collection:
'; // If GBIF dataset key is available, fetch GBIF format from API if ($collData['publishtogbif'] && $datasetKey && file_exists($SERVER_ROOT . '/includes/citationgbif.php')) { $gbifUrl = 'http://api.gbif.org/v1/dataset/' . $datasetKey; $responseData = json_decode(file_get_contents($gbifUrl)); if ($responseData === null && json_last_error() !== JSON_ERROR_NONE) { error_log('Error in JSON decoding: ' . json_last_error_msg()); throw new Exception('Error in JSON decoding'); } $collData['gbiftitle'] = $responseData->title; $collData['doi'] = $responseData->doi; $_SESSION['colldata'] = $collData; include($SERVER_ROOT . '/includes/citationgbif.php'); } else { include($SERVER_ROOT . '/includes/citationcollection.php'); } echo '