Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 963 Rev 994
Line 101... Line 101...
101
		$donnees['eflore'] = $this->getEfloreMiniature();
101
		$donnees['eflore'] = $this->getEfloreMiniature();
102
		return $donnees;
102
		return $donnees;
103
	}
103
	}
Line 104... Line 104...
104
	
104
	
-
 
105
	private function getChorodepMiniature() {
-
 
106
		$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
-
 
107
		$url = "";
105
	private function getChorodepMiniature() {
108
		if ($projetRepartition != "") {
106
		$this->cartes->setProjet('chorodep');
109
			$this->cartes->setProjet($projetRepartition);
107
		$this->cartes->setLargeur('190x178');
110
			$this->cartes->setLargeur('190x178');
108
		//TODO: démochir ce code
111
			//TODO: démochir ce code
109
		// Chargement des nn des synonymes pour obtenir une carte plus complète
112
			// Chargement des nn des synonymes pour obtenir une carte plus complète
110
		$noms = $this->conteneur->getApiNoms();
113
			$noms = $this->conteneur->getApiNoms();
111
		$syns = $noms->getSynonymes($this->nomCourant->getNnr());
114
			$syns = $noms->getSynonymes($this->nomCourant->getNnr());
112
		$nns_syns = array_keys($syns['resultat']);
115
			$nns_syns = array_keys($syns['resultat']);
113
		$nns_syns[] = $this->nomCourant->getNnr();
116
			$nns_syns[] = $this->nomCourant->getNnr();
114
		$id = 'nn:'.implode(',', $nns_syns);
117
			$id = 'nn:'.implode(',', $nns_syns);
115
		$this->cartes->setId($id);
118
			$this->cartes->setId($id);
-
 
119
			$url = $this->cartes->getUrlPng();
-
 
120
		}
116
		return $this->cartes->getUrlPng();
121
		return $url;
Line 117... Line 122...
117
	}
122
	}
118
	
123
	
119
	private function getEfloreMiniature() {
124
	private function getEfloreMiniature() {