Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1746 → Rev 1772

/trunk/jrest/lib/RechercheInfosTaxonBeta.php
227,7 → 227,7
 
$retour = array();
//TODO: voir ce qu'on fait pour l'import de différent référentiels
preg_match('/BDNFFnn([0-9][0-9]*)/',$identifiant_espece, $elements);
preg_match('/BDNFFnn(\d+)/',$identifiant_espece, $elements);
if (isset($elements[1])) {
// Numero nomenclatural
$infos_taxon = $this->rechercherInformationsComplementairesSurNumNom($elements[1]);
234,7 → 234,7
$retour = array("nom_sel" => $infos_taxon['Nom_Retenu'], "en_id_nom" => $elements[1]);
} else {
// Numero taxonomique ou nom scientifique
preg_match('/BDNFFnt([0-9][0-9]*)/', $identifiant_espece, $elements);
preg_match('/BDNFFnt(\d+)/', $identifiant_espece, $elements);
if (isset($elements[1])) {
// Numero taxonomique
$infos_taxon = (array)$this->effectuerRequeteInfosComplementairesSurNumTax($elements[1]);