Subversion Repositories eFlore/Applications.coel

Rev

Rev 935 | Rev 938 | 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;
936 jpm 20
import org.tela_botanica.client.vues.DetailVue;
453 jp_milcent 21
 
22
import com.extjs.gxt.ui.client.Style.Scroll;
23
import com.extjs.gxt.ui.client.util.Format;
24
import com.extjs.gxt.ui.client.util.Params;
25
import com.extjs.gxt.ui.client.widget.ContentPanel;
26
import com.extjs.gxt.ui.client.widget.Html;
27
import com.extjs.gxt.ui.client.widget.TabItem;
28
import com.extjs.gxt.ui.client.widget.TabPanel;
29
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
30
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
31
import com.google.gwt.core.client.GWT;
32
 
33
public class CollectionDetailVue extends DetailVue implements Rafraichissable {
34
 
883 jpm 35
	private Collection collection = null;
36
	private boolean collectionChargementOk = false;
37
	private boolean personnesLieesChargementOk = false;
38
	private boolean publicationsLieesChargementOk = false;
468 jp_milcent 39
	private Structure structure = null;
883 jpm 40
 
453 jp_milcent 41
	private String enteteTpl = null;
42
	private String generalTpl = null;
883 jpm 43
	private String personneTpl = null;
44
	private String tableauPersonnesLieesTpl = null;
45
	private String lignePersonneLieeTpl = null;
687 jp_milcent 46
	private String publicationTpl = null;
883 jpm 47
	private String tableauPublicationsLieesTpl = null;
48
	private String lignePublicationLieeTpl = null;
630 jp_milcent 49
	private String descriptionTpl = null;
50
	private String contenuTpl = null;
51
	private String inventaireTpl = null;
453 jp_milcent 52
 
53
	private ContentPanel panneauPrincipal = null;
54
	private Html entete = null;
55
	private TabPanel onglets = null;
56
	private TabItem generalOnglet = null;
862 jpm 57
	private TabItem personneOnglet = null;
687 jp_milcent 58
	private TabItem publicationOnglet = null;
630 jp_milcent 59
	private TabItem descriptionOnglet = null;
60
	private TabItem contenuOnglet = null;
61
	private TabItem inventaireOnglet = null;
883 jpm 62
 
453 jp_milcent 63
 
64
	public CollectionDetailVue(Mediateur mediateurCourant) {
65
		super(mediateurCourant);
66
		initialiserTousLesTpl();
67
		chargerOntologie();
68
 
69
		panneauPrincipal = new ContentPanel();
70
		panneauPrincipal.setLayout(new FlowLayout());
71
		panneauPrincipal.setHeaderVisible(false);
72
		panneauPrincipal.setBodyBorder(false);
73
 
74
	    entete = new Html();
75
	    entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
76
	    panneauPrincipal.setTopComponent(entete);
77
 
78
		onglets = new TabPanel();
79
		onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
80
		onglets.setHeight("100%");
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 {
862 jpm 290
			GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
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;
883 jpm 310
		if (projetsChargementOk && collectionChargementOk && ontologieChargementOk && personnesLieesChargementOk && publicationsLieesChargementOk) {
813 jpm 311
			ok = true;
312
		}
313
		return ok;
314
	}
315
 
453 jp_milcent 316
	private void afficherDetail() {
317
		if (collection != null) {
318
			afficherEntete();
319
			afficherIdentification();
883 jpm 320
			afficherPersonne();
687 jp_milcent 321
			afficherPublication();
630 jp_milcent 322
			afficherDescription();
323
			afficherContenu();
324
			afficherInventaire();
453 jp_milcent 325
		}
326
		layout();
327
	}
328
 
329
	private void afficherEntete() {
330
		Params enteteParams = new Params();
331
		enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
332
		enteteParams.set("css_meta", ComposantClass.META);
333
 
813 jpm 334
		enteteParams.set("i18n_id", i18nC.id());
335
 
453 jp_milcent 336
		enteteParams.set("nom", collection.getNom());
468 jp_milcent 337
		enteteParams.set("structure", collection.getStructureNom());
453 jp_milcent 338
		enteteParams.set("id", collection.getId());
339
		enteteParams.set("guid", collection.getGuid());
340
		enteteParams.set("projet", construireTxtProjet(collection.getIdProjet()));
341
 
342
		String eHtml = Format.substitute(enteteTpl, enteteParams);
343
		entete.getElement().setInnerHTML(eHtml);
344
	}
345
 
346
	private void afficherIdentification() {
347
		Params generalParams = new Params();
348
		generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
687 jp_milcent 349
		generalParams.set("i18n_nom_alternatif", i18nC.nomAlternatif());
453 jp_milcent 350
		generalParams.set("i18n_acronyme", i18nC.acronyme());
477 jp_milcent 351
		generalParams.set("i18n_code", i18nC.code());
352
		generalParams.set("i18n_cote", i18nC.cote());
353
		generalParams.set("i18n_mere", i18nC.collectionMere());
687 jp_milcent 354
		generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
355
		generalParams.set("i18n_type_depot", i18nC.typeDepot());
356
 
630 jp_milcent 357
		generalParams.set("i18n_general_collection_titre", i18nC.collectionGeneralTitre());
477 jp_milcent 358
		generalParams.set("i18n_description", i18nC.description());
359
		generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
360
		generalParams.set("i18n_historique", i18nC.historique());
361
		generalParams.set("i18n_web", i18nC.siteWeb());
362
		generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
363
		generalParams.set("i18n_groupement_but", i18nC.groupementBut());
364
 
365
		String acronyme = construireTxtTruck(collection.getIdAlternatif());
630 jp_milcent 366
		String code = construireTxtTruck(collection.getCode());
367
		String nomAlternatif = construireTxtTruck(collection.getNomAlternatif());
368
		String urls = construireTxtTruck(collection.getUrls());
369
		String typeNcd = construireTxtListeOntologie(collection.getTypeNcd());
370
		String typeDepot = construireTxtListeOntologie(collection.getTypeDepot());
875 jpm 371
		String groupementBut = construireTxtListeOntologie(collection.getGroupementBut());
372
		String groupementPrincipe = construireTxtListeOntologie(collection.getGroupementPrincipe());
630 jp_milcent 373
 
374
		generalParams.set("nom_alternatif", nomAlternatif);
453 jp_milcent 375
		generalParams.set("acronyme", acronyme);
630 jp_milcent 376
		generalParams.set("code", code);
377
		generalParams.set("cote", collection.getCote());
378
		generalParams.set("mere", collection.getCollectionMereNom());
687 jp_milcent 379
		generalParams.set("type_ncd", typeNcd);
380
		generalParams.set("type_depot", typeDepot);
381
 
477 jp_milcent 382
		generalParams.set("description", collection.getDescription());
383
		generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
630 jp_milcent 384
		generalParams.set("historique", collection.getHistorique());
385
		generalParams.set("web", urls);
875 jpm 386
		generalParams.set("groupement_principe", groupementPrincipe);
387
		generalParams.set("groupement_but", groupementBut);
453 jp_milcent 388
 
389
		afficherOnglet(generalTpl, generalParams, generalOnglet);
390
	}
391
 
883 jpm 392
	private void afficherPersonne() {
393
		String tableauPersonneHtml = "";
914 jpm 394
		if (collection.getPersonnesLiees() != null && collection.getPersonnesLiees().size() > 0) {
883 jpm 395
			tableauPersonneHtml = construireTableauPersonnesLiees();
396
		}
630 jp_milcent 397
 
883 jpm 398
		Params personneParams = new Params();
399
		personneParams.set("i18n_titre_personne", i18nC.collectionPersonneTitre());
400
		personneParams.set("tableau_personnes_liees", tableauPersonneHtml);
401
 
402
		afficherOnglet(personneTpl, personneParams, personneOnglet);
630 jp_milcent 403
	}
404
 
883 jpm 405
	private String construireTableauPersonnesLiees() {
406
		Params contenuParams = new Params();
407
		contenuParams.set("i18n_prenom", i18nC.personnePrenom());
408
		contenuParams.set("i18n_nom", i18nC.personneNom());
409
 
410
		String lignesPersonnel = "";
411
 
412
		Iterator<String> it = collection.getPersonnesLiees().keySet().iterator();
413
		while (it.hasNext()) {
414
			CollectionAPersonne relationCollectionAPersonne = collection.getPersonnesLiees().get(it.next());
415
			Personne personne = relationCollectionAPersonne.getPersonne();
416
			Params ligneParams = new Params();
417
 
418
			ligneParams.set("prenom", personne.getPrenom());
419
			ligneParams.set("nom", personne.getNom());
420
			lignesPersonnel += Format.substitute(lignePersonneLieeTpl, ligneParams);
421
		}
422
		contenuParams.set("lignes", lignesPersonnel);
423
 
424
		String cHtml = Format.substitute(tableauPersonnesLieesTpl, contenuParams);
425
		return cHtml;
426
	}
427
 
687 jp_milcent 428
	private void afficherPublication() {
429
		Params publicationParams = new Params();
430
		publicationParams.set("i18n_titre_publication", i18nC.collectionPublicationTitre());
431
 
883 jpm 432
		String tableauPublicationHtml = "";
914 jpm 433
		if (collection.getPersonnesLiees() != null && collection.getPersonnesLiees().size() > 0) {
883 jpm 434
			tableauPublicationHtml = construireTableauPublicationsLiees();
435
		}
436
		publicationParams.set("tableau_publications_liees", tableauPublicationHtml);
437
 
687 jp_milcent 438
		afficherOnglet(publicationTpl, publicationParams, publicationOnglet);
439
	}
440
 
883 jpm 441
	private String construireTableauPublicationsLiees() {
442
		Params contenuParams = new Params();
443
		contenuParams.set("i18n_auteur", i18nC.publicationAuteurs());
444
		contenuParams.set("i18n_titre", i18nC.publicationTitre());
445
 
446
		String lignesPublication = "";
447
 
448
		Iterator<String> it = collection.getPublicationsLiees().keySet().iterator();
449
		while (it.hasNext()) {
450
			CollectionAPublication relationCollectionAPublication = collection.getPublicationsLiees().get(it.next());
451
			Publication publication = relationCollectionAPublication.getPublication();
452
			Params ligneParams = new Params();
453
 
454
			ligneParams.set("auteur", publication.getAuteur());
455
			ligneParams.set("titre", publication.getTitre());
456
			lignesPublication += Format.substitute(lignePublicationLieeTpl, ligneParams);
457
		}
458
		contenuParams.set("lignes", lignesPublication);
459
 
460
		String cHtml = Format.substitute(tableauPublicationsLieesTpl, contenuParams);
461
		return cHtml;
462
	}
463
 
630 jp_milcent 464
	private void afficherDescription() {
465
		Params descriptionParams = new Params();
466
		descriptionParams.set("i18n_titre_description", i18nC.collectionDescriptionTitre());
875 jpm 467
		descriptionParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
468
		descriptionParams.set("i18n_nbre_echantillon", i18nC.nbreEchantillon());
630 jp_milcent 469
 
875 jpm 470
		String typeBota = construireTxtListeOntologie(collection.getBotanique().getType());
471
 
472
		descriptionParams.set("type_botanique", typeBota);
473
		descriptionParams.set("nbre_echantillon", collection.getBotanique().getNbreEchantillon());
474
 
630 jp_milcent 475
		afficherOnglet(descriptionTpl, descriptionParams, descriptionOnglet);
476
	}
477
 
478
	private void afficherContenu() {
479
		Params contenuParams = new Params();
480
		contenuParams.set("i18n_titre_contenu", i18nC.collectionContenuTitre());
481
 
482
		afficherOnglet(contenuTpl, contenuParams, contenuOnglet);
483
	}
484
 
485
	private void afficherInventaire() {
486
		Params inventaireParams = new Params();
487
		inventaireParams.set("i18n_titre_inventaire", i18nC.collectionInventaireTitre());
488
 
489
		afficherOnglet(inventaireTpl, inventaireParams, inventaireOnglet);
490
	}
491
 
468 jp_milcent 492
	protected String getNomStructure() {
493
		String nomStructure = "";
494
		if (structure != null) {
495
			nomStructure = structure.getNom();
496
		} else {
497
			nomStructure = collection.getIdStructure();
453 jp_milcent 498
		}
468 jp_milcent 499
		return nomStructure;
453 jp_milcent 500
	}
501
}