Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3527 → Rev 3528

/trunk/jrest/services/CelWidgetSaisie.php
117,7 → 117,6
]); // CONCAT('{\"type\":\"Point\",\"coordinates\":[', longitude, ',', latitude,']}'),
$obsAAjouter['geodatum'] = 'WGS84';
 
$obsAAjouter['certainty'] = isset($obs['certitude']) ? $obs['certitude'] : null;
$obsAAjouter['phenology'] = isset($obs['phenologie']) ? $obs['phenologie'] : null;
$obsAAjouter['coef'] = isset($obs['abondance']) ? $obs['abondance'] : null;
 
126,6 → 125,21
$obsAAjouter['date_updated'] = $obsAAjouter['date_created'];
$obsAAjouter['date_published'] = $obsAAjouter['date_created'];
 
$obsAAjouter['certainty'] = '';
if (isset($obs['certitude'])) {
switch ($obs['certitude']) {
case 'certaine':
$obsAAjouter['certainty'] = 'certain';
break;
case 'douteuse':
$obsAAjouter['certainty'] = 'douteux';
break;
default:
$obsAAjouter['certainty'] = $obs['certitude'];
break;
}
}
 
if ($this->isFromPlantNet) {
$obsAAjouter['input_source'] = 'PlantNet';
$obsAAjouter['plantnet_id'] = $obs['obs_id'];