Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1216 → Rev 1217

/trunk/metier/api_0.1/Cartes.php
96,6 → 96,14
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlFloreProbablePng() {
$tpl = Config::get('carteFloreProbableTpl');
$params = array('id' => $this->id,
'mime_type' => 'image/png');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
 
public function getLegendeId() {
$tpl = Config::get('legendeIdCarteTpl');
/trunk/presentations/styles/eflore.css
1015,6 → 1015,11
margin-top: 5px;
padding-left: 20px;
}
 
.conteneur_flore_probable {
text-align: center;
}
 
/*----Description+Ecologie-----------------------------------------------------------------------------------*/
 
.citation {
/trunk/modules/fiche/squelettes/fiche_repartition.tpl.html
47,6 → 47,20
</div>
<hr class="nettoyage" />
<?endif;?>
<? if (isset($flore_probable)) : ?>
<div id="flore_probable">
<h2>Carte de la flore probable</h2>
<div class="conteneur_flore_probable">
<img id="carte_flore_probable" alt="Aucune carte de la flore probable pour ce taxon" src="<?= $flore_probable['carte']['url'] ?>" />
</div>
<hr class="nettoyage" />
<span class="conteneur_lien_metadonnees">
<a class="lien_metadonnees lien_popup" href="<?= $flore_probable['meta']['url']; ?>">Voir toutes les metadonnées</a>
</span>
</div>
<hr class="nettoyage" />
<?endif;?>
<div id="cel">
<h2>Observations du carnet en ligne</h2>
/trunk/modules/fiche/formateurs/Repartition.php
36,6 → 36,7
public function obtenirDonnees() {
$this->getRepartition();
$this->getMoissonnage();
$this->getFloreProbable();
$this->donnees['widget']['nt'] = $this->nomCourant->getNt();
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr();
$this->donnees['widget']['referentiel'] = $this->referentiel;
104,7 → 105,21
$eflore['legende'] = $this->cartes->getLegende();
$this->donnees['moissonnage'] = $eflore;
}
private function getFloreProbable() {
$projetFloreProbable = "sophy";//Config::get($this->referentiel.'.floreProbable');
if (! $projetFloreProbable) return;
$this->cartes->setProjet($projetFloreProbable);
 
$this->meta->setProjet($projetFloreProbable);
$this->cartes->setId($this->referentiel.'.nt:'.$this->nomCourant->getNt());
// TODO: url téléchargement de la carte lorsqu'on sera sur que c'est possible
// dans ['carte']['telechargement'] par exemple
$this->donnees['flore_probable'] = array('carte' => array(), 'meta' => array());
$this->donnees['flore_probable']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($projetFloreProbable);
$this->donnees['flore_probable']['carte']['url'] = $this->cartes->getUrlFloreProbablePng();
}
 
public function getBloc() {
$donnees['chorodep'] = $this->getChorodepMiniature();
$donnees['eflore'] = $this->getMoissonnageMiniature();