Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1386 → Rev 1387

/trunk/modules/fiche/formateurs/Nomenclature.php
49,7 → 49,7
$this->donnees['nom_retenu_nn'] = $this->nomCourant->getNomRetenu()->get('nom_retenu.id');
$this->donnees['basionyme_nom_retenu'] = $this->nomCourant->getNomRetenu()->get('basionyme_html_complet');
$this->donnees['basionyme_nom_retenu_nn'] = $this->nomCourant->getNomRetenu()->get('basionyme.id');
$this->donnees['nom_selectionne'] = $this->nomCourant->getNomSelectionne()->get('nom_sci_html');
$this->donnees['nom_selectionne'] = $this->nomCourant->getNomSelectionne()->get('nom_sci_html_complet');
$this->donnees['nom_retenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci');
$this->donnees['wikini'] = $this->getWikini();
$this->donnees['hybride_parent_01'] = $this->nomCourant->getNomRetenu()->get('hybride.parent_01_html_complet');
/trunk/modules/fiche/formateurs/Bibliographie.php
33,8 → 33,6
}
public function obtenirDonnees() {
$this->getFlores();
$this->donnees['bibliobota']['references'] = $this->getBiblioBota();
$this->meta->setProjet('bibliobota');
$meta = $this->meta->getMetaDonnees();
46,7 → 44,6
}
public function getBloc() {
$this->getFloresBloc();
$references = $this->getBiblioBota();
$this->donnees['references'] = array_slice($references, 0, 3);
foreach ($this->donnees['references'] as $id=>$reference) {
54,33 → 51,13
$this->donnees['references'][$id]['reference_html'] = $titre[1];
}
$this->donnees['autresReferences'] = count($references) - 3;
if ($this->donnees['flores'] == array() && $this->donnees['references'] == array()) {
if ($this->donnees['references'] == array()) {
$this->donnees['wikini'] = $this->getWikini();
}
return $this->donnees;
}
// Récupération des données flores présentes dans le référentiel
private function getFlores() {
if (Config::get($this->referentiel.'.baseFloresRef') != "") {
$flores = $this->nomCourant->getNomRetenu()->get('flores');
$flores = explode(',', $flores);
$this->donnees['flores']['liste_flores'] = $this->remplacerCorrespondancesFlores($flores);
$this->meta->setProjet($this->referentiel);
$meta = $this->meta->getMetaDonnees();
$this->donnees['flores']['meta'] = $meta[0];
$this->donnees['flores']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($this->referentiel);
}
}
private function getFloresBloc() {
$flores = $this->nomCourant->getNomRetenu()->get('flores');
$flores = explode(',', $flores);
$flores = $this->remplacerCorrespondancesFlores($flores);
$this->donnees['flores'] = array_slice($flores, 0, 3);
$this->donnees['autresFlores'] = count($flores) - 3;
}
//Obtention des données issues de biblio_bota
private function getBiblioBota() {
$this->apiBiblioBota = $this->conteneur->getApiBiblioBota();
100,32 → 77,7
return $wikini;
}
//TODO: faire une ontologie mais pas de tache prévue dans ce sprint
private function getCorrespondancesBiblio() {
$correspondance = array(
'1' => 'BONNIER & LAYENS, 1894. Tables synoptiques des plantes vasculaires de la flore de France.',
'2' => 'COSTE, 1899-1906. Flore illustrée France, (3 vol.).',
'3' => 'FOURNIER, 1934-1940. Quatre Flores de France.',
'3*' => 'FOURNIER, additions dans l\'édition de 1961.',
'4' => 'TUTIN & al., 1964-1980. Flora Europaea, (5 vol.).',
'4*' => 'Flora Europaea, édition 2 (Vol. 1), voir TUTIN & al. (1993), abrégée en FE2. L\'indication est surtout donnée quand la citation n\'a pas été faite dans 4 (supplémentaire ou modifiée).',
'5' => 'GUINOCHET & VILMORIN, 1973-1984. Flore de France, éd. C.N.R.S., (5 vol.).',
'6' => 'KERGUÉLEN, 1993. Liste synonymique de la flore de France.'
);
return $correspondance;
}
private function remplacerCorrespondancesFlores($flores) {
$correspondance_code_flores = $this->getCorrespondancesBiblio();
$flores_texte = array();
foreach($flores as $code_flore) {
$code_flore = trim($code_flore);
if(isset($correspondance_code_flores[$code_flore])) {
$flores_texte[] = $correspondance_code_flores[$code_flore];
}
}
return $flores_texte;
}
 
 
}
?>
/trunk/modules/fiche/squelettes/fiche_synthese_niveau1.tpl.html
327,20 → 327,6
'<br /><br /><a href="'.$url.'description" class="lien_ouverture_onglet_parent" >
Rajouter vos données.</a>'; ?>
<?php } else { ?>
<h4>Flores</h4>
<?php if ($bibliographie['flores'] == array()) { ?>
Aucune flore indiquée
<?php } else { ?>
<?php foreach ($bibliographie['flores'] as $flore) : ?>
<div> - <?= $flore; ?> </div>
<?php endforeach; ?>
<?php if($bibliographie['autresFlores'] > 0) { ?>
<a href="<?=$url;?>nomenclature" class="lien_ouverture_onglet_parent" id=alignement-droite>
et <?= htmlentities($bibliographie['autresFlores']) ?>
autre<?= ($bibliographie['autresFlores'] > 1) ? 's' : '' ?>
flore<?= ($bibliographie['autresFlores'] > 1) ? 's' : '' ?>
</a>
<?php } } ?><br />
<h4>Références</h4>
<?php if ($bibliographie['references'] == array()) { ?>
Aucune référence bibliographique
/trunk/modules/fiche/squelettes/fiche_synthese_niveau2.tpl.html
328,20 → 328,6
'<br /><br /><a href="'.$url.'description" class="lien_ouverture_onglet_parent" >
Compléter cette bibliographie</a>'; ?>
<?php } else { ?>
<h4>Flores</h4>
<?php if ($bibliographie['flores'] == array()) { ?>
Aucune flore indiquée
<?php } else { ?>
<?php foreach ($bibliographie['flores'] as $flore) : ?>
<div> - <?= $flore; ?> </div>
<?php endforeach; ?>
<?php if($bibliographie['autresFlores'] > 0) { ?>
<a href="<?=$url;?>nomenclature" class="lien_ouverture_onglet_parent" id="alignement-droite">
et <?= htmlentities($bibliographie['autresFlores']) ?>
autre<?= ($bibliographie['autresFlores'] > 1) ? 's' : '' ?>
flore<?= ($bibliographie['autresFlores'] > 1) ? 's' : '' ?>
</a>
<?php } } ?><br />
<h4>Références</h4>
<?php if ($bibliographie['references'] == array()) { ?>
Aucune référence bibliographique
/trunk/modules/fiche/squelettes/fiche_synthese_niveau3.tpl.html
322,21 → 322,6
Ajoutez votre bibliographie sur ce taxon</a>'
: $bibliographie['wikini']['biblio'] ?>
<?php } else { ?>
<h4>Flores</h4>
<?php if ($bibliographie['flores'] == array()) { ?>
Aucune flore indiquée
<?php } else { ?>
<?php foreach ($bibliographie['flores'] as $flore) : ?>
<div> - <?= $flore; ?> </div>
<?php endforeach; ?>
<?php if($bibliographie['autresFlores'] > 0) { ?>
<a href="<?=$url;?>nomenclature" class="lien_ouverture_onglet_parent" id="alignement-droite">
et <?= htmlentities($bibliographie['autresFlores']) ?>
autre<?= ($bibliographie['autresFlores'] > 1) ? 's' : '' ?>
flore<?= ($bibliographie['autresFlores'] > 1) ? 's' : '' ?>
</a>
<?php } } ?><br />
<h4>Références</h4>
<?php if ($bibliographie['references'] == array()) { ?>
/trunk/modules/fiche/squelettes/fiche_nomenclature.tpl.html
60,9 → 60,14
<?php foreach ($basionyme['synonymes'] as $id => $synonyme) : ?>
<?php if($id_b != $id) { ?>
<li class="item_nomenclature">
<span class="nom<?= ($nom_selectionne == $synonyme['nom_sci']) ? ' surlignage' : '' ?>">
<span class="nom<?= ($nom_selectionne == $synonyme['nom_sci_complet']) ? ' surlignage' : '' ?>">
<a title="cliquez pour accéder à la fiche de ce taxon" href="<?= $urls->obtenirUrlFiche($id,'nom_scientifique'); ?>"> <?= $synonyme['nom_sci_complet'] ?></a>
</span>
<?if ($synonyme['source_biblio'] != '') { ?>
<a href="<?=$synonyme['source_biblio']?>">
<img src="<?=$baseUrlIco?>presentations/images/sites/ipni.png" alt="IPNI" title="Rechercher dans IPNI"/>
</a>
<? } ?>
</li>
<?php } ?>
<?php endforeach; ?>
77,16 → 82,23
<h2>Dénomination dans les flores usuelles</h2>
<?php if(is_array($flores_synonymes) && count($flores_synonymes) > 0) { ?>
<ul>
<?php foreach ($flores_synonymes as $num_nom_syn => $infos_flore) : ?>
<?php foreach ($infos_flore as $code => $flore) : ?>
<li class="item_nomenclature">
<div>
Dans la flore <em><?= $flore['nom_flore'] ?></em>,
ce taxon porte le nom de <em><?= $flore['nom_sci'] ?></em>
et le code <b><?= $flore['id'] ?></b><br />
</div>
</li>
<?php endforeach; ?>
<?php foreach ($flores_synonymes as $infos_flore) : ?>
<li class="item_nomenclature">
<div>
Ce taxon est noté dans la flore <em><?= $infos_flore['nom_flore'] ?></em>
<?php if(isset($infos_flore['num'])) { ?>
sous :<br /><ul>
<?php foreach ($infos_flore['num'] as $code => $flore) : ?>
<li>le nom de <em><?= $flore['nom_sci'] ?></em>
et <?=$infos_flore['type']?> <b><?= $flore['id'] ?></b><?=($flore['statut']) ? ' en tant que '.$flore['statut'] : ''?><br /></li>
<?php endforeach; ?>
</ul>
<?php } else { ?>
<?php } ?>
</div>
</li>
<?php endforeach; ?>
</ul><hr class="nettoyage" />
<?php } else { ?>