Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 865 → Rev 866

/trunk/presentations/scripts/recherche.js
354,23 → 354,34
function gererClicIllustrationsResultats() {
$('.illustration_resultat_cel').click(function() {
var url = $(this).attr('src')/*.replace('CS','XL')*/;
var titre = $(this).parent().find('a.lien_fiche_eflore').text();
var titre = trouverNomTaxon($(this));
console.log($(this).parent().parent().find('a.lien_fiche_eflore'));
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
});
$('.illustration_resultat_choro').click(function() {
var url = $(this).attr('src').replace('108x101','432x404');
var titre = 'Chorologie du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
var titre = 'Chorologie du taxon '+trouverNomTaxon($(this));
ouvrirFenetreIllustrationResultat(url, titre, 432, 404);
});
$('.illustration_resultat_coste').click(function() {
var url = $(this).attr('src');
var titre = 'Illustration de Coste du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
var titre = 'Illustration de Coste du taxon '+trouverNomTaxon($(this));
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
});
}
 
function trouverNomTaxon(objet) {
nom = "";
if(nomVernaculaireEstDemande()) {
nom = objet.parent().parent().find('a.lien_fiche_eflore').text();
} else {
nom = objet.parent().find('a.lien_fiche_eflore').text();
}
return nom;
}
 
function ouvrirFenetreIllustrationResultat(url, titre, hauteur, largeur) {
var fenetre = window.open('_blank', titre,'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(largeur+17)+', height='+(hauteur+17));
var tmp = fenetre.document;
/trunk/modules/resultat/squelettes/determination.tpl.html
5,19 → 5,19
<li class="zone-resultat">
<div class="nom-sci">
<a href="<?=$nom['urlFiche']?>" >
<a class="lien_fiche_eflore" href="<?=$nom['urlFiche']?>" >
<strong class="nom-sci-retenu"><?=$nom['nomSciRetenu']?></strong>
</a>
</div>
<?php if (isset($repartition['urls'][$nnTaxon]) ) : ?>
<img src="<?=htmlentities($repartition['urls'][$nnTaxon])?>" alt="Carte de répartition" />
<img class="illustration_resultat_choro" src="<?=htmlentities($repartition['urls'][$nnTaxon])?>" alt="Carte de répartition" />
<?php else : ?>
<div class="absent">Pas de carte</div>
<?php endif; ?>
<?php if ($nom['rang'] != 'Famille' && $nom['rang'] != 'Genre' && $nom['rang'] != 'Ordre') : ?>
<?php if (isset($imagesUrls[$nnTaxon])) : ?>
<img src="<?=htmlentities($imagesUrls[$nnTaxon][0])?>" alt="Image provenant du CEL" style="width:100px;height:100px;display:block;float:right;"/>
<img class="illustration_resultat_cel" src="<?=htmlentities($imagesUrls[$nnTaxon][0])?>" alt="Image provenant du CEL" style="width:100px;height:100px;display:block;float:right;"/>
<?php else : ?>
<p class="absent">
Pas de photo<br />
29,7 → 29,7
</p>
<?php endif; ?>
<?php if (isset($imagesCoste[$taxons[$nnTaxon]][0])) : ?>
<img src="<?=htmlentities($imagesCoste[$taxons[$nnTaxon]][0])?>" alt="illustration de Coste" />
<img class="illustration_resultat_coste" src="<?=htmlentities($imagesCoste[$taxons[$nnTaxon]][0])?>" alt="illustration de Coste" />
<?php endif; ?>
<?php endif; ?>
<?php if (isset($synonymes[$nnTaxon])) : ?>
/trunk/modules/resultat/squelettes/determination_verna.tpl.html
30,11 → 30,11
</ul>
<?php endif; ?>
</td><td class="nom">
<a href="<?=$nom['urlFiche']?>" ><?=$nom['nomSci']?></a>
<a class="lien_fiche_eflore" href="<?=$nom['urlFiche']?>" ><?=$nom['nomSci']?></a>
</td>
<td>
<?php if (isset($imagesCoste[$taxons[$nom['nomSci']]][0])) : ?>
<img src="<?=htmlentities($imagesCoste[$taxons[$nom['nomSci']]][0])?>" alt="illustration de Coste" />
<img class="illustration_resultat_coste" src="<?=htmlentities($imagesCoste[$taxons[$nom['nomSci']]][0])?>" alt="illustration de Coste" />
<?php else : ?>
<div class="vide"></div>
<?php endif; ?>
41,7 → 41,7
</td>
<td>
<?php if (isset($imagesUrls[$nnTaxon])) : ?>
<img src="<?=htmlentities($imagesUrls[$nnTaxon][0])?>" alt="Images issues du CEL" style="width:100px;height:100px;display:block;float:right;"/>
<img class="illustration_resultat_cel" src="<?=htmlentities($imagesUrls[$nnTaxon][0])?>" alt="Images issues du CEL" style="width:100px;height:100px;display:block;float:right;"/>
<?php else : ?>
<p class="absent">
Pas de photo<br />
55,7 → 55,7
</td>
<td >
<?php if (isset($repartition['urls'][$nnTaxon])) : ?>
<img src="<?=htmlentities($repartition['urls'][$nnTaxon])?>" alt="Carte de répartition" class="repartition_vignette"/>
<img src="<?=htmlentities($repartition['urls'][$nnTaxon])?>" alt="Carte de répartition" class="repartition_vignette illustration_resultat_choro"/>
<?php else : ?>
<div class="absent">Pas de carte</div>
<?php endif; ?>