Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 447 → Rev 448

/trunk/modules/fiche/squelettes/fiche_nomenclature.tpl.html
13,11 → 13,11
<a href="javascript:deplierTout()">Tout déplier</a> | <a href="javascript:plierTout()">Tout plier</a>
</div>
</div>
<div class="onglet_marge_gauche">
<span class="nom retenu <?= ($nom_selectionne == $nom_retenu) ? 'surlignage' : '' ?>">
<?= $nom_retenu_formate ?>
</span>
</div>
<div class="onglet_marge_gauche">
<span class="nom retenu <?= ($nom_selectionne == $nom_retenu) ? 'surlignage' : '' ?>">
<?= $nom_retenu_formate ?>
</span>
</div>
<?php if($basionyme_nom_retenu != null && $basionyme_nom_retenu != '') { ?>
<div class="nom onglet_marge_gauche">
Basionyme : <?= $basionyme_nom_retenu ?>
/trunk/modules/fiche/formateurs/Ethnobotanique.php
58,7 → 58,7
}
private function getChorologie() {
$infos_choro = $this->nomCourant->getNomSelectionne()->getInfos();
$infos_choro = $this->nomCourant->getNomRetenu()->getInfos();
$donnees = $this->traiterTableauChorologie($infos_choro);
$this->meta->setProjet('bdtfx');
$meta = $this->meta->getMetaDonnees();
/trunk/modules/fiche/formateurs/Illustrations.php
36,8 → 36,8
public function getBloc() {
// Trop long, il faut un service spécial...
$this->images->setProjet('cel');
$nns = $this->nomCourant->getNns();
$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nns));
$nnr = $this->nomCourant->getNnr();
$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
$image = array_slice($infos_image['resultats'], 0);
$donnees['imageUrl'] = $image[0]['binaire.href'];
return $donnees;
46,8 → 46,8
public function getPhotoFlora() {
$photoflora = array();
$this->images->setProjet('photoflora');
$nns = $this->nomCourant->getNns();
$images = $this->images->getInfosImagesParIdsNoms(array($nns));
$nnr = $this->nomCourant->getNnr();
$images = $this->images->getInfosImagesParIdsNoms(array($nnr));
$this->meta->setProjet('photoflora');
$meta = $this->meta->getMetaDonnees();
61,8 → 61,8
public function getCel() {
$cel = array();
$this->images->setProjet('cel');
$nns = $this->nomCourant->getNns();
$images = $this->images->getInfosImagesParIdsNoms(array($nns));
$nnr = $this->nomCourant->getNnr();
$images = $this->images->getInfosImagesParIdsNoms(array($nnr));
$this->meta->setProjet('cel');
$meta = $this->meta->getMetaDonnees();
/trunk/modules/fiche/formateurs/Nomenclature.php
41,8 → 41,8
$donnees['urls'] = $this->appUrls;
$donnees['nom_retenu_formate'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html_complet');
$donnees['basionyme_nom_retenu'] = $this->nomCourant->getNomRetenu()->get('basionyme_html_complet');
$donnees['nom_selectionne'] = $this->nomCourant->getNomSelectionne()->get('nom_sci');
$donnees['nom_retenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci');
$donnees['nom_selectionne'] = $this->nomCourant->getNomSelectionne()->get('nom_sci_html');
$donnees['nom_retenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html');
return $donnees;
}
57,8 → 57,8
}
private function getFlores() {
$nns = $this->nomCourant->getNns();
$flores = $this->noms->getFlores($nns);
$nnr = $this->nomCourant->getNnr();
$flores = $this->noms->getFlores($nnr);
$flores['resultat'] = (isset($flores['resultat']) && is_array($flores['resultat'])) ? $flores['resultat'] : array();
return $flores['resultat'];
}
/trunk/modules/fiche/formateurs/Repartition.php
39,7 → 39,7
private function getChorodep() {
$this->cartes->setProjet('chorodep');
$this->cartes->setLargeur('630');
$id = 'nn:'.$this->nomCourant->getNns();
$id = 'nn:'.$this->nomCourant->getNnr();
$this->cartes->setId($id);
$chorodep['svgUrl'] = $this->cartes->getUrlDataSvg();
$chorodep['pngUrl'] = $this->cartes->getUrlPng();
/trunk/modules/fiche/formateurs/Description.php
79,7 → 79,7
private function getCoste() {
$coste = array();
$this->textes->setProjet('coste');
$this->textes->setId('bdtfx.nn:'.$this->nomCourant->getNns());
$this->textes->setId('bdtfx.nn:'.$this->nomCourant->getNnr());
$texte = $this->textes->getTexte();
$coste['titre'] = $texte['titre'];
$coste['description'] = $texte['texte'];
87,7 → 87,7
$meta = $this->meta->getMetaDonnees();
$citation = $meta[0]['citation'];
$coste['meta']['citation'] = $citation;
$coste['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('chorodep');
$coste['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('coste');
return $coste;
}
}
/trunk/bibliotheque/NomCourant.php
1,6 → 1,7
<?php
class NomCourant {
private $nns = null;
private $nnr = null;
private $selectionne = null;
private $retenu = null;
 
8,9 → 9,10
$this->nns = $num_nom_selectionne;
$this->selectionne = new Nom($noms->getNom($this->nns));
$this->retenu = new Nom($taxons->getTaxon($this->nns));
$this->retenu->setTaxonsSuperieurs($taxons->getTaxonsSup($this->nns), $this->nns);
$taxons_sup = $taxons->getTaxonsSup($this->nns);
$this->taxons_sup = $taxons_sup[$this->nns];
$this->nnr = $this->retenu->get('id');
$this->retenu->setTaxonsSuperieurs($taxons->getTaxonsSup($this->nnr), $this->nnr);
$taxons_sup = $taxons->getTaxonsSup($this->nnr);
$this->taxons_sup = $taxons_sup[$this->nnr];
}
 
/**
21,6 → 23,11
public function getNns() {
return $this->nns;
}
public function getNnr() {
return $this->nnr;
}
 
public function getNomSelectionne() {
return $this->selectionne;