Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2929 Rev 3017
Line 177... Line 177...
177
			$widget['donnees']['nom_sci_espece_defaut'] = $nom['nom_complet'];
177
			$widget['donnees']['nom_sci_espece_defaut'] = $nom['nom_complet'];
178
			$widget['donnees']['infos_espece'] = $this->array2js($nom, true);
178
			$widget['donnees']['infos_espece'] = $this->array2js($nom, true);
179
		}
179
		}
Line 180... Line 180...
180
 
180
 
181
		$projetsAListeDeNoms = $this->transformerEnTableau($this->config['projets']['liste_noms']);
181
		$projetsAListeDeNoms = $this->transformerEnTableau($this->config['projets']['liste_noms']);
182
		if (in_array($this->projet, $projetsAListeDeNoms)) {
182
		if (in_array($this->projet, $projetsAListeDeNoms) && !$this->especeEstImposee()) {
183
			$projetsAListeDeNomsSciEtVerna = $this->transformerEnTableau($this->config['projets']['liste_noms_sci_et_verna']);
183
			$projetsAListeDeNomsSciEtVerna = $this->transformerEnTableau($this->config['projets']['liste_noms_sci_et_verna']);
184
			if (in_array($this->projet, $projetsAListeDeNomsSciEtVerna)) {
184
			if (in_array($this->projet, $projetsAListeDeNomsSciEtVerna)) {
185
				$widget['donnees']['taxons'] = $this->recupererListeNoms();
185
				$widget['donnees']['taxons'] = $this->recupererListeNoms();
186
			} else {
186
			} else {
Line 347... Line 347...
347
	/**
347
	/**
348
	 * Lit une liste de taxons depuis un fichier tsv fourni
348
	 * Lit une liste de taxons depuis un fichier tsv fourni
349
	 */
349
	 */
350
	protected function recupererListeTaxon() {
350
	protected function recupererListeTaxon() {
351
		$taxons = array();
351
		$taxons = array();
-
 
352
		if ($this->projet == 'missions-flore') {
-
 
353
			$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_'.$this->mission.'_taxons.tsv';
-
 
354
		} else {
352
		$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_taxons.tsv';
355
			$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_taxons.tsv';
-
 
356
		}
353
		if (file_exists($fichier_tsv) && is_readable($fichier_tsv)) {
357
		if (file_exists($fichier_tsv) && is_readable($fichier_tsv)) {
354
			$taxons = $this->decomposerFichierTsv($fichier_tsv);
358
			$taxons = $this->decomposerFichierTsv($fichier_tsv);
355
		} else {
359
		} else {
356
			$this->debug[] = "Impossible d'ouvrir le fichier '$fichier_tsv'.";
360
			$this->debug[] = "Impossible d'ouvrir le fichier '$fichier_tsv'.";
357
		}
361
		}