Line 225... |
Line 225... |
225 |
// ou code nomenclatural (format BDNFFnn999999)
|
225 |
// ou code nomenclatural (format BDNFFnn999999)
|
226 |
// ou code taxonomique (format BDNFFnt999999)
|
226 |
// ou code taxonomique (format BDNFFnt999999)
|
Line 227... |
Line 227... |
227 |
|
227 |
|
228 |
$retour = array();
|
228 |
$retour = array();
|
229 |
//TODO: voir ce qu'on fait pour l'import de différent référentiels
|
229 |
//TODO: voir ce qu'on fait pour l'import de différent référentiels
|
230 |
preg_match('/BDNFFnn([0-9][0-9]*)/',$identifiant_espece, $elements);
|
230 |
preg_match('/BDNFFnn(\d+)/',$identifiant_espece, $elements);
|
231 |
if (isset($elements[1])) {
|
231 |
if (isset($elements[1])) {
|
232 |
// Numero nomenclatural
|
232 |
// Numero nomenclatural
|
233 |
$infos_taxon = $this->rechercherInformationsComplementairesSurNumNom($elements[1]);
|
233 |
$infos_taxon = $this->rechercherInformationsComplementairesSurNumNom($elements[1]);
|
234 |
$retour = array("nom_sel" => $infos_taxon['Nom_Retenu'], "en_id_nom" => $elements[1]);
|
234 |
$retour = array("nom_sel" => $infos_taxon['Nom_Retenu'], "en_id_nom" => $elements[1]);
|
235 |
} else {
|
235 |
} else {
|
236 |
// Numero taxonomique ou nom scientifique
|
236 |
// Numero taxonomique ou nom scientifique
|
237 |
preg_match('/BDNFFnt([0-9][0-9]*)/', $identifiant_espece, $elements);
|
237 |
preg_match('/BDNFFnt(\d+)/', $identifiant_espece, $elements);
|
238 |
if (isset($elements[1])) {
|
238 |
if (isset($elements[1])) {
|
239 |
// Numero taxonomique
|
239 |
// Numero taxonomique
|
240 |
$infos_taxon = (array)$this->effectuerRequeteInfosComplementairesSurNumTax($elements[1]);
|
240 |
$infos_taxon = (array)$this->effectuerRequeteInfosComplementairesSurNumTax($elements[1]);
|
241 |
if(isset($infos_taxon['nom_retenu.libelle']) && isset($infos_taxon['id'])) {
|
241 |
if(isset($infos_taxon['nom_retenu.libelle']) && isset($infos_taxon['id'])) {
|