/trunk/modules/fiche/squelettes/fiche_illustrations.tpl.html |
---|
145,7 → 145,7 |
<!-- sous-squelette --> |
<?= $cel['illustrationsCel'] ?> |
<br/> |
<span>Seules les 10 premières images sont affichées : </span> |
<span>Seules les <?= Config::get('nbTrancheImagesResultatsDeterminationAffichees') ?> premières images sont affichées : </span> |
<a href="<?= $cel['ajax_url']; ?>"> |
Cliquez ici pour charger toutes les illustrations disponibles pour ce taxon |
</a> |
/trunk/modules/fiche/formateurs/Illustrations.php |
---|
102,7 → 102,7 |
//TODO: factoriser les deux fonctions ci dessous et ci dessus |
public function obtenirTranchesCelTpl($projet) { |
// On ne prend que la tranche des images (10) |
// On ne prend que la tranche des images (12) |
$images = $this->initialiserTranchePhotos($projet); |
$this->formaterListePhotos($projet, $images); |
$this->formaterMetaPhotos($projet); |
274,7 → 274,7 |
private function initialiserTranchePhotos($projet) { |
$this->images->setProjet($projet); |
$nnr = $this->nomCourant->getNnr(); |
$ret = $this->images->getInfosTrancheImagesParIdsNoms(array($nnr)); |
$ret = $this->images->getInfosTrancheImagesParIdsNoms(array($nnr), Config::get('nbTrancheImagesResultatsDeterminationAffichees')); |
return $ret; |
} |
/trunk/metier/api_0.1/Images.php |
---|
84,8 → 84,9 |
return $this->formaterResultatImages($images); |
} |
public function getInfosTrancheImagesParIdsNoms($idNom) { |
$url = $this->getUrlImagesParIdsNoms($idNom, 10); |
public function getInfosTrancheImagesParIdsNoms($idNom, $limite = 12) { |
// 12 fait 4 lignes de 3 images donc bien pour l'affichage |
$url = $this->getUrlImagesParIdsNoms($idNom, $limite); |
$donnees = $this->chargerDonnees($url); |
$images = (isset($donnees['resultats'])) ? $donnees['resultats'] : array(); |
return $this->formaterResultatImages($images); |
/trunk/configurations/config.defaut.ini |
---|
208,6 → 208,7 |
imagesPopupTpl = "{ref:baseUrlApiEflore}/images/{id}?referentiel={referentiel}" |
imagesTaxonsTpl = "{ref:baseUrlApiEflore}/images?masque.nt={nntaxon}&referentiel={referentiel}" |
nbTrancheImagesResultatsDeterminationAffichees = 12 |
textesTpl = "{ref:baseUrlApiEflore}/textes" |
texteTpl = "{ref:textesTpl}/{id}?txt.format={txtFormat}" |