Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1329 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1329 Rev 1346
Line 35... Line 35...
35
	private function getChorodepMiniature() {
35
	private function getChorodepMiniature() {
36
		$url_carte = null;
36
		$url_carte = null;
37
		if(Config::get($this->referentiel.'.baseRepartition') != null) {
37
		if (Config::get($this->referentiel.'.baseRepartition') != null) {
38
			$this->cartes->setProjet(Config::get($this->referentiel.'.baseRepartition'));
38
			$this->cartes->setProjet(Config::get($this->referentiel.'.baseRepartition'));
39
			$this->cartes->setLargeur('570x534');
39
			$this->cartes->setLargeur('570x534');
40
			//TODO: démochir ce code
-
 
41
			// Chargement des nn des synonymes pour obtenir une carte plus complète
-
 
42
			$noms = $this->conteneur->getApiNoms();
-
 
43
			$syns = $noms->getSynonymes($this->nomCourant->getNnr());
-
 
44
			$nns_syns = array_keys($syns['resultat']);
-
 
45
			$nns_syns[] = $this->nomCourant->getNnr();
40
			$nt = $this->nomCourant->getNt();
46
			$id = 'nn:'.implode(',', $nns_syns);
-
 
47
			$this->cartes->setId($id);
41
			$this->cartes->setId("{$this->referentiel}.nt:$nt");
48
			$url_carte = $this->cartes->getUrlDataSvg();
42
			$url_carte = $this->cartes->getUrlDataSvg();
49
		}
43
		}
50
		return $url_carte;
44
		return $url_carte;
51
	}
45
	}
52
}
46
}