Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 487 Rev 493
Line 71... Line 71...
71
		$this->creerIndexFinal();
71
		$this->creerIndexFinal();
72
		$this->ajouterChampsDansIndexFinal();
72
		$this->ajouterChampsDansIndexFinal();
73
		$this->ajouteurAuteurImage();
73
		$this->ajouteurAuteurImage();
74
		$this->decomposerNomSci();
74
		$this->decomposerNomSci();
75
		$this->ajouteurNomSciHtml();
75
		$this->ajouteurNomSciHtml();
-
 
76
		$this->ajouterCorrections();
76
		$this->creerFichierCsvIndexFinal();
77
		$this->creerFichierCsvIndexFinal();
77
	}
78
	}
Line 78... Line 79...
78
 
79
 
79
	private function chargerIndexSp() {
80
	private function chargerIndexSp() {
Line 293... Line 294...
293
			$this->messages->afficherAvancement("Création des noms scientifiques HTML en cours");
294
			$this->messages->afficherAvancement("Création des noms scientifiques HTML en cours");
294
		}
295
		}
295
		echo "\n";
296
		echo "\n";
296
	}
297
	}
Line -... Line 298...
-
 
298
 
-
 
299
	private function ajouterCorrections() {
-
 
300
		$correctionsFichier = $this->dossierBase.self::DOSSIER_V2.'coste_v2_00_corrections.tsv';
-
 
301
		$corrections = $this->outils->transformerTxtTsvEnTableau($correctionsFichier);
-
 
302
		foreach ($corrections as $infos) {
-
 
303
			$nnc = $infos['num_nom_coste'];
-
 
304
			$infosACorriger = $this->indexFinal[$nnc];
-
 
305
			foreach ($corrections as $champ => $valeur) {
-
 
306
				$infosACorriger[$champ] = $valeur;
-
 
307
			}
-
 
308
			$this->indexFinal[$nnc] = $infosACorriger;
-
 
309
		}
-
 
310
	}
297
 
311
 
298
	private function creerFichierCsvIndexFinal() {
312
	private function creerFichierCsvIndexFinal() {
299
		$lignes = array();
313
		$lignes = array();
300
		array_unshift($this->indexFinal, $this->enteteFinal);
314
		array_unshift($this->indexFinal, $this->enteteFinal);
301
		foreach ($this->indexFinal as $infos) {
315
		foreach ($this->indexFinal as $infos) {
302
			$lignes[] = implode("\t", $infos);
316
			$lignes[] = implode("\t", $infos);
Line 303... Line 317...
303
		}
317
		}
304
 
318