';
$DatasetKey = $list1[$i]["datasetKey"];
if($list1[$i]["protocol"] == "BIOCASE") {
$Endpoint_Query = 'http://api.gbif.org/v0.9/dataset/'.$DatasetKey.'/endpoint';
$jsonEndpoint = file_get_contents($Endpoint_Query);
$json_array_Endpoint = json_decode($jsonEndpoint, true);
foreach ($json_array_Endpoint as $keyE1 => $listE1) {
$Endpoint = $listE1["url"];
} } // if($list1[$i]["protocol"] == "BIOCASE")
$sqlDatasetKey = "SELECT dataset.ID_Dataset, provider.ID_Provider FROM dataset LEFT JOIN provider on dataset.FK_Provider = provider.ID_Provider WHERE dataset.DatasetKey_GBIF = '$DatasetKey' OR provider.Provider = '$Endpoint'";
$resultDatasetKey = mysqli_query($GLOBALS["___mysqli_ston"], $sqlDatasetKey);
$num_rows = mysqli_num_rows($resultDatasetKey);
if($num_rows > 0) {
while($row = mysqli_fetch_object($resultDatasetKey)) { $ID_Dataset = $row->ID_Dataset; }
echo ''; }
echo '';
echo '';
if($Endpoint != "") { echo ''; }
echo 'Preferred Taxon Name:
';
if(isset($list1[$i]["genus"]))
{ echo $list1[$i]["species"]; }
else { echo $list1[$i]["scientificName"]; }
echo '
Catalog No: '.$list1[$i]["catalogNumber"].' Record Basis: '.$list1[$i]["basisOfRecord"].' '; if(isset($list1[$i]["occurrenceID"])) { echo 'Unit GUID: '.$list1[$i]["occurrenceID"].''; } echo ' |
Institution Code:
'.$list1[$i]["institutionCode"].'
Collection Code: '.$list1[$i]["collectionCode"].' |
Name: | '.$list1[$i]["scientificName"].''; echo ' |
Identifier: | '.$list1[$i]["identifiedBy"].' |
Taxonomy: | '.$list1[$i]["family"].' (familia) |
Collector(s): '.$list1[$i]["recordedBy"].'
'; if(isset($list1[$i]["recordNumber"])) { echo 'Field/Collector\'s number: '.$list1[$i]["recordNumber"].' '; } echo 'Collection Date: '; if(isset($list1[$i]["eventDate"])) { echo $list1[$i]["eventDate"]; } else { if(isset($list1[$i]["verbatimEventDate"])) { echo $list1[$i]["verbatimEventDate"]; } } echo ' |
|
Locality | Other info |
---|---|
Country: '.$list1[$i]["country"].' ('.$list1[$i]["countryCode"].')
Locality: '.$list1[$i]["locality"].''; if(isset($list1[$i]["decimalLatitude"])) { echo ' Coordinates (Lat|Lon): '.$list1[$i]["decimalLatitude"].' | '.$list1[$i]["decimalLongitude"].''; } echo ' | ';
if(isset($list1[$i]["elevation"])) { echo
'Altitude: '.$list1[$i]["elevation"].' m '; } echo ' |