Subversion Repositories eFlore/Applications.coel

Rev

Rev 977 | Rev 1292 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
935 jpm 1
package org.tela_botanica.client.vues.personne;
150 gduche 2
 
253 gduche 3
import java.util.Collection;
197 gduche 4
import java.util.HashMap;
5
import java.util.Iterator;
253 gduche 6
import java.util.LinkedList;
1284 gduche 7
import java.util.List;
189 gduche 8
 
435 gduche 9
import org.tela_botanica.client.ComposantId;
305 gduche 10
import org.tela_botanica.client.Mediateur;
150 gduche 11
import org.tela_botanica.client.RegistreId;
907 jpm 12
import org.tela_botanica.client.configuration.Configuration;
150 gduche 13
import org.tela_botanica.client.interfaces.Rafraichissable;
305 gduche 14
import org.tela_botanica.client.modeles.Valeur;
15
import org.tela_botanica.client.modeles.ValeurListe;
935 jpm 16
import org.tela_botanica.client.modeles.personne.Personne;
1284 gduche 17
import org.tela_botanica.client.modeles.publication.Publication;
18
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
19
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe;
936 jpm 20
import org.tela_botanica.client.vues.DetailVue;
527 gduche 21
 
150 gduche 22
import com.extjs.gxt.ui.client.Registry;
23
import com.extjs.gxt.ui.client.Style.Scroll;
435 gduche 24
import com.extjs.gxt.ui.client.util.Format;
25
import com.extjs.gxt.ui.client.util.Params;
215 aurelien 26
import com.extjs.gxt.ui.client.widget.ContentPanel;
527 gduche 27
import com.extjs.gxt.ui.client.widget.Html;
189 gduche 28
import com.extjs.gxt.ui.client.widget.TabItem;
29
import com.extjs.gxt.ui.client.widget.TabPanel;
197 gduche 30
import com.extjs.gxt.ui.client.widget.form.FieldSet;
246 gduche 31
import com.extjs.gxt.ui.client.widget.form.LabelField;
527 gduche 32
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
150 gduche 33
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
197 gduche 34
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
35
import com.google.gwt.user.client.ui.Image;
150 gduche 36
 
