Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1068 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1068 Rev 1115
Line 53... Line 53...
53
		if (Config::get(Registre::get('parametres.referentiel').'.baseDessins') != "") {
53
		if (Config::get(Registre::get('parametres.referentiel').'.baseDessins') != "") {
54
			$this->extraireInfosTaxons();
54
			$this->extraireInfosTaxons();
55
			$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseDessins'));
55
			$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseDessins'));
56
			$tax = implode(',', $this->infosPourTpl['taxons']);
56
			$tax = implode(',', $this->infosPourTpl['taxons']);
57
			$this->imagesService->setNnTaxon($tax);
57
			$this->imagesService->setNnTaxon($tax);
58
			$costeImg = $this->imagesService->getInfosImagesTaxons();
58
			$costeImg = $this->imagesService->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons();
59
			if (!empty($costeImg)) {
59
			if (!empty($costeImg)) {
60
				foreach ($costeImg as  $infos) {
60
				foreach ($costeImg as  $infos) {
61
					$num_taxon = $infos['num_taxonomique'];
61
					$num_taxon = $infos['num_taxonomique'];
62
					$images[$num_taxon][] = $infos['binaire.href'];
62
					$images[$num_taxon][] = $infos['binaire.href'];
63
					$this->infosPourTpl['imagesCoste'] = $images;
63
					$this->infosPourTpl['imagesCoste'] = $images;
Line 77... Line 77...
77
 
77
 
78
	private function obtenirUrlsPhotos() {
78
	private function obtenirUrlsPhotos() {
79
		if (Config::get(Registre::get('parametres.referentiel').'.baseImages') != "") {
79
		if (Config::get(Registre::get('parametres.referentiel').'.baseImages') != "") {
80
			$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseImages'));
80
			$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseImages'));
81
			$nns = $this->extraireNnDesNoms();
81
			$nns = $this->extraireNnDesNoms();
82
			$urls = $this->imagesService->getUrlsImagesParIdsNoms($nns);
82
			$urls = $this->imagesService->setApi(Eflore::API_EFLORE)->getUrlsImagesParIdsNoms($nns);
83
			$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReferentielDesUrls($urls);
83
			$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReferentielDesUrls($urls);
84
		}
84
		}
Line 85... Line 85...
85
	}
85
	}