/trunk/modules/mobile/sources/Illustrations.php |
---|
29,6 → 29,8 |
$this->images = $this->conteneur->getApiImages(); |
$this->appUrls = $this->conteneur->getAppUrls(); |
$this->meta = $this->conteneur->getApiMetaDonnees(); |
$this->images->setApi(Images::API_DEL); |
} |
public function getDonnees() { |
43,26 → 45,12 |
} |
public function getPhotos() { |
$url_picto = $this->obtenirUrlPicto(); |
$obj = json_decode(file_get_contents($url_picto), true); |
$listePhotos = $obj['resultats']; |
//echo '<pre>'.print_r($obj, true).'</pre>'; |
$listePhotos = $this->images->getInfosImagesGalerieMobile($this->nomCourant->getNnr()); |
foreach($listePhotos as $index) { |
$this->formaterListePhotos($index); |
} |
} |
public function obtenirUrlPicto() { |
//TODO : passer les valeurs dans le fichier de config |
$url_picto = "http://www.tela-botanica.org/eflore/del/services/0.1/images?navigation.depart=0" |
."&navigation.limite=4&masque.nn=".$this->nomCourant->getNnr() |
."&tri=votes&ordre=desc&protocole=3&format=CRS"; |
return ($url_picto); |
} |
private function formaterListePhotos($images) { |
$infosImg['src'] = $images['binaire.href']; |
110,7 → 98,8 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique'); |
$this->images->setProjet($projet); |
$this->images->setNnTaxon($tax); |
$costeImg = $this->images->getInfosImagesTaxons(); |
$costeImg = $this->images->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons(); |
$this->images->setApi(Eflore::API_DEL); |
if (count($costeImg) != 0) { |
$img['src'] = $costeImg[key($costeImg)]['binaire.href']; |
/trunk/modules/popup_galerie/PopupGalerie.php |
---|
50,7 → 50,7 |
public function executerFiche(){ |
$infos = array(); |
$this->images->setProjet('cel'); |
$urls = $this->images->getUrlsImagesParIdsNoms(array($this->num_nom)); |
$urls = $this->images->setApi(Eflore::API_EFLORE)->getUrlsImagesParIdsNoms(array($this->num_nom)); |
$urls = $urls[Registre::get('parametres.referentiel').'.'.$this->num_nom]; |
$ids = array(); |
foreach($urls as $index => $url) { |
/trunk/modules/fiche/formateurs/Illustrations.php |
---|
66,7 → 66,7 |
$donnees = array(); |
$this->images->setProjet($source); |
$nnr = $this->nomCourant->getNnr(); |
$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr)); |
$infos_image = $this->images->setApi(Eflore::API_EFLORE)->getInfosPremiereImageParIdsNoms(array($nnr)); |
if ($infos_image != array()) { |
$image = array_shift($infos_image); |
$donnees['imageUrl'] = $image['binaire.href']; |
79,7 → 79,7 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique'); |
$this->images->setProjet('coste'); |
$this->images->setNnTaxon($tax); |
$costeImg = $this->images->getInfosImagesTaxons(); |
$costeImg = $this->images->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons(); |
foreach ($costeImg as $infos) { |
$coste['images'][] = $infos['binaire.href']; |
} |
97,7 → 97,7 |
$tax = $this->nomCourant->getNomRetenu()->get('num_taxonomique'); |
$this->images->setProjet($projet); |
$this->images->setNnTaxon($tax); |
$costeImg = $this->images->getInfosImagesTaxons(); |
$costeImg = $this->images->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons(); |
foreach ($costeImg as $infos) { |
$dessin['images'][] = $infos['binaire.href']; |
} |
114,6 → 114,11 |
$projets[] = Config::get($this->referentiel.'.baseImagesSupp'); |
foreach ($projets as $projet) { |
if ($projet != "") { |
if ($projet == "cel") { |
$this->images->setApi(Eflore::API_EFLORE); // prêt à passer à API_DEL |
} else { |
$this->images->setApi(Eflore::API_EFLORE); |
} |
$images = $this->initialiserPhotos($projet); |
$this->formaterListePhotos($projet, $images); |
$this->formaterMetaPhotos($projet); |
/trunk/modules/popup_contact/PopupContact.php |
---|
78,7 → 78,7 |
$infos['urlPopUp'] = $this->appUrls->obtenirUrlPopUpContact($this->id_destinataire, $this->id_image); |
$this->imagesApi->setProjet('cel'); |
$imageInfos = $this->imagesApi->getInfosImageParIdImage($this->id_image); |
$imageInfos = $this->imagesApi->setApi(Eflore::API_DEL)->getInfosImageParIdImage($this->id_image); // prêt à passer à API_DEL |
$idObs = $imageInfos['observation.id']; |
$nomSci = $imageInfos['determination.nom_sci']; |
$date = $imageInfos['date']; |
/trunk/modules/popup_illustrations/PopupIllustrations.php |
---|
39,7 → 39,7 |
public function executerFiche(){ |
$infos = array(); |
$this->images->setProjet('cel'); |
$img = $this->images->getInfosImageParIdImage($this->id_image); |
$img = $this->images->setApi(Eflore::API_EFLORE)->getInfosImageParIdImage($this->id_image); // prêt à passer à API_DEL |
$infos['id'] = $this->id_image; |
$img['date'] = $this->formaterDateImg($img['date']); |
$infos['image'] = $img; |
/trunk/modules/resultat/formateurs/nom_scientifique/DeterminationFormateur.php |
---|
50,7 → 50,7 |
$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseDessins')); |
$tax = implode(',', $this->infosPourTpl['taxons']); |
$this->imagesService->setNnTaxon($tax); |
$costeImg = $this->imagesService->getInfosImagesTaxons(); |
$costeImg = $this->imagesService->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons(); |
if (!empty($costeImg)) { |
foreach ($costeImg as $infos) { |
$num_taxon = $infos['num_taxonomique']; |
73,7 → 73,7 |
if (Config::get(Registre::get('parametres.referentiel').'.baseImages') != "") { |
$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseImages')); |
$ids = $this->extraireIdDesNoms(); |
$urls = $this->imagesService->getUrlsImagesParIdsNoms($ids); |
$urls = $this->imagesService->setApi(Eflore::API_EFLORE)->getUrlsImagesParIdsNoms($ids); |
$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReferentielDesIds($urls); |
} |
} |
/trunk/modules/resultat/formateurs/nom_vernaculaire/DeterminationVernaFormateur.php |
---|
55,7 → 55,7 |
$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseDessins')); |
$tax = implode(',', $this->infosPourTpl['taxons']); |
$this->imagesService->setNnTaxon($tax); |
$costeImg = $this->imagesService->getInfosImagesTaxons(); |
$costeImg = $this->imagesService->setApi(Eflore::API_EFLORE)->getInfosImagesTaxons(); |
if (!empty($costeImg)) { |
foreach ($costeImg as $infos) { |
$num_taxon = $infos['num_taxonomique']; |
79,7 → 79,7 |
if (Config::get(Registre::get('parametres.referentiel').'.baseImages') != "") { |
$this->imagesService->setProjet(Config::get(Registre::get('parametres.referentiel').'.baseImages')); |
$nns = $this->extraireNnDesNoms(); |
$urls = $this->imagesService->getUrlsImagesParIdsNoms($nns); |
$urls = $this->imagesService->setApi(Eflore::API_EFLORE)->getUrlsImagesParIdsNoms($nns); |
$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReferentielDesUrls($urls); |
} |
} |