527 gduche 37
public class PersonneDetailVue extends DetailVue implements Rafraichissable {
150 gduche 38
 
269 gduche 39
	private TabPanel tabPanel;
527 gduche 40
	private Html entete;
915 jpm 41
 
215 aurelien 42
	private TabItem tabIdentite;
200 gduche 43
	private TabItem tabAdresse;
215 aurelien 44
	private TabItem tabInfosNat;
435 gduche 45
	private TabItem tabLogos;
1284 gduche 46
	private TabItem tabPublications;
47
 
915 jpm 48
	private HashMap hmLabelFieldRegion = new HashMap();
49
 
50
	private Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
51
	private boolean ontologieRecue = false;
52
	private Personne personneAAfficher = null;
53
 
1284 gduche 54
	private boolean personneAffichee = false;
55
	private String tableauPublicationsLieesTpl = "";
56
	private String lignePublicationLieeTpl = "";
915 jpm 57
 
820 gduche 58
	private void chargerOntologie() {
59
		mediateur.obtenirListeValeurEtRafraichir(this, "pays");
977 gduche 60
		mediateur.obtenirListeValeurEtRafraichir(this, "tel");
1284 gduche 61
		mediateur.obtenirListeValeurEtRafraichir(this, "relationPersonnePublication");
820 gduche 62
	}
435 gduche 63
 
820 gduche 64
 
527 gduche 65
	public PersonneDetailVue(Mediateur mediateur) {
66
		super(mediateur);
820 gduche 67
		chargerOntologie();
68
 
69
		setLayout(new FitLayout());
70
 
527 gduche 71
		entete = new Html();
72
		entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
820 gduche 73
 
527 gduche 74
		ContentPanel panneauPrincipal = new ContentPanel();
75
		panneauPrincipal.setLayout(new FitLayout());
76
		panneauPrincipal.setHeaderVisible(false);
77
		panneauPrincipal.setBodyBorder(true);
78
		panneauPrincipal.setTopComponent(entete);
820 gduche 79
 
915 jpm 80
		tabIdentite = new TabItem(i18nC.personneIdentite());
527 gduche 81
		tabIdentite.setLayout(new AnchorLayout());
820 gduche 82
		tabIdentite.setScrollMode(Scroll.AUTO);
83
 
915 jpm 84
		tabAdresse = new TabItem(i18nC.personneAdresses());
472 gduche 85
		tabAdresse.setLayout(new FitLayout());
86
		tabAdresse.setScrollMode(Scroll.AUTO);
820 gduche 87
 
915 jpm 88
		tabInfosNat = new TabItem(i18nC.personneInfoNat());
321 gduche 89
		tabInfosNat.setScrollMode(Scroll.AUTO);
820 gduche 90
 
1284 gduche 91
		//Greg : ajout d'un résumé des publications
92
		tabPublications = new TabItem(i18nC.tabPublications());
93
		tabPublications.setScrollMode(Scroll.AUTO);
94
		tabPublications.setLayout(new FlowLayout());
95
 
915 jpm 96
		tabLogos = new TabItem(i18nC.personneLogos());
680 gduche 97
		tabLogos.setScrollMode(Scroll.AUTO);
435 gduche 98
		tabLogos.setLayout(new FlowLayout());
820 gduche 99
 
527 gduche 100
		tabPanel = new TabPanel();
101
		tabPanel.setId(ComposantId.ZONE_DETAIL_CORPS);
102
		tabPanel.setBodyBorder(false);
820 gduche 103
 
527 gduche 104
		tabPanel.add(tabIdentite);
105
		tabPanel.add(tabAdresse);
106
		tabPanel.add(tabInfosNat);
1284 gduche 107
		tabPanel.add(tabPublications);
435 gduche 108
		tabPanel.add(tabLogos);
820 gduche 109
 
527 gduche 110
		panneauPrincipal.add(tabPanel);
111
		add(panneauPrincipal);
150 gduche 112
	}
113
 
114
	public void afficherDetailPersonne(Personne personne) {
115
		if (personne != null) {
527 gduche 116
			String tplEntete = initialiserTplEntete();
1284 gduche 117
 
118
			//Sélection des publication à personne
119
			mediateur.selectionnerPublicationAPersonne(this, null, personne.getId(), new LinkedList());
820 gduche 120
 
435 gduche 121
			Params enteteParams = new Params();
122
			enteteParams.set("nom", (String) personne.get("fmt_nom_complet"));
947 gduche 123
			enteteParams.set("mail", (String) personne.getCourrielPrinc());
820 gduche 124
 
125
			LinkedList lstLogos = (LinkedList) personne
126
					.getChaineDenormaliseAsMapOrList("truk_logo");
127
			if (lstLogos != null && lstLogos.size() > 0) {
128
 
435 gduche 129
				tabLogos.removeAll();
130
				String urlLogoPrinc = (String) lstLogos.get(0);
820 gduche 131
				if (!urlLogoPrinc.trim().equals("")) {
132
					tplEntete = "<div id='personne-logo-div'><img src='{image}' alt='logo' /></div>"
133
							+ tplEntete;
435 gduche 134
					enteteParams.set("image", urlLogoPrinc);
253 gduche 135
				}
820 gduche 136
 
435 gduche 137
				Iterator<String> itLogo = lstLogos.iterator();
820 gduche 138
				while (itLogo.hasNext()) {
435 gduche 139
					String urlLogoCourant = itLogo.next();
140
					Image imgCourante = new Image(urlLogoCourant);
820 gduche 141
					tabLogos.add(imgCourante);
435 gduche 142
				}
527 gduche 143
				tabLogos.enable();
820 gduche 144
 
435 gduche 145
			} else {
472 gduche 146
				enteteParams.set("image", "");
435 gduche 147
				tabLogos.disable();
472 gduche 148
			}
820 gduche 149
 
915 jpm 150
			entete.el().setInnerHtml(Format.substitute(tplEntete, enteteParams));
820 gduche 151
 
527 gduche 152
			String tplIdentite = initialiserTplIdentite();
820 gduche 153
 
435 gduche 154
			Params tabIdentiteParams = new Params();
828 gduche 155
			tabIdentiteParams.set("nom_complet", personne.getString("fmt_nom_complet"));
156
			tabIdentiteParams.set("abreviation", personne.getString("abreviation"));
1284 gduche 157
			tabIdentiteParams.set("naissance_date", personne.getAnneeOuDateNaiss().equals("") ? mediateur.i18nC.inconnue() : personne.getAnneeOuDateNaiss());
828 gduche 158
			tabIdentiteParams.set("naissance_lieu", personne.getString("naissance_lieu"));
159
			String tplDeces = "";
160
			if (personne.estDecedee())	{
161
				tplDeces = " <h2>Décès:</h2>"
162
						+ " <span><b>"
915 jpm 163
						+ i18nC.personneDateDeces()
828 gduche 164
						+ ":</b></span> {deces_date}<br />"
165
						+ " 	 <span><b>"
915 jpm 166
						+ i18nC.personneLieuDeces()
828 gduche 167
						+ ":</b></span> {deces_lieu}<br /><br />";
168
 
1284 gduche 169
				tabIdentiteParams.set("deces_date", personne.getAnneeOuDateDeces().equals("") ? mediateur.i18nC.inconnue() : personne.getAnneeOuDateDeces());
828 gduche 170
				tabIdentiteParams.set("deces_lieu", personne.getString("deces_lieu"));
171
			}
172
 
173
			Params paramsDeces = new Params();
174
			paramsDeces.set("tplDeces", tplDeces);
175
			tplIdentite = Format.substitute(tplIdentite, paramsDeces);
176
 
177
			tabIdentiteParams.set("description", personne.getString("description"));
820 gduche 178
 
321 gduche 179
			tabInfosNat.removeAll();
820 gduche 180
 
181
			tabIdentiteParams.set("nom_autre", construireTxtTruck(personne.getString("truk_nom_autre")));
182
			tabIdentiteParams.set("abreviation_autre", construireTxtTruck(personne.getString("truk_abreviation_autre")));
183
 
977 gduche 184
			tplIdentite += construireTxtListeOntologie(personne.getString("truk_telephone"));
820 gduche 185
 
186
			// Courriel :Champ truk de la forme
187
			// "Adresse@adr.com;; adr2@adr.fr ..."
188
			LinkedList<String> listeCourriel = (LinkedList<String>) personne
189
					.getChaineDenormaliseAsMapOrList("truk_courriel");
190
			if ((listeCourriel != null) && (listeCourriel.size() > 0)) {
253 gduche 191
				String strLabelCourriel = "Courriel";
820 gduche 192
				if (listeCourriel.size() > 1) {
193
					strLabelCourriel += "s";
253 gduche 194
				}
820 gduche 195
 
253 gduche 196
				String valeurCourriel = "";
197
				Iterator<String> itCourriel = listeCourriel.iterator();
820 gduche 198
				while (itCourriel.hasNext()) {
253 gduche 199
					String valeurCourante = itCourriel.next();
820 gduche 200
					valeurCourriel += "<br /><a href=\"mailto:"
201
							+ valeurCourante + "\">" + valeurCourante + "</a>";
253 gduche 202
				}
527 gduche 203
				tplIdentite += valeurCourriel;
253 gduche 204
			}
472 gduche 205
 
260 gduche 206
			// Url Site Webs
820 gduche 207
			LinkedList listeUrl = (LinkedList) personne
208
					.getChaineDenormaliseAsMapOrList("truk_url");
209
			if (listeUrl != null && listeUrl.size() > 0) {
210
 
527 gduche 211
				tplIdentite += "<br /><br /><b>Sites web:</b><br /><span style='display:inline-block'>";
260 gduche 212
				String strUrl = "";
213
				Iterator<String> urlIt = listeUrl.iterator();
820 gduche 214
				while (urlIt.hasNext()) {
260 gduche 215
					String urlCourante = urlIt.next();
820 gduche 216
					strUrl += "<a href=\"" + urlCourante + "\">" + urlCourante
217
							+ "</a> <br/>";
260 gduche 218
				}
527 gduche 219
				tplIdentite += strUrl + "</span><br />";
820 gduche 220
			}
221
 
527 gduche 222
			tplIdentite += "</div>";
820 gduche 223
 
527 gduche 224
			afficherOnglet(tplIdentite, tabIdentiteParams, tabIdentite);
820 gduche 225
 
226
			String tabAdresseTpl = "<div class='{css_corps}'>"
227
					+ "	<div class='{css_fieldset}'>"
228
					+ "		<h2>Adresse personnelle:</h2>"
977 gduche 229
					+ "		<b>Adresse:</b> {adresse01} <br />"
230
					+ "		<b>Complément d'adresse: </b>{adresse02} <br />"
231
					+ "		<b>Boite postale: </b>{boitePostale}<br />"
232
					+ "		<b>Code postal:</b>{codePostal} <br />"
233
					+ "		<b>Région:</b>{region}<br />"
820 gduche 234
					+ "		<span style='uppercase'>{pays}</span><br />"
235
					+ "</div>";
236
			// Adresses :
472 gduche 237
			Params paramAdresseTpl = new Params();
820 gduche 238
			paramAdresseTpl.set("adresse01", (String) personne
239
					.obtenirValeurChamp("adresse_01"));
240
			paramAdresseTpl.set("adresse02", (String) personne
241
					.obtenirValeurChamp("adresse_02"));
242
			paramAdresseTpl.set("boitePostale", (String) personne
243
					.obtenirValeurChamp("bp"));
244
			paramAdresseTpl.set("codePostal", (String) personne
245
					.obtenirValeurChamp("code_postal"));
246
			paramAdresseTpl.set("ville", (String) personne
247
					.obtenirValeurChamp("ville"));
248
			paramAdresseTpl.set("region", (String) personne
249
					.obtenirValeurChamp("region"));
250
			paramAdresseTpl.set("pays", (String) personne
251
					.obtenirValeurChamp("pays"));
252
 
472 gduche 253
			afficherOnglet(tabAdresseTpl, paramAdresseTpl, tabAdresse);
254
			tabAdresse.setStyleAttribute("padding", "15px");
215 aurelien 255
 
472 gduche 256
			// Infos naturalistes :Biographie, Spécialité (typé)
820 gduche 257
			String tplInfosNat = "<div class='{css_corps}'>"
258
					+ "	<div class='{css_fieldset}'>" + "		<h2>"
1284 gduche 259
					+ i18nC.personneBiographie() + "</h2>"
260
					+ "			{biographie}" + "		"
261
					+ "<h2>" + i18nC.personneSpecialite() + "</h2>"
262
					+ "			{specialites}" + "	<h2>"
915 jpm 263
					+ i18nC.personneRecolte() + "</h2>"
820 gduche 264
					+ "		{recoltes}" + "  </div>" + "</div>";
527 gduche 265
			Params prmInfosNat = new Params();
820 gduche 266
 
1284 gduche 267
			prmInfosNat.set("biographie", personne.get("biographie"));
268
 
797 gduche 269
			String specialite = construireTxtTruck(personne.getSpecialite());
270
			prmInfosNat.set("specialites", specialite);
820 gduche 271
 
272
			String recolte = construireTxtListeOntologie(personne.getString("truk_recolte"));
797 gduche 273
			prmInfosNat.set("recoltes", recolte);
820 gduche 274
 
797 gduche 275
			afficherOnglet(tplInfosNat, prmInfosNat, tabInfosNat);
276
			tabAdresse.setStyleAttribute("padding", "15px");
820 gduche 277
 
305 gduche 278
			changerLabelRegions();
150 gduche 279
			layout();
820 gduche 280
		}
197 gduche 281
	}
820 gduche 282
 
283
	public String initialiserTplEntete() {
284
		return "<div id='{css_id}'>" + "<h1>{nom}</h1>"
285
				+ "<h2><a href='{mail}'>{mail}</a></h2>" + "</div>";
472 gduche 286
	}
820 gduche 287
 
527 gduche 288
	public String initialiserTplIdentite() {
820 gduche 289
		return "<div class='{css_corps}'>" + "	<div class='{css_fieldset}'>"
290
				+ "	 <h2>Noms:</h2>" + "	 <span><b>"
915 jpm 291
				+ i18nC.personneNomComplet()
820 gduche 292
				+ ":</b></span> {nom_complet}<br />"
293
				+ "	 <span><b>"
915 jpm 294
				+ i18nC.personneNomAutre()
820 gduche 295
				+ ":</b></span> {nom_autre}<br />"
296
				+ "	 <span><b>"
915 jpm 297
				+ i18nC.personneAbreviation()
820 gduche 298
				+ ":</b></span> {abreviation}<br />"
299
				+ " 	 <span><b>"
915 jpm 300
				+ i18nC.personneAbreviationAutre()
820 gduche 301
				+ ":</b></b></span> {abreviation_autre}<br /><br />"
302
				+ "	 <h2>Naissance:</h2>"
303
				+ " 	 <span><b>"
915 jpm 304
				+ i18nC.personneDateNaissance()
828 gduche 305
				+ ":</b></span> {naissance_date}<br />"
820 gduche 306
				+ " 	 <span><b>"
915 jpm 307
				+ i18nC.personneLieuNaissance()
820 gduche 308
				+ ":</b></span> {naissance_lieu}<br /><br />"
828 gduche 309
				+ "{tplDeces}"
820 gduche 310
				+ " 	</div>"
311
				+ "</div>"
312
				+ "<div class='{css_corps}'>"
313
				+ "	<div class='css_fieldset'> "
314
				+ "	<h2>Description:</h2>"
315
				+ " 		{description}<br />" + "	</div>" + "<br />";
527 gduche 316
	}
820 gduche 317
 
318
	private void changerLabelRegions() {
321 gduche 319
		Collection<String> colClesComposants = hmLabelFieldRegion.keySet();
305 gduche 320
		Iterator<String> itComposants = colClesComposants.iterator();
820 gduche 321
 
322
		while (itComposants.hasNext()) {
305 gduche 323
			String region = itComposants.next();
324
			mediateur.obtenirValeurEtRafraichir(this, "region", region);
325
		}
326
	}
197 gduche 327
 
820 gduche 328
	private void ajouterLabelField(FieldSet fs, String tfLabel, Object tfValue) {
329
		if ((tfValue != null) && (!tfValue.toString().trim().equals(""))) {
330
 
246 gduche 331
			LabelField tf = new LabelField();
820 gduche 332
 
246 gduche 333
			tf.setFieldLabel(tfLabel + ":");
820 gduche 334
			if ((tfLabel == null) || ("".equals(tfLabel))) {
197 gduche 335
				tf.setHideLabel(true);
336
				tf.setStyleAttribute("margin", "0 0 0 105px");
337
			}
338
			tf.setValue(tfValue);
820 gduche 339
 
340
			// Ajout au fieldSet
200 gduche 341
			fs.add(tf);
342
		}
343
	}
344
 
1284 gduche 345
 
346
	private void initialiserTableauPublicationsLieesTpl() {
347
 
348
		tableauPublicationsLieesTpl =
349
			"<div class='{css_corps}'>" +
350
			"	<h2>{i18n_titre_publication}</h2>"+
351
			"	<table>"+
352
			"	<thead>"+
353
			"		<tr>" +
354
			"			<th>{i18n_relation}</th>" +
355
			"			<th>{i18n_auteur}</th>" +
356
			"			<th>{i18n_titre}</th>" +
357
			"			<th>{i18n_revue}</th>" +
358
			"			<th>{i18n_editeur}</th>" +
359
			"			<th>{i18n_annee}</th>" +
360
			"			<th>{i18n_nvt}</th>" +
361
			"			<th>{i18n_fascicule}</th>" +
362
			"			<th>{i18n_page}</th>" +
363
			"		</tr>"+
364
			"	</thead>"+
365
			"	<tbody>"+
366
			"		{lignes}"+
367
			"	</tbody>"+
368
			"</table>";
369
	}
370
 
371
	private void initialiserLignePublicationLieeTpl() {
372
		lignePublicationLieeTpl =
373
			"<tr>"+
374
			"	<td>{relation}</td>"+
375
			"	<td>{auteur}</td>"+
376
			"	<td>{titre}</td>"+
377
			"	<td>{revue}</td>"+
378
			"	<td>{editeur}</td>"+
379
			"	<td>{annee}</td>"+
380
			"	<td>{nvt}</td>"+
381
			"	<td>{fascicule}</td>"+
382
			"	<td>{page}</td>"+
383
			"</tr>";
384
	}
385
	/**
386
	 * @author greg
387
	 * Rempli l'onglet des publications liées
388
	 * @param listePublications la liste des publications
389
	 */
390
	private void afficherPublications(PublicationAPersonneListe listePublications)	{
391
		List<PublicationAPersonne> publicationsLiees = listePublications.toList();
392
		Iterator<PublicationAPersonne> iterateur = publicationsLiees.iterator();
393
 
394
		//Onglet Publications
395
		initialiserTableauPublicationsLieesTpl();
396
		Params paramsPublis = new Params();
397
 
398
		String contenuLignes = "";
399
		while (iterateur.hasNext())	{
400
			initialiserLignePublicationLieeTpl();
401
 
402
			PublicationAPersonne publicationAPersonneCourante = iterateur.next();
403
			Publication publication = publicationAPersonneCourante.getPublicationLiee();
404
 
405
			Params ligneParams = new Params();
406
			ligneParams.set("relation", construireTxtListeOntologie(publicationAPersonneCourante.getRole()));
407
			ligneParams.set("auteur", publication.getAuteur());
408
			ligneParams.set("titre", publication.getTitre());
409
			ligneParams.set("revue", publication.getCollection());
410
			ligneParams.set("editeur", publication.getEditeur());
411
			ligneParams.set("annee", publication.getAnneeParution());
412
			ligneParams.set("nvt", publication.getIndicationNvt());
413
			ligneParams.set("fascicule", publication.getFascicule());
414
			ligneParams.set("page", publication.getPages());
415
			contenuLignes += Format.substitute(lignePublicationLieeTpl, ligneParams);
416
		}
417
 
418
		paramsPublis.set("lignes", contenuLignes);
419
		paramsPublis.set("i18n_titre_publication", i18nC.tabPublications());
420
		paramsPublis.set("i18n_relation", i18nC.publicationAuteurs());
421
		paramsPublis.set("i18n_auteur", i18nC.publicationAuteurs());
422
		paramsPublis.set("i18n_titre", i18nC.publicationTitre());
423
		paramsPublis.set("i18n_revue", i18nC.publicationRevueCollection());
424
		paramsPublis.set("i18n_editeur", i18nC.publicationEditeur());
425
		paramsPublis.set("i18n_annee", i18nC.publicationDateParution());
426
		paramsPublis.set("i18n_nvt", i18nC.publicationNvt());
427
		paramsPublis.set("i18n_fascicule", i18nC.publicationFascicule());
428
		paramsPublis.set("i18n_page", i18nC.publicationPage());
429
		afficherOnglet(tableauPublicationsLieesTpl, paramsPublis, tabPublications);
430
 
431
	}
432
 
305 gduche 433
	public void rafraichir(Object nouvellesDonnees) {
1284 gduche 434
 
435
		// FIXME : Ci-dessous, on utilise le booléen personneAffichee pour éviter un affichage répété de personnes.
436
		// Se règlerait avec une gestion Synchrone/Asynchrone
437
 
227 aurelien 438
		// Si on a reçu une personne on en affiche les détails
305 gduche 439
		if (nouvellesDonnees instanceof Personne) {
915 jpm 440
			personneAAfficher = (Personne) nouvellesDonnees;
1284 gduche 441
			personneAffichee = false;
820 gduche 442
		} else if (nouvellesDonnees instanceof ValeurListe) {
443
			ValeurListe ontologieReceptionnee = (ValeurListe) nouvellesDonnees;
444
			ajouterListeValeursAOntologie(ontologieReceptionnee);
445
			ontologieRecue = true;
446
 
447
			// Remplacer ci-dessous par Ontologie
305 gduche 448
			ValeurListe listeValeur = (ValeurListe) nouvellesDonnees;
820 gduche 449
			if (listeValeur.getId().equals(config.getListeId("region"))) {
450
 
305 gduche 451
				Collection colCleListeValeur = listeValeur.keySet();
452
				Iterator<String> itLv = colCleListeValeur.iterator();
820 gduche 453
				while (itLv.hasNext()) {
305 gduche 454
					String idRegion = itLv.next();
455
					Valeur region = listeValeur.get(idRegion);
820 gduche 456
 
457
					if (region != null) {
458
 
305 gduche 459
						String strRegionId = region.getAbreviation();
820 gduche 460
 
321 gduche 461
						LinkedList<LabelField> listComposantsRegion = (LinkedList) hmLabelFieldRegion.get(strRegionId);
820 gduche 462
						for (int i = 0; i < listComposantsRegion.size(); i++) {
305 gduche 463
							LabelField lfRegion = listComposantsRegion.get(i);
820 gduche 464
							lfRegion.setFieldLabel(region.getNom());
305 gduche 465
						}
820 gduche 466
 
305 gduche 467
					}
468
				}
469
			}
1284 gduche 470
		} else if (nouvellesDonnees instanceof PublicationAPersonneListe)	{
471
			afficherPublications((PublicationAPersonneListe) nouvellesDonnees);
305 gduche 472
		}
915 jpm 473
 
1284 gduche 474
		if (ontologieRecue && personneAAfficher != null && personneAffichee == false)	{
915 jpm 475
			afficherDetailPersonne(personneAAfficher);
1284 gduche 476
			personneAffichee = true;
915 jpm 477
		}
150 gduche 478
	}
479
 
197 gduche 480
}