Subversion Repositories eFlore/Applications.cel

Rev

Rev 1591 | Rev 1772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1591 Rev 1746
Line 222... Line 222...
222
	
222
	
223
	function rechercherInfosSurTexteCodeOuNumTax($identifiant_espece) {
223
	function rechercherInfosSurTexteCodeOuNumTax($identifiant_espece) {
224
		// texte libre, nom scientifique, 
224
		// texte libre, nom scientifique, 
225
		// ou code nomenclatural (format BDNFFnn999999) 
225
		// ou code nomenclatural (format BDNFFnn999999) 
226
		// ou code taxonomique (format BDNFFnt999999)
-
 
227
		$identifiant_espece=trim($identifiant_espece);
-
 
228
		$identifiant_espece=utf8_encode($identifiant_espece);
226
		// ou code taxonomique (format BDNFFnt999999)
229
		
227
 
230
		$retour = array();
228
		$retour = array();
231
		//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
232
		preg_match('/BDNFFnn([0-9][0-9]*)/',$identifiant_espece, $elements);
230
		preg_match('/BDNFFnn([0-9][0-9]*)/',$identifiant_espece, $elements);
233
		if (isset($elements[1])) {
231
		if (isset($elements[1])) {