Subversion Repositories eFlore/Applications.coel

Rev

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

Rev Author Line No. Line
934 jpm 1
package org.tela_botanica.client.vues.collection;
453 jp_milcent 2
 
883 jpm 3
import java.util.Iterator;
4
 
453 jp_milcent 5
import org.tela_botanica.client.ComposantClass;
6
import org.tela_botanica.client.ComposantId;
7
import org.tela_botanica.client.Mediateur;
8
import org.tela_botanica.client.interfaces.Rafraichissable;
883 jpm 9
import org.tela_botanica.client.modeles.Information;
453 jp_milcent 10
import org.tela_botanica.client.modeles.ValeurListe;
935 jpm 11
import org.tela_botanica.client.modeles.collection.Collection;
12
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
13
import org.tela_botanica.client.modeles.collection.CollectionAPersonneListe;
14
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
15
import org.tela_botanica.client.modeles.collection.CollectionAPublicationListe;
16
import org.tela_botanica.client.modeles.personne.Personne;
17
import org.tela_botanica.client.modeles.projet.ProjetListe;
18
import org.tela_botanica.client.modeles.publication.Publication;
19
import org.tela_botanica.client.modeles.structure.Structure;
938 jpm 20
import org.tela_botanica.client.util.Debug;
936 jpm 21
import org.tela_botanica.client.vues.DetailVue;
453 jp_milcent 22
 
23
import com.extjs.gxt.ui.client.Style.Scroll;
24
import com.extjs.gxt.ui.client.util.Format;
25
import com.extjs.gxt.ui.client.util.Params;
26
import com.extjs.gxt.ui.client.widget.ContentPanel;
27
import com.extjs.gxt.ui.client.widget.Html;
28
import com.extjs.gxt.ui.client.widget.TabItem;
29
import com.extjs.gxt.ui.client.widget.TabPanel;
30
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
938 jpm 31
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
453 jp_milcent 32
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
33
 
