Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 863 → Rev 864

/trunk/presentations/scripts/recherche.js
32,6 → 32,7
gererAffichageValeursParDefaut(champs_ts);
afficherValeurParDefaut(champs_ts);
gererAccesFicheFlecheDroite();
gererClicIllustrationsResultats()
});
 
/**------------------- Fonctions de gestion de l'autocompletion ---------------------------------*/
349,6 → 350,37
}
}
 
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
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();
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();
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();
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
});
}
 
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;
tmp.write('<html><head><title>'+titre+'</title>');
tmp.write('</head><body>');
tmp.write('<p style="height='+hauteur+'px;text-align:center;line-height='+hauteur+'px;"><img id="image_agrandie" height="'+hauteur+'" width="'+largeur+'" style="vertical-align:middle;" src="'+url+'" /></p>');
tmp.write('</body></html>');
tmp.close();
}
 
/*
* jQuery UI Autocomplete HTML Extension
*