Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 946 → Rev 947

/trunk/modules/popup_galerie/squelettes/popup_galerie_illustrations.tpl.html
9,6 → 9,7
var titre = "<?= $titre; ?>";
var urlMeta = "<?= $url_meta; ?>";
var urlContact = "<?= $url_contact; ?>";
var referentiel = "<?= Registre::get('parametres.referentiel'); ?>";
var metadonneesOuvertes = false;
var hauteurSansMeta = null;
88,7 → 89,7
function chargerEtAfficherMetadonnees() {
$('#info-obs-meta').remove();
if(meta[ids[indexImage]] == null) {
var urlMetaImage = urlMeta.replace('{projet}','cel').replace('{id}',ids[indexImage]);
var urlMetaImage = urlMeta.replace('{projet}','cel').replace('{id}',ids[indexImage]).replace('{referentiel}',referentiel);
$.get(urlMetaImage, function(data) {
data = formaterMetadonnees(data);
afficherMetadonnees(data);
/trunk/modules/popup_galerie/PopupGalerie.php
51,16 → 51,16
$infos = array();
$this->images->setProjet('cel');
$urls = $this->images->getUrlsImagesParIdsNoms(array($this->num_nom));
$urls = $urls['bdtfx.'.$this->num_nom];
$urls = $urls[Registre::get('parametres.referentiel').'.'.$this->num_nom];
$ids = array();
foreach($urls as $index => $url) {
$urls[$index] = str_replace($this->format_miniature, $this->format_agrandi, $url);
$ids[$index] = $this->extraireIdDeUrl($url);
}
$infos['urls'] = $urls;
$infos['ids'] = $ids;
$infos['num_nom'] = $this->num_nom;
$infos['referentiel'] = Registre::get('parametres.referentiel');
$infos['url_image'] = str_replace($this->format_miniature, $this->format_agrandi, $this->urlImage);
$infos['titre'] = $this->titre;
$infos['url_meta'] = Config::get('imagesPopupTpl');