34
public class CollectionDetailVue extends DetailVue implements Rafraichissable {
35
 
883 jpm 36
	private Collection collection = null;
37
	private boolean collectionChargementOk = false;
38
	private boolean personnesLieesChargementOk = false;
39
	private boolean publicationsLieesChargementOk = false;
468 jp_milcent 40
	private Structure structure = null;
883 jpm 41
 
453 jp_milcent 42
	private String enteteTpl = null;
43
	private String generalTpl = null;
883 jpm 44
	private String personneTpl = null;
45
	private String tableauPersonnesLieesTpl = null;
46
	private String lignePersonneLieeTpl = null;
687 jp_milcent 47
	private String publicationTpl = null;
883 jpm 48
	private String tableauPublicationsLieesTpl = null;
49
	private String lignePublicationLieeTpl = null;
630 jp_milcent 50
	private String descriptionTpl = null;
51
	private String contenuTpl = null;
52
	private String inventaireTpl = null;
453 jp_milcent 53
 
54
	private ContentPanel panneauPrincipal = null;
55
	private Html entete = null;
56
	private TabPanel onglets = null;
57
	private TabItem generalOnglet = null;
862 jpm 58
	private TabItem personneOnglet = null;
687 jp_milcent 59
	private TabItem publicationOnglet = null;
630 jp_milcent 60
	private TabItem descriptionOnglet = null;
61
	private TabItem contenuOnglet = null;
62
	private TabItem inventaireOnglet = null;
883 jpm 63
 
453 jp_milcent 64
 
65
	public CollectionDetailVue(Mediateur mediateurCourant) {
66
		super(mediateurCourant);
67
		initialiserTousLesTpl();
68
		chargerOntologie();
69
 
70
		panneauPrincipal = new ContentPanel();
938 jpm 71
		panneauPrincipal.setLayout(new FitLayout());
453 jp_milcent 72
		panneauPrincipal.setHeaderVisible(false);
73
		panneauPrincipal.setBodyBorder(false);
74
 
75
	    entete = new Html();
76
	    entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
77
	    panneauPrincipal.setTopComponent(entete);
78
 
79
		onglets = new TabPanel();
80
		onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
81
		onglets.setBodyBorder(false);
82
 
83
		generalOnglet = new TabItem(i18nC.structureInfoGeneral());
84
		generalOnglet.setLayout(new AnchorLayout());
85
		generalOnglet.setScrollMode(Scroll.AUTO);
86
		onglets.add(generalOnglet);
87
 
862 jpm 88
		personneOnglet = new TabItem(i18nC.collectionPersonne());
89
		personneOnglet.setLayout(new AnchorLayout());
90
		personneOnglet.setScrollMode(Scroll.AUTO);
91
		onglets.add(personneOnglet);
630 jp_milcent 92
 
687 jp_milcent 93
		publicationOnglet = new TabItem(i18nC.collectionPublication());
94
		publicationOnglet.setLayout(new AnchorLayout());
95
		publicationOnglet.setScrollMode(Scroll.AUTO);
96
		onglets.add(publicationOnglet);
97
 
630 jp_milcent 98
		descriptionOnglet = new TabItem(i18nC.collectionDescription());
99
		descriptionOnglet.setLayout(new AnchorLayout());
100
		descriptionOnglet.setScrollMode(Scroll.AUTO);
101
		onglets.add(descriptionOnglet);
102
 
103
		contenuOnglet = new TabItem(i18nC.collectionContenu());
104
		contenuOnglet.setLayout(new AnchorLayout());
105
		contenuOnglet.setScrollMode(Scroll.AUTO);
106
		onglets.add(contenuOnglet);
862 jpm 107
 
630 jp_milcent 108
		inventaireOnglet = new TabItem(i18nC.collectionInventaire());
109
		inventaireOnglet.setLayout(new AnchorLayout());
110
		inventaireOnglet.setScrollMode(Scroll.AUTO);
111
		onglets.add(inventaireOnglet);
112
 
453 jp_milcent 113
		panneauPrincipal.add(onglets);
114
		add(panneauPrincipal);
115
	}
116
 
117
	private void initialiserTousLesTpl() {
118
		initialiserEnteteHtmlTpl();
119
		initialiserGeneralTpl();
883 jpm 120
		initialiserPersonneTpl();
121
		initialiserTableauPersonnesLieesTpl();
122
		initialiserLignePersonneLieeTpl();
687 jp_milcent 123
		initialiserPublicationTpl();
883 jpm 124
		initialiserTableauPublicationsLieesTpl();
125
		initialiserLignePublicationLieeTpl();
630 jp_milcent 126
		initialiserContenuTpl();
127
		initialiserDescriptionTpl();
128
		initialiserInventaireTpl();
453 jp_milcent 129
	}
130
 
131
	private void initialiserEnteteHtmlTpl() {
132
		enteteTpl =
133
			"<div id='{css_id}'>"+
134
			"	<h1>{nom}</h1>"+
813 jpm 135
			"	<h2>{structure}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
453 jp_milcent 136
			"</div>";
137
	}
138
 
139
	private void initialiserGeneralTpl() {
140
		generalTpl =
141
			"<div class='{css_corps}'>"+
142
			"	<div class='{css_fieldset}'>"+
143
			"		<h2>{i18n_titre_identification}</h2>"+
630 jp_milcent 144
			"		<span class='{css_label}'>{i18n_nom_alternatif} :</span> {nom_alternatif}<br />"+
477 jp_milcent 145
			"		<span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
146
			"		<span class='{css_label}'>{i18n_code} :</span> {code}<br />"+
630 jp_milcent 147
			"		<span class='{css_label}'>{i18n_cote} :</span> {cote}<br />"+
148
			"		<span class='{css_label}'>{i18n_mere} :</span> {mere}<br />"+
687 jp_milcent 149
			"		<span class='{css_label}'>{i18n_type_ncd} :</span> {type_ncd}<br />"+
150
			"		<span class='{css_label}'>{i18n_type_depot} :</span> {type_depot}<br />"+
453 jp_milcent 151
			"	</div>"+
477 jp_milcent 152
			"	<div class='{css_fieldset}'>"+
630 jp_milcent 153
			"		<h2>{i18n_general_collection_titre}</h2>"+
477 jp_milcent 154
			"		<span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
155
			"		<span class='{css_label}'>{i18n_description_specialiste} :</span> {description_specialiste}<br />"+
630 jp_milcent 156
			"		<span class='{css_label}'>{i18n_historique} :</span> {historique}<br />"+
157
			"		<span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
158
			"		<span class='{css_label}'>{i18n_groupement_principe} :</span> {groupement_principe}<br />"+
159
			"		<span class='{css_label}'>{i18n_groupement_but} :</span> {groupement_but}<br />"+
477 jp_milcent 160
			"	</div>"+
161
			"	<hr class='{css_clear}'/>"+
453 jp_milcent 162
			"</div>";
163
	}
164
 
883 jpm 165
	private void initialiserPersonneTpl() {
166
		personneTpl =
630 jp_milcent 167
			"<div class='{css_corps}'>"+
168
			"	<div class='{css_fieldset}'>"+
883 jpm 169
			"		<h2>{i18n_titre_personne}</h2>"+
170
			"		{tableau_personnes_liees}"+
630 jp_milcent 171
			"	</div>"+
172
			"	<hr class='{css_clear}'/>"+
173
			"</div>";
174
	}
175
 
883 jpm 176
 
177
	private void initialiserTableauPersonnesLieesTpl() {
178
		tableauPersonnesLieesTpl =
179
			"<h3>{i18n_titre_membre}</h3>"+
180
			"<table>"+
181
			"	<thead>"+
182
			"		<tr>" +
183
			"			<th>{i18n_prenom}</th>" +
184
			"			<th>{i18n_nom}</th>" +
185
			"		</tr>"+
186
			"	</thead>"+
187
			"	<tbody>"+
188
			"		{lignes}"+
189
			"	</tbody>"+
190
			"</table>";
191
	}
192
 
193
	private void initialiserLignePersonneLieeTpl() {
194
		lignePersonneLieeTpl =
195
			"<tr>"+
196
			"	<td>{prenom}</td>"+
197
			"	<td>{nom}</td>"+
198
			"</tr>";
199
	}
200
 
687 jp_milcent 201
	private void initialiserPublicationTpl() {
202
		publicationTpl =
203
			"<div class='{css_corps}'>"+
204
			"	<div class='{css_fieldset}'>"+
205
			"		<h2>{i18n_titre_publication}</h2>"+
883 jpm 206
			"		{tableau_publications_liees}"+
687 jp_milcent 207
			"	</div>"+
208
			"	<hr class='{css_clear}'/>"+
209
			"</div>";
210
	}
211
 
883 jpm 212
	private void initialiserTableauPublicationsLieesTpl() {
213
		tableauPublicationsLieesTpl =
214
			"<table>"+
215
			"	<thead>"+
216
			"		<tr>" +
217
			"			<th>{i18n_auteur}</th>" +
218
			"			<th>{i18n_titre}</th>" +
219
			"		</tr>"+
220
			"	</thead>"+
221
			"	<tbody>"+
222
			"		{lignes}"+
223
			"	</tbody>"+
224
			"</table>";
225
	}
226
 
227
	private void initialiserLignePublicationLieeTpl() {
228
		lignePublicationLieeTpl =
229
			"<tr>"+
230
			"	<td>{auteur}</td>"+
231
			"	<td>{titre}</td>"+
232
			"</tr>";
233
	}
234
 
630 jp_milcent 235
	private void initialiserDescriptionTpl() {
236
		descriptionTpl =
237
			"<div class='{css_corps}'>"+
238
			"	<div class='{css_fieldset}'>"+
239
			"		<h2>{i18n_titre_description}</h2>"+
875 jpm 240
			"		<span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
241
			"		<span class='{css_label}'>{i18n_nbre_echantillon} :</span> {nbre_echantillon}<br />"+
630 jp_milcent 242
			"	</div>"+
243
			"	<hr class='{css_clear}'/>"+
244
			"</div>";
245
	}
246
 
247
	private void initialiserContenuTpl() {
248
		contenuTpl =
249
			"<div class='{css_corps}'>"+
250
			"	<div class='{css_fieldset}'>"+
251
			"		<h2>{i18n_titre_contenu}</h2>"+
252
			"	</div>"+
253
			"	<hr class='{css_clear}'/>"+
254
			"</div>";
255
	}
256
 
257
	private void initialiserInventaireTpl() {
258
		inventaireTpl =
259
			"<div class='{css_corps}'>"+
260
			"	<div class='{css_fieldset}'>"+
261
			"		<h2>{i18n_titre_inventaire}</h2>"+
262
			"	</div>"+
263
			"	<hr class='{css_clear}'/>"+
264
			"</div>";
265
	}
266
 
453 jp_milcent 267
	private void chargerOntologie() {
875 jpm 268
		String[] listesCodes = {"typeCollectionBota", "typeCollectionNcd", "typeDepot", "groupementPrincipe", "realisationBut"};
813 jpm 269
		lancerChargementListesValeurs(listesCodes);
453 jp_milcent 270
	}
271
 
811 jpm 272
	public void rafraichir(Object nouvellesDonnees) {
273
		if (nouvellesDonnees instanceof Collection) {
274
			collection = (Collection) nouvellesDonnees;
813 jpm 275
			collectionChargementOk = true;
811 jpm 276
		} else if (nouvellesDonnees instanceof ProjetListe) {
277
			projets = (ProjetListe) nouvellesDonnees;
813 jpm 278
			projetsChargementOk = true;
811 jpm 279
		} else if (nouvellesDonnees instanceof ValeurListe) {
813 jpm 280
			ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
816 jpm 281
			receptionerListeValeurs(listeValeursReceptionnee);
883 jpm 282
		} else if (nouvellesDonnees instanceof Information) {
283
			Information info = (Information) nouvellesDonnees;
284
			if (info.getType().equals("liste_collection_a_personne")) {
285
				lierCollectionAPersonne((CollectionAPersonneListe) info.getDonnee(0));
286
			} else if (info.getType().equals("liste_collection_a_publication")) {
287
				lierCollectionAPublication((CollectionAPublicationListe) info.getDonnee(0));
288
			}
453 jp_milcent 289
		} else {
950 jpm 290
			Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
453 jp_milcent 291
		}
813 jpm 292
 
293
		if (avoirDonneesChargees()) {
294
			afficherDetail();
295
		}
453 jp_milcent 296
	}
297
 
883 jpm 298
	protected void lierCollectionAPersonne(CollectionAPersonneListe personnes) {
299
		collection.setPersonnesLiees(personnes);
300
		personnesLieesChargementOk = true;
301
	}
302
 
303
	protected void lierCollectionAPublication(CollectionAPublicationListe publications) {
304
		collection.setPublicationsLiees(publications);
305
		publicationsLieesChargementOk = true;
306
	}
307
 
813 jpm 308
	private boolean avoirDonneesChargees() {
309
		boolean ok = false;
948 jpm 310
		//Debug.log("projetsChargementOk:"+projetsChargementOk+"-collectionChargementOk:"+collectionChargementOk+"-ontologieChargementOk:"+ontologieChargementOk+"-personnesLieesChargementOk:"+personnesLieesChargementOk+"-publicationsLieesChargementOk:"+publicationsLieesChargementOk);
883 jpm 311
		if (projetsChargementOk && collectionChargementOk && ontologieChargementOk && personnesLieesChargementOk && publicationsLieesChargementOk) {
813 jpm 312
			ok = true;
313
		}
314
		return ok;
315
	}
316
 
453 jp_milcent 317
	private void afficherDetail() {
318
		if (collection != null) {
319
			afficherEntete();
320
			afficherIdentification();
883 jpm 321
			afficherPersonne();
687 jp_milcent 322
			afficherPublication();
630 jp_milcent 323
			afficherDescription();
324
			afficherContenu();
325
			afficherInventaire();
453 jp_milcent 326
		}
327
		layout();
328
	}
329
 
330
	private void afficherEntete() {
331
		Params enteteParams = new Params();
332
		enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
333
		enteteParams.set("css_meta", ComposantClass.META);
334
 
813 jpm 335
		enteteParams.set("i18n_id", i18nC.id());
336
 
453 jp_milcent 337
		enteteParams.set("nom", collection.getNom());
468 jp_milcent 338
		enteteParams.set("structure", collection.getStructureNom());
453 jp_milcent 339
		enteteParams.set("id", collection.getId());
340
		enteteParams.set("guid", collection.getGuid());
341
		enteteParams.set("projet", construireTxtProjet(collection.getIdProjet()));
342
 
343
		String eHtml = Format.substitute(enteteTpl, enteteParams);
344
		entete.getElement().setInnerHTML(eHtml);
345
	}
346
 
347
	private void afficherIdentification() {
348
		Params generalParams = new Params();
349
		generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
687 jp_milcent 350
		generalParams.set("i18n_nom_alternatif", i18nC.nomAlternatif());
453 jp_milcent 351
		generalParams.set("i18n_acronyme", i18nC.acronyme());
477 jp_milcent 352
		generalParams.set("i18n_code", i18nC.code());
353
		generalParams.set("i18n_cote", i18nC.cote());
354
		generalParams.set("i18n_mere", i18nC.collectionMere());
687 jp_milcent 355
		generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
356
		generalParams.set("i18n_type_depot", i18nC.typeDepot());
357
 
630 jp_milcent 358
		generalParams.set("i18n_general_collection_titre", i18nC.collectionGeneralTitre());
477 jp_milcent 359
		generalParams.set("i18n_description", i18nC.description());
360
		generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
361
		generalParams.set("i18n_historique", i18nC.historique());
362
		generalParams.set("i18n_web", i18nC.siteWeb());
363
		generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
364
		generalParams.set("i18n_groupement_but", i18nC.groupementBut());
365
 
366
		String acronyme = construireTxtTruck(collection.getIdAlternatif());
630 jp_milcent 367
		String code = construireTxtTruck(collection.getCode());
368
		String nomAlternatif = construireTxtTruck(collection.getNomAlternatif());
369
		String urls = construireTxtTruck(collection.getUrls());
370
		String typeNcd = construireTxtListeOntologie(collection.getTypeNcd());
371
		String typeDepot = construireTxtListeOntologie(collection.getTypeDepot());
875 jpm 372
		String groupementBut = construireTxtListeOntologie(collection.getGroupementBut());
373
		String groupementPrincipe = construireTxtListeOntologie(collection.getGroupementPrincipe());
630 jp_milcent 374
 
375
		generalParams.set("nom_alternatif", nomAlternatif);
453 jp_milcent 376
		generalParams.set("acronyme", acronyme);
630 jp_milcent 377
		generalParams.set("code", code);
378
		generalParams.set("cote", collection.getCote());
379
		generalParams.set("mere", collection.getCollectionMereNom());
687 jp_milcent 380
		generalParams.set("type_ncd", typeNcd);
381
		generalParams.set("type_depot", typeDepot);
382
 
477 jp_milcent 383
		generalParams.set("description", collection.getDescription());
384
		generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
630 jp_milcent 385
		generalParams.set("historique", collection.getHistorique());
386
		generalParams.set("web", urls);
875 jpm 387
		generalParams.set("groupement_principe", groupementPrincipe);
388
		generalParams.set("groupement_but", groupementBut);
453 jp_milcent 389
 
390
		afficherOnglet(generalTpl, generalParams, generalOnglet);
391
	}
392
 
883 jpm 393
	private void afficherPersonne() {
394
		String tableauPersonneHtml = "";
914 jpm 395
		if (collection.getPersonnesLiees() != null && collection.getPersonnesLiees().size() > 0) {
883 jpm 396
			tableauPersonneHtml = construireTableauPersonnesLiees();
397
		}
630 jp_milcent 398
 
883 jpm 399
		Params personneParams = new Params();
400
		personneParams.set("i18n_titre_personne", i18nC.collectionPersonneTitre());
401
		personneParams.set("tableau_personnes_liees", tableauPersonneHtml);
402
 
403
		afficherOnglet(personneTpl, personneParams, personneOnglet);
630 jp_milcent 404
	}
405
 
883 jpm 406
	private String construireTableauPersonnesLiees() {
407
		Params contenuParams = new Params();
408
		contenuParams.set("i18n_prenom", i18nC.personnePrenom());
409
		contenuParams.set("i18n_nom", i18nC.personneNom());
410
 
411
		String lignesPersonnel = "";
412
 
413
		Iterator<String> it = collection.getPersonnesLiees().keySet().iterator();
414
		while (it.hasNext()) {
415
			CollectionAPersonne relationCollectionAPersonne = collection.getPersonnesLiees().get(it.next());
416
			Personne personne = relationCollectionAPersonne.getPersonne();
417
			Params ligneParams = new Params();
418
 
419
			ligneParams.set("prenom", personne.getPrenom());
420
			ligneParams.set("nom", personne.getNom());
421
			lignesPersonnel += Format.substitute(lignePersonneLieeTpl, ligneParams);
422
		}
423
		contenuParams.set("lignes", lignesPersonnel);
424
 
425
		String cHtml = Format.substitute(tableauPersonnesLieesTpl, contenuParams);
426
		return cHtml;
427
	}
428
 
687 jp_milcent 429
	private void afficherPublication() {
430
		Params publicationParams = new Params();
431
		publicationParams.set("i18n_titre_publication", i18nC.collectionPublicationTitre());
432
 
883 jpm 433
		String tableauPublicationHtml = "";
914 jpm 434
		if (collection.getPersonnesLiees() != null && collection.getPersonnesLiees().size() > 0) {
883 jpm 435
			tableauPublicationHtml = construireTableauPublicationsLiees();
436
		}
437
		publicationParams.set("tableau_publications_liees", tableauPublicationHtml);
438
 
687 jp_milcent 439
		afficherOnglet(publicationTpl, publicationParams, publicationOnglet);
440
	}
441
 
883 jpm 442
	private String construireTableauPublicationsLiees() {
443
		Params contenuParams = new Params();
444
		contenuParams.set("i18n_auteur", i18nC.publicationAuteurs());
445
		contenuParams.set("i18n_titre", i18nC.publicationTitre());
446
 
447
		String lignesPublication = "";
448
 
449
		Iterator<String> it = collection.getPublicationsLiees().keySet().iterator();
450
		while (it.hasNext()) {
451
			CollectionAPublication relationCollectionAPublication = collection.getPublicationsLiees().get(it.next());
452
			Publication publication = relationCollectionAPublication.getPublication();
453
			Params ligneParams = new Params();
454
 
455
			ligneParams.set("auteur", publication.getAuteur());
456
			ligneParams.set("titre", publication.getTitre());
457
			lignesPublication += Format.substitute(lignePublicationLieeTpl, ligneParams);
458
		}
459
		contenuParams.set("lignes", lignesPublication);
460
 
461
		String cHtml = Format.substitute(tableauPublicationsLieesTpl, contenuParams);
462
		return cHtml;
463
	}
464
 
630 jp_milcent 465
	private void afficherDescription() {
466
		Params descriptionParams = new Params();
467
		descriptionParams.set("i18n_titre_description", i18nC.collectionDescriptionTitre());
875 jpm 468
		descriptionParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
469
		descriptionParams.set("i18n_nbre_echantillon", i18nC.nbreEchantillon());
630 jp_milcent 470
 
875 jpm 471
		String typeBota = construireTxtListeOntologie(collection.getBotanique().getType());
472
 
473
		descriptionParams.set("type_botanique", typeBota);
474
		descriptionParams.set("nbre_echantillon", collection.getBotanique().getNbreEchantillon());
475
 
630 jp_milcent 476
		afficherOnglet(descriptionTpl, descriptionParams, descriptionOnglet);
477
	}
478
 
479
	private void afficherContenu() {
480
		Params contenuParams = new Params();
481
		contenuParams.set("i18n_titre_contenu", i18nC.collectionContenuTitre());
482
 
483
		afficherOnglet(contenuTpl, contenuParams, contenuOnglet);
484
	}
485
 
486
	private void afficherInventaire() {
487
		Params inventaireParams = new Params();
488
		inventaireParams.set("i18n_titre_inventaire", i18nC.collectionInventaireTitre());
489
 
490
		afficherOnglet(inventaireTpl, inventaireParams, inventaireOnglet);
491
	}
492
 
468 jp_milcent 493
	protected String getNomStructure() {
494
		String nomStructure = "";
495
		if (structure != null) {
496
			nomStructure = structure.getNom();
497
		} else {
498
			nomStructure = collection.getIdStructure();
453 jp_milcent 499
		}
468 jp_milcent 500
		return nomStructure;
453 jp_milcent 501
	}
502
}