Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 434 → Rev 435

/trunk/presentations/styles/eflore.css
799,4 → 799,11
 
.legende b {
color:#AAA; margin-bottom:10px
}
 
.wp {
background:url('../images/sites/wikipedia.png') no-repeat;
margin-left: 15px;
margin-top: 5px;
padding-left: 20px;
}
/trunk/presentations/scripts/fiche-synthese.js
505,6 → 505,11
});
});
$('a.lien_externe').live('click',function(event) {
event.preventDefault();
window.open($(this).attr('href'));
});
$('.illustration_taxon').live('click',function(event) {
if(!fancyboxinitialise) {
event.preventDefault();
/trunk/metier/api_0.1/Textes.php
34,7 → 34,7
return $this->chargerDonnees($url);
}
 
private function getUrlTexte() {
public function getUrlTexte() {
if ($this->sectionTitre != '') {
$tpl = Config::get('texteTitreSectionTpl');
$params = array('id' => $this->id, 'txtFormat' => $this->format, 'sectionTitre' => $this->sectionTitre);
45,5 → 45,16
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getPageUrl() {
$url = '';
if(Config::get($this->getProjet().'LienPageTpl')) {
$tpl = Config::get($this->getProjet().'LienPageTpl');
$params = array('id' => $this->id, 'langue' => 'fr');
$url = $this->formaterUrl($tpl, $params);
}
return $url;
}
}
?>
/trunk/modules/fiche/squelettes/fiche_synthese.tpl.html
73,7 → 73,7
Aucune référence bibliographique
<?php } else { ?>
<?php foreach ($bibliographie['references'] as $reference) : ?>
<div> - <?= $reference; ?> </div>
<div> - <?= $reference['reference_html']; ?> </div>
<?php endforeach; ?>
<?php if($bibliographie['autresReferences'] > 0) { ?>
<a href="<?=$url;?>nomenclature" style="float:right;" class="lien_ouverture_onglet_parent" >et
/trunk/modules/fiche/squelettes/fiche_description.tpl.html
14,9 → 14,11
</div>
<hr class="nettoyage"/>
<br />
<h2>Wikipedia : <?=$wp['titre']?></h2>
<h2>Fiche wikipedia : <?=$wp['titre']?></h2>
<div class="description wp">
<?=$wp['description']?>
<a class="lien_externe" href="<?=htmlentities($wp['lien'])?>" title="voir la page de ce taxon sur wikipedia (s'ouvre dans une nouvelle fenêtre)">
<?=htmlentities($wp['lien'])?>
</a>
</div>
<hr class="nettoyage"/>
<div class="conteneur_lien_metadonnees">
/trunk/modules/fiche/formateurs/Description.php
52,17 → 52,8
$wp = array();
$this->textes->setProjet('wikipedia');
$this->textes->setId($this->getIdWp());
$texte = $this->textes->getTexte();
$wp['titre'] = $texte['titre'];
$wp['description'] = $texte['texte'];
$this->meta->setProjet('wikipedia');
// TODO: décommenter ceci et remplacer le titre en dur lorsque le service
// web wikipedia renverra les bonnes metadonnées
//$meta = $this->meta->getMetaDonnees();
//$titreMeta = $meta[0]['titre'];
$titreMeta = "Description issue de www.wikipedia.org";
$wp['meta']['titre'] = $titreMeta;
$wp['lien'] = $this->textes->getPageUrl();
$wp['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('wikipedia');
return $wp;