152,6 → 152,9 |
} |
$tableau = json_decode($json, true); |
$tableau = $this->traiterParametres($estProjetDefini, $tableau[0]); |
if (isset($this->parametres['squelette']) && $this->parametres['squelette'] === 'lichens') { |
$tableau['type_especes'] = 'liste'; |
} |
$tableau['especes'] = $this->rechercherInfosEspeces($tableau); |
if ($tableau['milieux'] != "") { |
$tableau['milieux'] = explode(";", $tableau['milieux']); |
362,9 → 365,9 |
*/ |
protected function recupererListeTaxon() { |
$taxons = array(); |
$langue_projet_url = ( isset ( $this->parametres['langue'] ) && $this->parametres['langue'] !== 'fr' ) ? '_' . $this->parametres['langue'] : ''; |
$chemin_images = dirname(__FILE__) . self::DS . 'configurations' . self::DS; |
$fichier_tsv = $chemin_images . 'sauvages_taxons.tsv'; |
// utiliser la ligne ci-dessous quand la liste des lichens sera prĂȘte |
// $fichier_tsv = dirname(__FILE__) . self::DS . 'configurations' . self::DS . 'lichens.tsv'; |
$fichier_tsv = dirname(__FILE__) . self::DS . 'configurations' . self::DS . 'sauvages_taxons.tsv'; |
|
if ( file_exists( $fichier_tsv ) && is_readable( $fichier_tsv ) ) { |
$taxons = $this->decomposerFichierTsv( $fichier_tsv ); |