Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1145 Rev 1164
Line 17... Line 17...
17
	private $onglet = 'synthese';
17
	private $onglet = 'synthese';
18
	private $parametres = array();
18
	private $parametres = array();
19
	private $conteneur = null;
19
	private $conteneur = null;
20
	private $num_nom = 0;
20
	private $num_nom = 0;
21
	private $nom_retenu = '';
21
	private $nom_retenu = '';
-
 
22
	private $nom_selectionne = null;
-
 
23
	private $nom_appele_html = null; // le nom et l'auteur par lesquels on est arrivés sur la fiche, en cas de synonymie
22
	private $url;
24
	private $url;
Line 23... Line 25...
23
 
25
 
24
 
26
 
25
	public function initialiser() {
27
	public function initialiser() {
-
 
28
		$this->capturerParametres();
-
 
29
		$this->conteneur = new Conteneur($this->parametres);
26
		$this->capturerParametres();
30
		$nom_courant = $this->conteneur->getNomCourant();
27
		$this->conteneur = new Conteneur($this->parametres);
31
		$this->nom_selectionne = $nom_courant->getNomSelectionne();
-
 
32
		$this->url = $this->conteneur->getAppUrls();
-
 
33
		$this->nom_retenu = $nom_courant->getNomRetenu();
-
 
34
		if ($this->nom_retenu->get('id') != $this->nom_selectionne->get('id')) {
28
		$this->url = $this->conteneur->getAppUrls();
35
			$this->nom_appele_html = $this->nom_selectionne->get('nom_sci_html').' '.$this->nom_selectionne->get('auteur');
29
		$this->nom_retenu = $this->conteneur->getNomCourant()->getNomRetenu();
36
		}
Line 30... Line 37...
30
		spl_autoload_register(array($this, 'chargerClassesOnglets'));
37
		spl_autoload_register(array($this, 'chargerClassesOnglets'));
31
	}
38
	}
Line 93... Line 100...
93
			",botanique,plante,description,ecologie,reconnaitre,fiche espece");
100
			",botanique,plante,description,ecologie,reconnaitre,fiche espece");
Line 94... Line 101...
94
 
101
 
95
		// titre de la fiche
102
		// titre de la fiche
96
		$donnees['nom_retenu_html'] = $this->nom_retenu->get('nom_sci_html').' '.$this->nom_retenu->get('auteur');
103
		$donnees['nom_retenu_html'] = $this->nom_retenu->get('nom_sci_html').' '.$this->nom_retenu->get('auteur');
-
 
104
		$donnees['nom_retenu'] = $this->nom_retenu->get('nom_sci');
97
		$donnees['nom_retenu'] = $this->nom_retenu->get('nom_sci');
105
		$donnees['nom_appele_html'] = $this->nom_appele_html;
98
		$donnees['famille'] = $this->nom_retenu->getTaxonSupRang('180');
106
		$donnees['famille'] = $this->nom_retenu->getTaxonSupRang('180');
Line 99... Line 107...
99
		$donnees['nom_vernaculaire'] = $verna;
107
		$donnees['nom_vernaculaire'] = $verna;
100
 
108