1 |
package org.tela_botanica.client.vues;
|
1 |
package org.tela_botanica.client.vues;
|
2 |
|
2 |
|
3 |
import java.util.ArrayList;
|
3 |
import java.util.ArrayList;
|
4 |
import java.util.HashMap;
|
4 |
import java.util.HashMap;
|
5 |
import java.util.Iterator;
|
5 |
import java.util.Iterator;
|
6 |
|
6 |
|
7 |
import org.tela_botanica.client.ComposantClass;
|
7 |
import org.tela_botanica.client.ComposantClass;
|
8 |
import org.tela_botanica.client.ComposantId;
|
8 |
import org.tela_botanica.client.ComposantId;
|
9 |
import org.tela_botanica.client.Mediateur;
|
9 |
import org.tela_botanica.client.Mediateur;
|
10 |
import org.tela_botanica.client.i18n.Constantes;
|
10 |
import org.tela_botanica.client.i18n.Constantes;
|
11 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
11 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
12 |
import org.tela_botanica.client.modeles.Information;
|
12 |
import org.tela_botanica.client.modeles.Information;
|
13 |
import org.tela_botanica.client.modeles.Projet;
|
13 |
import org.tela_botanica.client.modeles.Projet;
|
14 |
import org.tela_botanica.client.modeles.ProjetListe;
|
14 |
import org.tela_botanica.client.modeles.ProjetListe;
|
15 |
import org.tela_botanica.client.modeles.Structure;
|
15 |
import org.tela_botanica.client.modeles.Structure;
|
16 |
import org.tela_botanica.client.modeles.StructureAPersonne;
|
16 |
import org.tela_botanica.client.modeles.StructureAPersonne;
|
17 |
import org.tela_botanica.client.modeles.StructureAPersonneListe;
|
17 |
import org.tela_botanica.client.modeles.StructureAPersonneListe;
|
18 |
import org.tela_botanica.client.modeles.StructureConservation;
|
18 |
import org.tela_botanica.client.modeles.StructureConservation;
|
19 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
19 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
20 |
import org.tela_botanica.client.modeles.Valeur;
|
20 |
import org.tela_botanica.client.modeles.Valeur;
|
21 |
import org.tela_botanica.client.modeles.ValeurListe;
|
21 |
import org.tela_botanica.client.modeles.ValeurListe;
|
22 |
|
22 |
|
23 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
23 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
24 |
import com.extjs.gxt.ui.client.util.Format;
|
24 |
import com.extjs.gxt.ui.client.util.Format;
|
25 |
import com.extjs.gxt.ui.client.util.Params;
|
25 |
import com.extjs.gxt.ui.client.util.Params;
|
26 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
26 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
27 |
import com.extjs.gxt.ui.client.widget.Html;
|
27 |
import com.extjs.gxt.ui.client.widget.Html;
|
28 |
import com.extjs.gxt.ui.client.widget.HtmlContainer;
|
28 |
import com.extjs.gxt.ui.client.widget.HtmlContainer;
|
29 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
29 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
30 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
30 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
31 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
31 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
32 |
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
|
32 |
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
|
33 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
33 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
34 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
34 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
35 |
import com.google.gwt.core.client.GWT;
|
35 |
import com.google.gwt.core.client.GWT;
|
36 |
|
36 |
|
37 |
public class StructureDetailVue extends DetailVue implements Rafraichissable {
|
37 |
public class StructureDetailVue extends DetailVue implements Rafraichissable {
|
38 |
|
38 |
|
39 |
private String enteteTpl = null;
|
39 |
private String enteteTpl = null;
|
40 |
private String identificationTpl = null;
|
40 |
private String identificationTpl = null;
|
41 |
private String personnelTpl = null;
|
41 |
private String personnelTpl = null;
|
42 |
private String tableauPersonnelTpl = null;
|
42 |
private String tableauPersonnelTpl = null;
|
43 |
private String lignePersonnelTpl = null;
|
43 |
private String lignePersonnelTpl = null;
|
44 |
private String conservationTpl = null;
|
44 |
private String conservationTpl = null;
|
45 |
private String traitementConservationTpl = null;
|
45 |
private String traitementConservationTpl = null;
|
46 |
private String valorisationTpl = null;
|
46 |
private String valorisationTpl = null;
|
47 |
private String typeTraitementConservationTpl = null;
|
47 |
private String typeTraitementConservationTpl = null;
|
48 |
private String rechercheValorisationTpl = null;
|
48 |
private String rechercheValorisationTpl = null;
|
49 |
|
49 |
|
50 |
private Structure structure = null;
|
50 |
private Structure structure = null;
|
51 |
private StructureAPersonneListe personnel = null;
|
51 |
private StructureAPersonneListe personnel = null;
|
52 |
private StructureValorisation valorisation = null;
|
52 |
private StructureValorisation valorisation = null;
|
53 |
private StructureConservation conservation = null;
|
53 |
private StructureConservation conservation = null;
|
54 |
|
54 |
|
55 |
private ContentPanel panneauPrincipal = null;
|
55 |
private ContentPanel panneauPrincipal = null;
|
56 |
private Html entete = null;
|
56 |
private Html entete = null;
|
57 |
private TabPanel onglets = null;
|
57 |
private TabPanel onglets = null;
|
58 |
private TabItem identificationOnglet = null;
|
58 |
private TabItem identificationOnglet = null;
|
59 |
private TabItem personnelOnglet = null;
|
59 |
private TabItem personnelOnglet = null;
|
60 |
private TabItem conservationOnglet = null;
|
60 |
private TabItem conservationOnglet = null;
|
61 |
private TabItem valorisationOnglet = null;
|
61 |
private TabItem valorisationOnglet = null;
|
62 |
|
62 |
|
63 |
public StructureDetailVue(Mediateur mediateurCourant) {
|
63 |
public StructureDetailVue(Mediateur mediateurCourant) {
|
64 |
super(mediateurCourant);
|
64 |
super(mediateurCourant);
|
65 |
|
65 |
|
66 |
initialiserTousLesTpl();
|
66 |
initialiserTousLesTpl();
|
67 |
chargerOntologie();
|
67 |
chargerOntologie();
|
68 |
|
68 |
|
69 |
panneauPrincipal = new ContentPanel();
|
69 |
panneauPrincipal = new ContentPanel();
|
70 |
panneauPrincipal.setLayout(new FlowLayout());
|
70 |
panneauPrincipal.setLayout(new FitLayout());
|
71 |
panneauPrincipal.setHeaderVisible(false);
|
71 |
panneauPrincipal.setHeaderVisible(false);
|
72 |
panneauPrincipal.setBodyBorder(false);
|
72 |
panneauPrincipal.setBodyBorder(false);
|
73 |
|
73 |
|
74 |
entete = new Html();
|
74 |
entete = new Html();
|
75 |
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
|
75 |
entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
|
76 |
panneauPrincipal.setTopComponent(entete);
|
76 |
panneauPrincipal.setTopComponent(entete);
|
77 |
|
77 |
|
78 |
onglets = new TabPanel();
|
78 |
onglets = new TabPanel();
|
79 |
onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
|
79 |
onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
|
80 |
onglets.setHeight("100%");
|
- |
|
- |
|
80 |
|
81 |
onglets.setBodyBorder(false);
|
81 |
onglets.setBodyBorder(false);
|
82 |
|
82 |
|
83 |
identificationOnglet = new TabItem(i18nC.structureInfoGeneral());
|
83 |
identificationOnglet = new TabItem(i18nC.structureInfoGeneral());
|
84 |
identificationOnglet.setLayout(new AnchorLayout());
|
84 |
identificationOnglet.setLayout(new AnchorLayout());
|
- |
|
85 |
identificationOnglet.setHeight("100%");
|
85 |
identificationOnglet.setScrollMode(Scroll.AUTO);
|
86 |
identificationOnglet.setScrollMode(Scroll.AUTO);
|
86 |
onglets.add(identificationOnglet);
|
87 |
onglets.add(identificationOnglet);
|
87 |
|
88 |
|
88 |
personnelOnglet = new TabItem(i18nC.structureInfoPersonnel());
|
89 |
personnelOnglet = new TabItem(i18nC.structureInfoPersonnel());
|
89 |
personnelOnglet.setLayout(new AnchorLayout());
|
90 |
personnelOnglet.setLayout(new AnchorLayout());
|
90 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
91 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
91 |
onglets.add(personnelOnglet);
|
92 |
onglets.add(personnelOnglet);
|
92 |
|
93 |
|
93 |
conservationOnglet = new TabItem(i18nC.structureInfoConservation());
|
94 |
conservationOnglet = new TabItem(i18nC.structureInfoConservation());
|
94 |
conservationOnglet.setLayout(new AnchorLayout());
|
95 |
conservationOnglet.setLayout(new AnchorLayout());
|
95 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
96 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
96 |
onglets.add(conservationOnglet);
|
97 |
onglets.add(conservationOnglet);
|
97 |
|
98 |
|
98 |
valorisationOnglet = new TabItem(i18nC.structureInfoValorisation());
|
99 |
valorisationOnglet = new TabItem(i18nC.structureInfoValorisation());
|
99 |
valorisationOnglet.setLayout(new AnchorLayout());
|
100 |
valorisationOnglet.setLayout(new AnchorLayout());
|
100 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
101 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
101 |
onglets.add(valorisationOnglet);
|
102 |
onglets.add(valorisationOnglet);
|
102 |
|
103 |
|
103 |
panneauPrincipal.add(onglets);
|
104 |
panneauPrincipal.add(onglets);
|
104 |
add(panneauPrincipal);
|
105 |
add(panneauPrincipal);
|
105 |
}
|
106 |
}
|
106 |
|
107 |
|
107 |
private void chargerOntologie() {
|
108 |
private void chargerOntologie() {
|
108 |
mediateur.obtenirListeValeurEtRafraichir(this, "stpr");
|
109 |
mediateur.obtenirListeValeurEtRafraichir(this, "stpr");
|
109 |
mediateur.obtenirListeValeurEtRafraichir(this, "stpu");
|
110 |
mediateur.obtenirListeValeurEtRafraichir(this, "stpu");
|
110 |
mediateur.obtenirListeValeurEtRafraichir(this, "statut");
|
111 |
mediateur.obtenirListeValeurEtRafraichir(this, "statut");
|
111 |
mediateur.obtenirListeValeurEtRafraichir(this, "fonction");
|
112 |
mediateur.obtenirListeValeurEtRafraichir(this, "fonction");
|
112 |
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
|
113 |
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
|
113 |
mediateur.obtenirListeValeurEtRafraichir(this, "localStockage");
|
114 |
mediateur.obtenirListeValeurEtRafraichir(this, "localStockage");
|
114 |
mediateur.obtenirListeValeurEtRafraichir(this, "meubleStockage");
|
115 |
mediateur.obtenirListeValeurEtRafraichir(this, "meubleStockage");
|
115 |
mediateur.obtenirListeValeurEtRafraichir(this, "parametreStockage");
|
116 |
mediateur.obtenirListeValeurEtRafraichir(this, "parametreStockage");
|
116 |
mediateur.obtenirListeValeurEtRafraichir(this, "autreCollection");
|
117 |
mediateur.obtenirListeValeurEtRafraichir(this, "autreCollection");
|
117 |
mediateur.obtenirListeValeurEtRafraichir(this, "onep");
|
118 |
mediateur.obtenirListeValeurEtRafraichir(this, "onep");
|
118 |
mediateur.obtenirListeValeurEtRafraichir(this, "opRestau");
|
119 |
mediateur.obtenirListeValeurEtRafraichir(this, "opRestau");
|
119 |
mediateur.obtenirListeValeurEtRafraichir(this, "autreMateriel");
|
120 |
mediateur.obtenirListeValeurEtRafraichir(this, "autreMateriel");
|
120 |
mediateur.obtenirListeValeurEtRafraichir(this, "poisonTraitement");
|
121 |
mediateur.obtenirListeValeurEtRafraichir(this, "poisonTraitement");
|
121 |
mediateur.obtenirListeValeurEtRafraichir(this, "insecteTraitement");
|
122 |
mediateur.obtenirListeValeurEtRafraichir(this, "insecteTraitement");
|
122 |
mediateur.obtenirListeValeurEtRafraichir(this, "actionValorisation");
|
123 |
mediateur.obtenirListeValeurEtRafraichir(this, "actionValorisation");
|
123 |
mediateur.obtenirListeValeurEtRafraichir(this, "continentEtFr");
|
124 |
mediateur.obtenirListeValeurEtRafraichir(this, "continentEtFr");
|
124 |
mediateur.obtenirListeValeurEtRafraichir(this, "typeRecherche");
|
125 |
mediateur.obtenirListeValeurEtRafraichir(this, "typeRecherche");
|
125 |
}
|
126 |
}
|
126 |
|
127 |
|
127 |
private void afficherDetailInstitution() {
|
128 |
private void afficherDetailInstitution() {
|
128 |
if (structure != null) {
|
129 |
if (structure != null) {
|
129 |
personnel = structure.getPersonnel();
|
130 |
personnel = structure.getPersonnel();
|
130 |
valorisation = structure.getValorisation();
|
131 |
valorisation = structure.getValorisation();
|
131 |
conservation = structure.getConservation();
|
132 |
conservation = structure.getConservation();
|
132 |
|
133 |
|
133 |
afficherEntete();
|
134 |
afficherEntete();
|
134 |
afficherIdentification();
|
135 |
afficherIdentification();
|
135 |
if (personnel != null) {
|
136 |
if (personnel != null) {
|
136 |
afficherPersonnel();
|
137 |
afficherPersonnel();
|
137 |
}
|
138 |
}
|
138 |
if (conservation != null) {
|
139 |
if (conservation != null) {
|
139 |
afficherConservation();
|
140 |
afficherConservation();
|
140 |
}
|
141 |
}
|
141 |
if (valorisation != null) {
|
142 |
if (valorisation != null) {
|
142 |
afficherValorisation();
|
143 |
afficherValorisation();
|
143 |
}
|
144 |
}
|
144 |
}
|
145 |
}
|
145 |
layout();
|
146 |
layout();
|
146 |
}
|
147 |
}
|
147 |
|
148 |
|
148 |
private void afficherEntete() {
|
149 |
private void afficherEntete() {
|
149 |
Params enteteParams = new Params();
|
150 |
Params enteteParams = new Params();
|
150 |
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
|
151 |
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
|
151 |
enteteParams.set("css_meta", ComposantClass.META);
|
152 |
enteteParams.set("css_meta", ComposantClass.META);
|
152 |
|
153 |
|
153 |
enteteParams.set("nom", structure.getNom());
|
154 |
enteteParams.set("nom", structure.getNom());
|
154 |
enteteParams.set("ville", structure.getVille());
|
155 |
enteteParams.set("ville", structure.getVille());
|
155 |
enteteParams.set("id", structure.getId());
|
156 |
enteteParams.set("id", structure.getId());
|
156 |
enteteParams.set("guid", structure.getGuid());
|
157 |
enteteParams.set("guid", structure.getGuid());
|
157 |
enteteParams.set("projet", construireTxtProjet(structure.getIdProjet()));
|
158 |
enteteParams.set("projet", construireTxtProjet(structure.getIdProjet()));
|
158 |
|
159 |
|
159 |
String eHtml = Format.substitute(enteteTpl, enteteParams);
|
160 |
String eHtml = Format.substitute(enteteTpl, enteteParams);
|
160 |
entete.getElement().setInnerHTML(eHtml);
|
161 |
entete.getElement().setInnerHTML(eHtml);
|
161 |
}
|
162 |
}
|
162 |
|
163 |
|
163 |
private void afficherIdentification() {
|
164 |
private void afficherIdentification() {
|
164 |
Params identificationParams = new Params();
|
165 |
Params identificationParams = new Params();
|
165 |
identificationParams.set("i18n_titre_administratif", i18nC.titreAdministratif());
|
166 |
identificationParams.set("i18n_titre_administratif", i18nC.titreAdministratif());
|
166 |
identificationParams.set("i18n_acronyme", i18nC.acronyme());
|
167 |
identificationParams.set("i18n_acronyme", i18nC.acronyme());
|
167 |
identificationParams.set("i18n_statut", i18nC.statut());
|
168 |
identificationParams.set("i18n_statut", i18nC.statut());
|
168 |
identificationParams.set("i18n_date_fondation", mediateur.i18nC.dateFondation());
|
169 |
identificationParams.set("i18n_date_fondation", mediateur.i18nC.dateFondation());
|
169 |
identificationParams.set("i18n_nbre_personnel", mediateur.i18nC.nbrePersonnel());
|
170 |
identificationParams.set("i18n_nbre_personnel", mediateur.i18nC.nbrePersonnel());
|
170 |
|
171 |
|
171 |
identificationParams.set("i18n_titre_description", mediateur.i18nC.description());
|
172 |
identificationParams.set("i18n_titre_description", mediateur.i18nC.description());
|
172 |
identificationParams.set("i18n_description", mediateur.i18nC.description());
|
173 |
identificationParams.set("i18n_description", mediateur.i18nC.description());
|
173 |
|
174 |
|
174 |
identificationParams.set("i18n_titre_adresse", mediateur.i18nC.adresse());
|
175 |
identificationParams.set("i18n_titre_adresse", mediateur.i18nC.adresse());
|
175 |
identificationParams.set("i18n_adresse", mediateur.i18nC.adresse());
|
176 |
identificationParams.set("i18n_adresse", mediateur.i18nC.adresse());
|
176 |
identificationParams.set("i18n_cp", mediateur.i18nC.codePostal());
|
177 |
identificationParams.set("i18n_cp", mediateur.i18nC.codePostal());
|
177 |
identificationParams.set("i18n_ville", mediateur.i18nC.ville());
|
178 |
identificationParams.set("i18n_ville", mediateur.i18nC.ville());
|
178 |
identificationParams.set("i18n_region", mediateur.i18nC.region());
|
179 |
identificationParams.set("i18n_region", mediateur.i18nC.region());
|
179 |
identificationParams.set("i18n_pays", mediateur.i18nC.pays());
|
180 |
identificationParams.set("i18n_pays", mediateur.i18nC.pays());
|
180 |
|
181 |
|
181 |
identificationParams.set("i18n_titre_communication", mediateur.i18nC.titreCommunication());
|
182 |
identificationParams.set("i18n_titre_communication", mediateur.i18nC.titreCommunication());
|
182 |
identificationParams.set("i18n_tel", mediateur.i18nC.telephone());
|
183 |
identificationParams.set("i18n_tel", mediateur.i18nC.telephone());
|
183 |
identificationParams.set("i18n_fax", mediateur.i18nC.fax());
|
184 |
identificationParams.set("i18n_fax", mediateur.i18nC.fax());
|
184 |
identificationParams.set("i18n_courriel", mediateur.i18nC.courriel());
|
185 |
identificationParams.set("i18n_courriel", mediateur.i18nC.courriel());
|
185 |
identificationParams.set("i18n_acces", mediateur.i18nC.acces());
|
186 |
identificationParams.set("i18n_acces", mediateur.i18nC.acces());
|
186 |
identificationParams.set("i18n_web", mediateur.i18nC.siteWeb());
|
187 |
identificationParams.set("i18n_web", mediateur.i18nC.siteWeb());
|
187 |
|
188 |
|
188 |
String acronyme = construireTxtTruck(structure.getIdAlternatif());
|
189 |
String acronyme = construireTxtTruck(structure.getIdAlternatif());
|
189 |
String typePrive = construireTxtListeOntologie(structure.getTypePrive());
|
190 |
String typePrive = construireTxtListeOntologie(structure.getTypePrive());
|
190 |
String typePublic = construireTxtListeOntologie(structure.getTypePublic());
|
191 |
String typePublic = construireTxtListeOntologie(structure.getTypePublic());
|
191 |
String pays = construireTxtListeOntologie(structure.getPays());
|
192 |
String pays = construireTxtListeOntologie(structure.getPays());
|
192 |
String web = construireTxtTruck(structure.getUrl());
|
193 |
String web = construireTxtTruck(structure.getUrl());
|
193 |
|
194 |
|
194 |
identificationParams.set("acronyme", acronyme);
|
195 |
identificationParams.set("acronyme", acronyme);
|
195 |
identificationParams.set("statut", typePrive+typePublic);
|
196 |
identificationParams.set("statut", typePrive+typePublic);
|
196 |
identificationParams.set("date_fondation", structure.getDateFondationFormatLong());
|
197 |
identificationParams.set("date_fondation", structure.getDateFondationFormatLong());
|
197 |
identificationParams.set("nbre_personnel", structure.getNbrePersonne());
|
198 |
identificationParams.set("nbre_personnel", structure.getNbrePersonne());
|
198 |
|
199 |
|
199 |
identificationParams.set("description", structure.getDescription());
|
200 |
identificationParams.set("description", structure.getDescription());
|
200 |
|
201 |
|
201 |
identificationParams.set("adresse", structure.getAdresse());
|
202 |
identificationParams.set("adresse", structure.getAdresse());
|
202 |
identificationParams.set("cp", structure.getCodePostal());
|
203 |
identificationParams.set("cp", structure.getCodePostal());
|
203 |
identificationParams.set("ville", structure.getVille());
|
204 |
identificationParams.set("ville", structure.getVille());
|
204 |
identificationParams.set("region", structure.getRegion());
|
205 |
identificationParams.set("region", structure.getRegion());
|
205 |
identificationParams.set("pays", pays);
|
206 |
identificationParams.set("pays", pays);
|
206 |
|
207 |
|
207 |
identificationParams.set("tel", structure.getTelephone());
|
208 |
identificationParams.set("tel", structure.getTelephone());
|
208 |
identificationParams.set("fax", structure.getFax());
|
209 |
identificationParams.set("fax", structure.getFax());
|
209 |
identificationParams.set("courriel", structure.getCourriel());
|
210 |
identificationParams.set("courriel", structure.getCourriel());
|
210 |
identificationParams.set("acces", structure.getConditionAcces());
|
211 |
identificationParams.set("acces", structure.getConditionAcces());
|
211 |
identificationParams.set("web", web);
|
212 |
identificationParams.set("web", web);
|
212 |
|
213 |
|
213 |
afficherOnglet(identificationTpl, identificationParams, identificationOnglet);
|
214 |
afficherOnglet(identificationTpl, identificationParams, identificationOnglet);
|
214 |
}
|
215 |
}
|
215 |
|
216 |
|
216 |
private void afficherPersonnel() {
|
217 |
private void afficherPersonnel() {
|
217 |
String tableauPersonnelHtml = "";
|
218 |
String tableauPersonnelHtml = "";
|
218 |
if (personnel.size() > 0) {
|
219 |
if (personnel.size() > 0) {
|
219 |
tableauPersonnelHtml = construireTableauDuPersonnel();
|
220 |
tableauPersonnelHtml = construireTableauDuPersonnel();
|
220 |
}
|
221 |
}
|
221 |
|
222 |
|
222 |
Params personnelParams = new Params();
|
223 |
Params personnelParams = new Params();
|
223 |
personnelParams.set("i18n_titre_personnel", i18nC.titrePersonnel());
|
224 |
personnelParams.set("i18n_titre_personnel", i18nC.titrePersonnel());
|
224 |
personnelParams.set("i18n_nbre_personnel_collection", i18nC.nbrePersonnelCollection());
|
225 |
personnelParams.set("i18n_nbre_personnel_collection", i18nC.nbrePersonnelCollection());
|
225 |
personnelParams.set("nbre_personnel_collection", personnel.size());
|
226 |
personnelParams.set("nbre_personnel_collection", personnel.size());
|
226 |
personnelParams.set("tableau_personnel", tableauPersonnelHtml);
|
227 |
personnelParams.set("tableau_personnel", tableauPersonnelHtml);
|
227 |
|
228 |
|
228 |
afficherOnglet(personnelTpl, personnelParams, personnelOnglet);
|
229 |
afficherOnglet(personnelTpl, personnelParams, personnelOnglet);
|
229 |
}
|
230 |
}
|
230 |
|
231 |
|
231 |
private String construireTableauDuPersonnel() {
|
232 |
private String construireTableauDuPersonnel() {
|
232 |
Params contenuParams = new Params();
|
233 |
Params contenuParams = new Params();
|
233 |
contenuParams.set("i18n_titre_membre", i18nC.titreMembre());
|
234 |
contenuParams.set("i18n_titre_membre", i18nC.titreMembre());
|
234 |
contenuParams.set("i18n_fonction", i18nC.fonction());
|
235 |
contenuParams.set("i18n_fonction", i18nC.fonction());
|
235 |
contenuParams.set("i18n_prenom", i18nC.prenom());
|
236 |
contenuParams.set("i18n_prenom", i18nC.prenom());
|
236 |
contenuParams.set("i18n_nom", i18nC.nom());
|
237 |
contenuParams.set("i18n_nom", i18nC.nom());
|
237 |
contenuParams.set("i18n_tel", i18nC.telephoneFixe());
|
238 |
contenuParams.set("i18n_tel", i18nC.telephoneFixe());
|
238 |
contenuParams.set("i18n_fax", i18nC.fax());
|
239 |
contenuParams.set("i18n_fax", i18nC.fax());
|
239 |
contenuParams.set("i18n_courriel", i18nC.courrielPrincipal());
|
240 |
contenuParams.set("i18n_courriel", i18nC.courrielPrincipal());
|
240 |
contenuParams.set("i18n_statut", i18nC.statut());
|
241 |
contenuParams.set("i18n_statut", i18nC.statut());
|
241 |
contenuParams.set("i18n_tps_w", i18nC.tpsTravail());
|
242 |
contenuParams.set("i18n_tps_w", i18nC.tpsTravail());
|
242 |
contenuParams.set("i18n_specialite", i18nC.specialite());
|
243 |
contenuParams.set("i18n_specialite", i18nC.specialite());
|
243 |
contenuParams.set("i18n_contact", i18nC.boolContact());
|
244 |
contenuParams.set("i18n_contact", i18nC.boolContact());
|
244 |
|
245 |
|
245 |
String lignesPersonnel = "";
|
246 |
String lignesPersonnel = "";
|
246 |
Iterator<String> it = personnel.keySet().iterator();
|
247 |
Iterator<String> it = personnel.keySet().iterator();
|
247 |
while (it.hasNext()) {
|
248 |
while (it.hasNext()) {
|
248 |
StructureAPersonne personne = personnel.get(it.next());
|
249 |
StructureAPersonne personne = personnel.get(it.next());
|
249 |
Params ligneParams = new Params();
|
250 |
Params ligneParams = new Params();
|
250 |
|
251 |
|
251 |
String fonction = construireTxtListeOntologie(personne.getFonction());
|
252 |
String fonction = construireTxtListeOntologie(personne.getFonction());
|
252 |
String statut = construireTxtListeOntologie(personne.getStatut());
|
253 |
String statut = construireTxtListeOntologie(personne.getStatut());
|
253 |
String contact = formaterOuiNon(personne.getContact());
|
254 |
String contact = formaterOuiNon(personne.getContact());
|
254 |
|
255 |
|
255 |
ligneParams.set("fonction", fonction);
|
256 |
ligneParams.set("fonction", fonction);
|
256 |
ligneParams.set("prenom", personne.getPrenom());
|
257 |
ligneParams.set("prenom", personne.getPrenom());
|
257 |
ligneParams.set("nom", personne.getNom());
|
258 |
ligneParams.set("nom", personne.getNom());
|
258 |
ligneParams.set("tel", personne.getTelephone());
|
259 |
ligneParams.set("tel", personne.getTelephone());
|
259 |
ligneParams.set("fax", personne.getFax());
|
260 |
ligneParams.set("fax", personne.getFax());
|
260 |
ligneParams.set("courriel", personne.getCourriel());
|
261 |
ligneParams.set("courriel", personne.getCourriel());
|
261 |
ligneParams.set("statut", statut);
|
262 |
ligneParams.set("statut", statut);
|
262 |
ligneParams.set("tps_w", personne.getBotaTravailHebdoTps());
|
263 |
ligneParams.set("tps_w", personne.getBotaTravailHebdoTps());
|
263 |
ligneParams.set("specialite", personne.afficherSpecialite());
|
264 |
ligneParams.set("specialite", personne.afficherSpecialite());
|
264 |
ligneParams.set("contact", contact);
|
265 |
ligneParams.set("contact", contact);
|
265 |
lignesPersonnel += Format.substitute(lignePersonnelTpl, ligneParams);
|
266 |
lignesPersonnel += Format.substitute(lignePersonnelTpl, ligneParams);
|
266 |
}
|
267 |
}
|
267 |
contenuParams.set("lignes", lignesPersonnel);
|
268 |
contenuParams.set("lignes", lignesPersonnel);
|
268 |
|
269 |
|
269 |
String cHtml = Format.substitute(tableauPersonnelTpl, contenuParams);
|
270 |
String cHtml = Format.substitute(tableauPersonnelTpl, contenuParams);
|
270 |
return cHtml;
|
271 |
return cHtml;
|
271 |
}
|
272 |
}
|
272 |
|
273 |
|
273 |
private void afficherConservation() {
|
274 |
private void afficherConservation() {
|
274 |
Params conservationParams = new Params();
|
275 |
Params conservationParams = new Params();
|
275 |
conservationParams.set("i18n_titre_conservation_personnel", i18nC.titreConservationPersonnel());
|
276 |
conservationParams.set("i18n_titre_conservation_personnel", i18nC.titreConservationPersonnel());
|
276 |
conservationParams.set("i18n_formation", i18nC.formation());
|
277 |
conservationParams.set("i18n_formation", i18nC.formation());
|
277 |
conservationParams.set("i18n_formation_interet", i18nC.formationInteret());
|
278 |
conservationParams.set("i18n_formation_interet", i18nC.formationInteret());
|
278 |
|
279 |
|
279 |
conservationParams.set("i18n_titre_local", i18nC.titreLocal());
|
280 |
conservationParams.set("i18n_titre_local", i18nC.titreLocal());
|
280 |
conservationParams.set("i18n_local_specifique", i18nC.localSpecifique());
|
281 |
conservationParams.set("i18n_local_specifique", i18nC.localSpecifique());
|
281 |
conservationParams.set("i18n_meuble_specifique", i18nC.meubleSpecifique());
|
282 |
conservationParams.set("i18n_meuble_specifique", i18nC.meubleSpecifique());
|
282 |
conservationParams.set("i18n_local_parametre", i18nC.localParametre());
|
283 |
conservationParams.set("i18n_local_parametre", i18nC.localParametre());
|
283 |
conservationParams.set("i18n_conservation_en_commun", i18nC.conservationEnCommun());
|
284 |
conservationParams.set("i18n_conservation_en_commun", i18nC.conservationEnCommun());
|
284 |
conservationParams.set("i18n_acces_controle", i18nC.accesControle());
|
285 |
conservationParams.set("i18n_acces_controle", i18nC.accesControle());
|
285 |
|
286 |
|
286 |
conservationParams.set("i18n_titre_operation", i18nC.titreOperation());
|
287 |
conservationParams.set("i18n_titre_operation", i18nC.titreOperation());
|
287 |
conservationParams.set("i18n_restauration", i18nC.restauration());
|
288 |
conservationParams.set("i18n_restauration", i18nC.restauration());
|
288 |
conservationParams.set("i18n_materiel_conservation", i18nC.materielConservation());
|
289 |
conservationParams.set("i18n_materiel_conservation", i18nC.materielConservation());
|
289 |
conservationParams.set("i18n_traitement", i18nC.traitement());
|
290 |
conservationParams.set("i18n_traitement", i18nC.traitement());
|
290 |
|
291 |
|
291 |
conservationParams.set("i18n_titre_acquisition", i18nC.titreAcquisition());
|
292 |
conservationParams.set("i18n_titre_acquisition", i18nC.titreAcquisition());
|
292 |
conservationParams.set("i18n_acquisition_collection", i18nC.acquisitionCollection());
|
293 |
conservationParams.set("i18n_acquisition_collection", i18nC.acquisitionCollection());
|
293 |
conservationParams.set("i18n_acquisition_echantillon", i18nC.acquisitionEchantillon());
|
294 |
conservationParams.set("i18n_acquisition_echantillon", i18nC.acquisitionEchantillon());
|
294 |
|
295 |
|
295 |
conservationParams.set("formation", formaterOuiNon(conservation.getFormation()));
|
296 |
conservationParams.set("formation", formaterOuiNon(conservation.getFormation()));
|
296 |
conservationParams.set("formation_info", formaterSautDeLigne(conservation.getFormationInfo()));
|
297 |
conservationParams.set("formation_info", formaterSautDeLigne(conservation.getFormationInfo()));
|
297 |
conservationParams.set("formation_interet", formaterOuiNon(conservation.getFormationInteret()));
|
298 |
conservationParams.set("formation_interet", formaterOuiNon(conservation.getFormationInteret()));
|
298 |
conservationParams.set("meuble_specifique", conservation.getStockageMeuble());
|
299 |
conservationParams.set("meuble_specifique", conservation.getStockageMeuble());
|
299 |
|
300 |
|
300 |
String chaineAAnalyser = conservation.getStockageLocal();
|
301 |
String chaineAAnalyser = conservation.getStockageLocal();
|
301 |
String chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
302 |
String chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
302 |
conservationParams.set("local_specifique", chaineAAfficher);
|
303 |
conservationParams.set("local_specifique", chaineAAfficher);
|
303 |
|
304 |
|
304 |
chaineAAnalyser = conservation.getStockageMeuble();
|
305 |
chaineAAnalyser = conservation.getStockageMeuble();
|
305 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
306 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
306 |
conservationParams.set("meuble_specifique", chaineAAfficher);
|
307 |
conservationParams.set("meuble_specifique", chaineAAfficher);
|
307 |
|
308 |
|
308 |
chaineAAnalyser = conservation.getStockageParametre();
|
309 |
chaineAAnalyser = conservation.getStockageParametre();
|
309 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
310 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
310 |
conservationParams.set("local_parametre", chaineAAfficher);
|
311 |
conservationParams.set("local_parametre", chaineAAfficher);
|
311 |
|
312 |
|
312 |
conservationParams.set("conservation_en_commun", formaterOuiNon(conservation.getCollectionCommune()));
|
313 |
conservationParams.set("conservation_en_commun", formaterOuiNon(conservation.getCollectionCommune()));
|
313 |
chaineAAnalyser = conservation.getCollectionAutre();
|
314 |
chaineAAnalyser = conservation.getCollectionAutre();
|
314 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
315 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
315 |
conservationParams.set("collection_autre", formaterParenthese(chaineAAfficher));
|
316 |
conservationParams.set("collection_autre", formaterParenthese(chaineAAfficher));
|
316 |
|
317 |
|
317 |
conservationParams.set("acces_controle", formaterOuiNon(conservation.getAccesControle()));
|
318 |
conservationParams.set("acces_controle", formaterOuiNon(conservation.getAccesControle()));
|
318 |
|
319 |
|
319 |
conservationParams.set("restauration", formaterOuiNon(conservation.getRestauration()));
|
320 |
conservationParams.set("restauration", formaterOuiNon(conservation.getRestauration()));
|
320 |
chaineAAnalyser = conservation.getRestaurationOperation();
|
321 |
chaineAAnalyser = conservation.getRestaurationOperation();
|
321 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
322 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
322 |
conservationParams.set("restauration_operation", formaterParenthese(chaineAAfficher));
|
323 |
conservationParams.set("restauration_operation", formaterParenthese(chaineAAfficher));
|
323 |
|
324 |
|
324 |
chaineAAnalyser = conservation.getMaterielConservation();
|
325 |
chaineAAnalyser = conservation.getMaterielConservation();
|
325 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
326 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
326 |
conservationParams.set("materiel_conservation", chaineAAfficher);
|
327 |
conservationParams.set("materiel_conservation", chaineAAfficher);
|
327 |
chaineAAnalyser = conservation.getMaterielAutre();
|
328 |
chaineAAnalyser = conservation.getMaterielAutre();
|
328 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
329 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
329 |
conservationParams.set("materiel_autre", formaterParenthese(chaineAAfficher));
|
330 |
conservationParams.set("materiel_autre", formaterParenthese(chaineAAfficher));
|
330 |
|
331 |
|
331 |
conservationParams.set("traitement", formaterOuiNon(conservation.getTraitement()));
|
332 |
conservationParams.set("traitement", formaterOuiNon(conservation.getTraitement()));
|
332 |
chaineAAnalyser = conservation.getTraitements();
|
333 |
chaineAAnalyser = conservation.getTraitements();
|
333 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
334 |
chaineAAfficher = construireTxtListeOntologie(chaineAAnalyser);
|
334 |
conservationParams.set("traitements", formaterParenthese(chaineAAfficher));
|
335 |
conservationParams.set("traitements", formaterParenthese(chaineAAfficher));
|
335 |
|
336 |
|
336 |
conservationParams.set("acquisition_collection", formaterOuiNon(conservation.getAcquisitionCollection()));
|
337 |
conservationParams.set("acquisition_collection", formaterOuiNon(conservation.getAcquisitionCollection()));
|
337 |
conservationParams.set("acquisition_echantillon", formaterOuiNon(conservation.getAcquisitionEchantillon()));
|
338 |
conservationParams.set("acquisition_echantillon", formaterOuiNon(conservation.getAcquisitionEchantillon()));
|
338 |
conservationParams.set("acquisition_traitement_info", construireTraitement());
|
339 |
conservationParams.set("acquisition_traitement_info", construireTraitement());
|
339 |
|
340 |
|
340 |
afficherOnglet(conservationTpl, conservationParams, conservationOnglet);
|
341 |
afficherOnglet(conservationTpl, conservationParams, conservationOnglet);
|
341 |
}
|
342 |
}
|
342 |
|
343 |
|
343 |
private String construireTraitement() {
|
344 |
private String construireTraitement() {
|
344 |
String cHtml = "";
|
345 |
String cHtml = "";
|
345 |
String echantillon = conservation.getAcquisitionEchantillon();
|
346 |
String echantillon = conservation.getAcquisitionEchantillon();
|
346 |
|
347 |
|
347 |
if (echantillon.equals("1")) {
|
348 |
if (echantillon.equals("1")) {
|
348 |
Params traitementConservationParams = new Params();
|
349 |
Params traitementConservationParams = new Params();
|
349 |
traitementConservationParams.set("i18n_acquisition_traitement", i18nC.acquisitionTraitement());
|
350 |
traitementConservationParams.set("i18n_acquisition_traitement", i18nC.acquisitionTraitement());
|
350 |
|
351 |
|
351 |
traitementConservationParams.set("acquisition_traitement", formaterOuiNon(conservation.getAcquisitionTraitement()));
|
352 |
traitementConservationParams.set("acquisition_traitement", formaterOuiNon(conservation.getAcquisitionTraitement()));
|
352 |
|
353 |
|
353 |
traitementConservationParams.set("acquisition_traitement_type_info", construireTraitementType());
|
354 |
traitementConservationParams.set("acquisition_traitement_type_info", construireTraitementType());
|
354 |
|
355 |
|
355 |
cHtml = Format.substitute(traitementConservationTpl, traitementConservationParams);
|
356 |
cHtml = Format.substitute(traitementConservationTpl, traitementConservationParams);
|
356 |
}
|
357 |
}
|
357 |
|
358 |
|
358 |
return cHtml;
|
359 |
return cHtml;
|
359 |
}
|
360 |
}
|
360 |
|
361 |
|
361 |
private String construireTraitementType() {
|
362 |
private String construireTraitementType() {
|
362 |
String cHtml = "";
|
363 |
String cHtml = "";
|
363 |
String traitement = conservation.getAcquisitionTraitement();
|
364 |
String traitement = conservation.getAcquisitionTraitement();
|
364 |
|
365 |
|
365 |
if (traitement.equals("1")) {
|
366 |
if (traitement.equals("1")) {
|
366 |
Params typeTraitementParams = new Params();
|
367 |
Params typeTraitementParams = new Params();
|
367 |
typeTraitementParams.set("i18n_acquisition_traitement_insecte", i18nC.acquisitionTraitementInsecte());
|
368 |
typeTraitementParams.set("i18n_acquisition_traitement_insecte", i18nC.acquisitionTraitementInsecte());
|
368 |
typeTraitementParams.set("i18n_acquisition_traitement_poison", i18nC.acquisitionTraitementPoison());
|
369 |
typeTraitementParams.set("i18n_acquisition_traitement_poison", i18nC.acquisitionTraitementPoison());
|
369 |
|
370 |
|
370 |
String acquisitionTraitementInsecte = construireTxtListeOntologie(conservation.getAcquisitionTraitementInsecte());
|
371 |
String acquisitionTraitementInsecte = construireTxtListeOntologie(conservation.getAcquisitionTraitementInsecte());
|
371 |
typeTraitementParams.set("acquisition_traitement_insecte", acquisitionTraitementInsecte);
|
372 |
typeTraitementParams.set("acquisition_traitement_insecte", acquisitionTraitementInsecte);
|
372 |
String acquisitionTraitementPoison = construireTxtListeOntologie(conservation.getAcquisitionTraitementPoison());
|
373 |
String acquisitionTraitementPoison = construireTxtListeOntologie(conservation.getAcquisitionTraitementPoison());
|
373 |
typeTraitementParams.set("acquisition_traitement_poison", acquisitionTraitementPoison);
|
374 |
typeTraitementParams.set("acquisition_traitement_poison", acquisitionTraitementPoison);
|
374 |
|
375 |
|
375 |
cHtml = Format.substitute(typeTraitementConservationTpl, typeTraitementParams);
|
376 |
cHtml = Format.substitute(typeTraitementConservationTpl, typeTraitementParams);
|
376 |
}
|
377 |
}
|
377 |
|
378 |
|
378 |
return cHtml;
|
379 |
return cHtml;
|
379 |
}
|
380 |
}
|
380 |
|
381 |
|
381 |
private void afficherValorisation() {
|
382 |
private void afficherValorisation() {
|
382 |
Params valorisationParams = new Params();
|
383 |
Params valorisationParams = new Params();
|
383 |
valorisationParams.set("i18n_titre_action_valorisation", i18nC.titreActionValorisation());
|
384 |
valorisationParams.set("i18n_titre_action_valorisation", i18nC.titreActionValorisation());
|
384 |
valorisationParams.set("i18n_action", i18nC.action());
|
385 |
valorisationParams.set("i18n_action", i18nC.action());
|
385 |
valorisationParams.set("i18n_action_publication", i18nC.actionPublication());
|
386 |
valorisationParams.set("i18n_action_publication", i18nC.actionPublication());
|
386 |
valorisationParams.set("i18n_collection_autre", i18nC.collectionAutre());
|
387 |
valorisationParams.set("i18n_collection_autre", i18nC.collectionAutre());
|
387 |
valorisationParams.set("i18n_action_future", i18nC.actionFuture());
|
388 |
valorisationParams.set("i18n_action_future", i18nC.actionFuture());
|
388 |
|
389 |
|
389 |
valorisationParams.set("action", formaterOuiNon(valorisation.getAction()));
|
390 |
valorisationParams.set("action", formaterOuiNon(valorisation.getAction()));
|
390 |
String actionInfo = construireTxtListeOntologie(valorisation.getActionInfo());
|
391 |
String actionInfo = construireTxtListeOntologie(valorisation.getActionInfo());
|
391 |
valorisationParams.set("action_info", formaterParenthese(actionInfo));
|
392 |
valorisationParams.set("action_info", formaterParenthese(actionInfo));
|
392 |
valorisationParams.set("action_publication", valorisation.getPublication());
|
393 |
valorisationParams.set("action_publication", valorisation.getPublication());
|
393 |
String collectionAutre = construireTxtListeOntologie(valorisation.getCollectionAutre());
|
394 |
String collectionAutre = construireTxtListeOntologie(valorisation.getCollectionAutre());
|
394 |
valorisationParams.set("collection_autre", collectionAutre);
|
395 |
valorisationParams.set("collection_autre", collectionAutre);
|
395 |
valorisationParams.set("action_future", formaterOuiNon(valorisation.getActionFuture()));
|
396 |
valorisationParams.set("action_future", formaterOuiNon(valorisation.getActionFuture()));
|
396 |
valorisationParams.set("action_future_info", formaterParenthese(valorisation.getActionFutureInfo()));
|
397 |
valorisationParams.set("action_future_info", formaterParenthese(valorisation.getActionFutureInfo()));
|
397 |
|
398 |
|
398 |
valorisationParams.set("i18n_titre_recherche_scientifique", i18nC.titreRechercherScientifique());
|
399 |
valorisationParams.set("i18n_titre_recherche_scientifique", i18nC.titreRechercherScientifique());
|
399 |
valorisationParams.set("i18n_recherche", i18nC.recherche());
|
400 |
valorisationParams.set("i18n_recherche", i18nC.recherche());
|
400 |
|
401 |
|
401 |
valorisationParams.set("recherche", formaterOuiNon(valorisation.getRecherche()));
|
402 |
valorisationParams.set("recherche", formaterOuiNon(valorisation.getRecherche()));
|
402 |
valorisationParams.set("recherche_info", construireRecherche());
|
403 |
valorisationParams.set("recherche_info", construireRecherche());
|
403 |
|
404 |
|
404 |
valorisationParams.set("i18n_titre_acces_usage", i18nC.titreAccesUsage());
|
405 |
valorisationParams.set("i18n_titre_acces_usage", i18nC.titreAccesUsage());
|
405 |
valorisationParams.set("i18n_acces", i18nC.acces());
|
406 |
valorisationParams.set("i18n_acces", i18nC.acces());
|
406 |
valorisationParams.set("i18n_visite", i18nC.visite());
|
407 |
valorisationParams.set("i18n_visite", i18nC.visite());
|
407 |
|
408 |
|
408 |
valorisationParams.set("acces", formaterOuiNon(valorisation.getAccesSansMotif()));
|
409 |
valorisationParams.set("acces", formaterOuiNon(valorisation.getAccesSansMotif()));
|
409 |
valorisationParams.set("acces_info", formaterParenthese(valorisation.getAccesSansMotifInfo()));
|
410 |
valorisationParams.set("acces_info", formaterParenthese(valorisation.getAccesSansMotifInfo()));
|
410 |
valorisationParams.set("visite", formaterOuiNon(valorisation.getVisiteAvecMotif()));
|
411 |
valorisationParams.set("visite", formaterOuiNon(valorisation.getVisiteAvecMotif()));
|
411 |
valorisationParams.set("visite_info", formaterParenthese(valorisation.getVisiteAvecMotifInfo()));
|
412 |
valorisationParams.set("visite_info", formaterParenthese(valorisation.getVisiteAvecMotifInfo()));
|
412 |
|
413 |
|
413 |
afficherOnglet(valorisationTpl, valorisationParams, valorisationOnglet);
|
414 |
afficherOnglet(valorisationTpl, valorisationParams, valorisationOnglet);
|
414 |
}
|
415 |
}
|
415 |
|
416 |
|
416 |
private String construireRecherche() {
|
417 |
private String construireRecherche() {
|
417 |
String cHtml = "";
|
418 |
String cHtml = "";
|
418 |
String recherche = valorisation.getRecherche();
|
419 |
String recherche = valorisation.getRecherche();
|
419 |
|
420 |
|
420 |
if (recherche.equals("1")) {
|
421 |
if (recherche.equals("1")) {
|
421 |
Params rechercheParams = new Params();
|
422 |
Params rechercheParams = new Params();
|
422 |
rechercheParams.set("i18n_recherche_provenance", i18nC.rechercheProvenance());
|
423 |
rechercheParams.set("i18n_recherche_provenance", i18nC.rechercheProvenance());
|
423 |
rechercheParams.set("i18n_recherche_type", i18nC.rechercheType());
|
424 |
rechercheParams.set("i18n_recherche_type", i18nC.rechercheType());
|
424 |
|
425 |
|
425 |
String rechercheProvenance = construireTxtListeOntologie(valorisation.getRechercheProvenance());
|
426 |
String rechercheProvenance = construireTxtListeOntologie(valorisation.getRechercheProvenance());
|
426 |
rechercheParams.set("recherche_provenance", rechercheProvenance);
|
427 |
rechercheParams.set("recherche_provenance", rechercheProvenance);
|
427 |
String rechercheType = construireTxtListeOntologie(valorisation.getRechercheType());
|
428 |
String rechercheType = construireTxtListeOntologie(valorisation.getRechercheType());
|
428 |
rechercheParams.set("recherche_type", rechercheType);
|
429 |
rechercheParams.set("recherche_type", rechercheType);
|
429 |
|
430 |
|
430 |
cHtml = Format.substitute(rechercheValorisationTpl, rechercheParams);
|
431 |
cHtml = Format.substitute(rechercheValorisationTpl, rechercheParams);
|
431 |
}
|
432 |
}
|
432 |
|
433 |
|
433 |
return cHtml;
|
434 |
return cHtml;
|
434 |
}
|
435 |
}
|
435 |
|
436 |
|
436 |
private void initialiserTousLesTpl() {
|
437 |
private void initialiserTousLesTpl() {
|
437 |
initialiserEnteteHtmlTpl();
|
438 |
initialiserEnteteHtmlTpl();
|
438 |
initialiserIdentificationTpl();
|
439 |
initialiserIdentificationTpl();
|
439 |
initialiserPersonnelTpl();
|
440 |
initialiserPersonnelTpl();
|
440 |
initialiserTableauPersonnelTpl();
|
441 |
initialiserTableauPersonnelTpl();
|
441 |
initialiserLignePersonnelTpl();
|
442 |
initialiserLignePersonnelTpl();
|
442 |
initialiserConservationTpl();
|
443 |
initialiserConservationTpl();
|
443 |
initialiserTraitementConservationTpl();
|
444 |
initialiserTraitementConservationTpl();
|
444 |
initialiserTypeTraitementConservationTpl();
|
445 |
initialiserTypeTraitementConservationTpl();
|
445 |
initialiserValorisationTpl();
|
446 |
initialiserValorisationTpl();
|
446 |
initialiserRechercheValorisationTpl();
|
447 |
initialiserRechercheValorisationTpl();
|
447 |
}
|
448 |
}
|
448 |
|
449 |
|
449 |
private void initialiserEnteteHtmlTpl() {
|
450 |
private void initialiserEnteteHtmlTpl() {
|
450 |
enteteTpl =
|
451 |
enteteTpl =
|
451 |
"<div id='{css_id}'>"+
|
452 |
"<div id='{css_id}'>"+
|
452 |
" <h1>{nom}</h1>"+
|
453 |
" <h1>{nom}</h1>"+
|
453 |
" <h2>{ville}<span class='{css_meta}'>{projet} - {id} - {guid}</span></h2>" +
|
454 |
" <h2>{ville}<span class='{css_meta}'>{projet} - {id} - {guid}</span></h2>" +
|
454 |
" " +
|
455 |
" " +
|
455 |
"</div>";
|
456 |
"</div>";
|
456 |
}
|
457 |
}
|
457 |
|
458 |
|
458 |
private void initialiserIdentificationTpl() {
|
459 |
private void initialiserIdentificationTpl() {
|
459 |
identificationTpl =
|
460 |
identificationTpl =
|
460 |
"<div class='{css_corps}'>"+
|
461 |
"<div class='{css_corps}'>"+
|
461 |
" <div class='{css_fieldset}'>"+
|
462 |
" <div class='{css_fieldset}'>"+
|
462 |
" <h2>{i18n_titre_administratif}</h2>"+
|
463 |
" <h2>{i18n_titre_administratif}</h2>"+
|
463 |
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
|
464 |
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
|
464 |
" <span class='{css_label}'>{i18n_acces} :</span> {acces}<br />"+
|
465 |
" <span class='{css_label}'>{i18n_acces} :</span> {acces}<br />"+
|
465 |
" <span class='{css_label}'>{i18n_statut} :</span> {statut}<br />"+
|
466 |
" <span class='{css_label}'>{i18n_statut} :</span> {statut}<br />"+
|
466 |
" <span class='{css_label}'>{i18n_date_fondation} :</span> {date_fondation}<br />"+
|
467 |
" <span class='{css_label}'>{i18n_date_fondation} :</span> {date_fondation}<br />"+
|
467 |
" <span class='{css_label}'>{i18n_nbre_personnel} :</span> {nbre_personnel}<br />"+
|
468 |
" <span class='{css_label}'>{i18n_nbre_personnel} :</span> {nbre_personnel}<br />"+
|
468 |
" </div>"+
|
469 |
" </div>"+
|
469 |
" <div class='{css_fieldset}'>"+
|
470 |
" <div class='{css_fieldset}'>"+
|
470 |
" <h2>{i18n_titre_description}</h2>"+
|
471 |
" <h2>{i18n_titre_description}</h2>"+
|
471 |
" {description}"+
|
472 |
" {description}"+
|
472 |
" </div>"+
|
473 |
" </div>"+
|
473 |
" <hr class='{css_clear}'/>"+
|
474 |
" <hr class='{css_clear}'/>"+
|
474 |
" <div class='{css_fieldset}'>"+
|
475 |
" <div class='{css_fieldset}'>"+
|
475 |
" <h2>{i18n_titre_adresse}</h2>"+
|
476 |
" <h2>{i18n_titre_adresse}</h2>"+
|
476 |
" <span class='{css_label}'>{i18n_adresse} :</span> {adresse}<br />" +
|
477 |
" <span class='{css_label}'>{i18n_adresse} :</span> {adresse}<br />" +
|
477 |
" <span class='{css_label}'>{i18n_cp} :</span> {cp}<br />" +
|
478 |
" <span class='{css_label}'>{i18n_cp} :</span> {cp}<br />" +
|
478 |
" <span class='{css_label}'>{i18n_ville} :</span> {ville}<br />" +
|
479 |
" <span class='{css_label}'>{i18n_ville} :</span> {ville}<br />" +
|
479 |
" <span class='{css_label}'>{i18n_region} :</span> {region}<br />" +
|
480 |
" <span class='{css_label}'>{i18n_region} :</span> {region}<br />" +
|
480 |
" <span class='{css_label}'>{i18n_pays} :</span> {pays}<br />" +
|
481 |
" <span class='{css_label}'>{i18n_pays} :</span> {pays}<br />" +
|
481 |
" </div>"+
|
482 |
" </div>"+
|
482 |
" <div class='{css_fieldset}'>"+
|
483 |
" <div class='{css_fieldset}'>"+
|
483 |
" <h2>{i18n_titre_communication}</h2>"+
|
484 |
" <h2>{i18n_titre_communication}</h2>"+
|
484 |
" <span class='{css_label}'>{i18n_tel} :</span> {tel}<br />"+
|
485 |
" <span class='{css_label}'>{i18n_tel} :</span> {tel}<br />"+
|
485 |
" <span class='{css_label}'>{i18n_fax} :</span> {fax}<br />"+
|
486 |
" <span class='{css_label}'>{i18n_fax} :</span> {fax}<br />"+
|
486 |
" <span class='{css_label}'>{i18n_courriel} :</span> {courriel}<br />"+
|
487 |
" <span class='{css_label}'>{i18n_courriel} :</span> {courriel}<br />"+
|
487 |
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
|
488 |
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
|
488 |
" </div>"+
|
489 |
" </div>"+
|
489 |
"</div>";
|
490 |
"</div>";
|
490 |
}
|
491 |
}
|
491 |
|
492 |
|
492 |
private void initialiserPersonnelTpl() {
|
493 |
private void initialiserPersonnelTpl() {
|
493 |
personnelTpl =
|
494 |
personnelTpl =
|
494 |
"<div class='{css_corps}'>"+
|
495 |
"<div class='{css_corps}'>"+
|
495 |
" <h2>{i18n_titre_personnel}</h2>"+
|
496 |
" <h2>{i18n_titre_personnel}</h2>"+
|
496 |
" <p><span class='{css_label}'>{i18n_nbre_personnel_collection} :</span> {nbre_personnel_collection}</p>"+
|
497 |
" <p><span class='{css_label}'>{i18n_nbre_personnel_collection} :</span> {nbre_personnel_collection}</p>"+
|
497 |
" {tableau_personnel}"+
|
498 |
" {tableau_personnel}"+
|
498 |
"</div>";
|
499 |
"</div>";
|
499 |
}
|
500 |
}
|
500 |
|
501 |
|
501 |
private void initialiserTableauPersonnelTpl() {
|
502 |
private void initialiserTableauPersonnelTpl() {
|
502 |
tableauPersonnelTpl =
|
503 |
tableauPersonnelTpl =
|
503 |
"<h3>{i18n_titre_membre}</h3>"+
|
504 |
"<h3>{i18n_titre_membre}</h3>"+
|
504 |
"<table>"+
|
505 |
"<table>"+
|
505 |
" <thead>"+
|
506 |
" <thead>"+
|
506 |
" <tr>" +
|
507 |
" <tr>" +
|
507 |
" <th>{i18n_fonction}</th>" +
|
508 |
" <th>{i18n_fonction}</th>" +
|
508 |
" <th>{i18n_prenom}</th>" +
|
509 |
" <th>{i18n_prenom}</th>" +
|
509 |
" <th>{i18n_nom}</th>" +
|
510 |
" <th>{i18n_nom}</th>" +
|
510 |
" <th>{i18n_tel}</th>" +
|
511 |
" <th>{i18n_tel}</th>" +
|
511 |
" <th>{i18n_fax}</th>" +
|
512 |
" <th>{i18n_fax}</th>" +
|
512 |
" <th>{i18n_courriel}</th>" +
|
513 |
" <th>{i18n_courriel}</th>" +
|
513 |
" <th>{i18n_statut}</th>" +
|
514 |
" <th>{i18n_statut}</th>" +
|
514 |
" <th>{i18n_tps_w}</th>" +
|
515 |
" <th>{i18n_tps_w}</th>" +
|
515 |
" <th>{i18n_specialite}</th>" +
|
516 |
" <th>{i18n_specialite}</th>" +
|
516 |
" <th>{i18n_contact}</th>" +
|
517 |
" <th>{i18n_contact}</th>" +
|
517 |
" </tr>"+
|
518 |
" </tr>"+
|
518 |
" </thead>"+
|
519 |
" </thead>"+
|
519 |
" <tbody>"+
|
520 |
" <tbody>"+
|
520 |
" {lignes}"+
|
521 |
" {lignes}"+
|
521 |
" </tbody>"+
|
522 |
" </tbody>"+
|
522 |
"</table>";
|
523 |
"</table>";
|
523 |
}
|
524 |
}
|
524 |
|
525 |
|
525 |
private void initialiserLignePersonnelTpl() {
|
526 |
private void initialiserLignePersonnelTpl() {
|
526 |
lignePersonnelTpl =
|
527 |
lignePersonnelTpl =
|
527 |
"<tr>"+
|
528 |
"<tr>"+
|
528 |
" <td>{fonction}</td>"+
|
529 |
" <td>{fonction}</td>"+
|
529 |
" <td>{prenom}</td>"+
|
530 |
" <td>{prenom}</td>"+
|
530 |
" <td>{nom}</td>"+
|
531 |
" <td>{nom}</td>"+
|
531 |
" <td>{tel}</td>" +
|
532 |
" <td>{tel}</td>" +
|
532 |
" <td>{fax}</td>" +
|
533 |
" <td>{fax}</td>" +
|
533 |
" <td>{courriel}</td>" +
|
534 |
" <td>{courriel}</td>" +
|
534 |
" <td>{statut}</td>" +
|
535 |
" <td>{statut}</td>" +
|
535 |
" <td>{tps_w}</td>" +
|
536 |
" <td>{tps_w}</td>" +
|
536 |
" <td>{specialite}</td>" +
|
537 |
" <td>{specialite}</td>" +
|
537 |
" <td>{contact}</td>" +
|
538 |
" <td>{contact}</td>" +
|
538 |
"</tr>";
|
539 |
"</tr>";
|
539 |
}
|
540 |
}
|
540 |
|
541 |
|
541 |
private void initialiserConservationTpl() {
|
542 |
private void initialiserConservationTpl() {
|
542 |
conservationTpl =
|
543 |
conservationTpl =
|
543 |
"<div class='{css_corps}'>"+
|
544 |
"<div class='{css_corps}'>"+
|
544 |
" <div class='{css_fieldset}'>"+
|
545 |
" <div class='{css_fieldset}'>"+
|
545 |
" <h2>{i18n_titre_conservation_personnel}</h2>"+
|
546 |
" <h2>{i18n_titre_conservation_personnel}</h2>"+
|
546 |
" <span class='{css_label}'>{i18n_formation} :</span> {formation}<br />"+
|
547 |
" <span class='{css_label}'>{i18n_formation} :</span> {formation}<br />"+
|
547 |
" {formation_info}<br />"+
|
548 |
" {formation_info}<br />"+
|
548 |
" <span class='{css_label}'>{i18n_formation_interet} :</span> {formation_interet}<br />"+
|
549 |
" <span class='{css_label}'>{i18n_formation_interet} :</span> {formation_interet}<br />"+
|
549 |
" </div>"+
|
550 |
" </div>"+
|
550 |
" <div class='{css_fieldset}'>"+
|
551 |
" <div class='{css_fieldset}'>"+
|
551 |
" <h2>{i18n_titre_local}</h2>"+
|
552 |
" <h2>{i18n_titre_local}</h2>"+
|
552 |
" <span class='{css_label}'>{i18n_local_specifique} :</span> {local_specifique}<br />"+
|
553 |
" <span class='{css_label}'>{i18n_local_specifique} :</span> {local_specifique}<br />"+
|
553 |
" <span class='{css_label}'>{i18n_meuble_specifique} :</span> {meuble_specifique}<br />"+
|
554 |
" <span class='{css_label}'>{i18n_meuble_specifique} :</span> {meuble_specifique}<br />"+
|
554 |
" <span class='{css_label}'>{i18n_local_parametre} :</span> {local_parametre}<br />"+
|
555 |
" <span class='{css_label}'>{i18n_local_parametre} :</span> {local_parametre}<br />"+
|
555 |
" <span class='{css_label}'>{i18n_conservation_en_commun} :</span> {conservation_en_commun} {collection_autre}<br />"+
|
556 |
" <span class='{css_label}'>{i18n_conservation_en_commun} :</span> {conservation_en_commun} {collection_autre}<br />"+
|
556 |
" <span class='{css_label}'>{i18n_acces_controle} :</span> {acces_controle}<br />"+
|
557 |
" <span class='{css_label}'>{i18n_acces_controle} :</span> {acces_controle}<br />"+
|
557 |
" </div>"+
|
558 |
" </div>"+
|
558 |
" <hr class='{css_clear}'/>"+
|
559 |
" <hr class='{css_clear}'/>"+
|
559 |
" <div class='{css_fieldset}'>"+
|
560 |
" <div class='{css_fieldset}'>"+
|
560 |
" <h2>{i18n_titre_operation}</h2>"+
|
561 |
" <h2>{i18n_titre_operation}</h2>"+
|
561 |
" <span class='{css_label}'>{i18n_restauration} :</span> {restauration} {restauration_operation}<br />"+
|
562 |
" <span class='{css_label}'>{i18n_restauration} :</span> {restauration} {restauration_operation}<br />"+
|
562 |
" <span class='{css_label}'>{i18n_materiel_conservation} :</span> {materiel_conservation} {materiel_autre}<br />"+
|
563 |
" <span class='{css_label}'>{i18n_materiel_conservation} :</span> {materiel_conservation} {materiel_autre}<br />"+
|
563 |
" <span class='{css_label}'>{i18n_traitement} :</span> {traitement} {traitements}<br />"+
|
564 |
" <span class='{css_label}'>{i18n_traitement} :</span> {traitement} {traitements}<br />"+
|
564 |
" </div>"+
|
565 |
" </div>"+
|
565 |
" <div class='{css_fieldset}'>"+
|
566 |
" <div class='{css_fieldset}'>"+
|
566 |
" <h2>{i18n_titre_acquisition}</h2>"+
|
567 |
" <h2>{i18n_titre_acquisition}</h2>"+
|
567 |
" <span class='{css_label}'>{i18n_acquisition_collection} :</span> {acquisition_collection}<br />"+
|
568 |
" <span class='{css_label}'>{i18n_acquisition_collection} :</span> {acquisition_collection}<br />"+
|
568 |
" <span class='{css_label}'>{i18n_acquisition_echantillon} :</span> {acquisition_echantillon}<br />"+
|
569 |
" <span class='{css_label}'>{i18n_acquisition_echantillon} :</span> {acquisition_echantillon}<br />"+
|
569 |
" {acquisition_traitement_info}" +
|
570 |
" {acquisition_traitement_info}" +
|
570 |
" </div>"+
|
571 |
" </div>"+
|
571 |
"</div>";
|
572 |
"</div>";
|
572 |
}
|
573 |
}
|
573 |
|
574 |
|
574 |
private void initialiserTraitementConservationTpl() {
|
575 |
private void initialiserTraitementConservationTpl() {
|
575 |
traitementConservationTpl =
|
576 |
traitementConservationTpl =
|
576 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement} :</span> {acquisition_traitement}<br />"+
|
577 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement} :</span> {acquisition_traitement}<br />"+
|
577 |
" <div class='{css_indentation}'>"+
|
578 |
" <div class='{css_indentation}'>"+
|
578 |
" {acquisition_traitement_type_info}"+
|
579 |
" {acquisition_traitement_type_info}"+
|
579 |
" </div>";
|
580 |
" </div>";
|
580 |
}
|
581 |
}
|
581 |
|
582 |
|
582 |
private void initialiserTypeTraitementConservationTpl() {
|
583 |
private void initialiserTypeTraitementConservationTpl() {
|
583 |
typeTraitementConservationTpl =
|
584 |
typeTraitementConservationTpl =
|
584 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement_insecte} :</span> {acquisition_traitement_insecte}<br />"+
|
585 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement_insecte} :</span> {acquisition_traitement_insecte}<br />"+
|
585 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement_poison} :</span> {acquisition_traitement_poison}<br />";
|
586 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement_poison} :</span> {acquisition_traitement_poison}<br />";
|
586 |
}
|
587 |
}
|
587 |
|
588 |
|
588 |
private void initialiserValorisationTpl() {
|
589 |
private void initialiserValorisationTpl() {
|
589 |
valorisationTpl =
|
590 |
valorisationTpl =
|
590 |
"<div class='{css_corps}'>"+
|
591 |
"<div class='{css_corps}'>"+
|
591 |
" <div class='{css_fieldset}'>"+
|
592 |
" <div class='{css_fieldset}'>"+
|
592 |
" <h2>{i18n_titre_action_valorisation}</h2>"+
|
593 |
" <h2>{i18n_titre_action_valorisation}</h2>"+
|
593 |
" <span class='{css_label}'>{i18n_action} :</span> {action} {action_info}<br />"+
|
594 |
" <span class='{css_label}'>{i18n_action} :</span> {action} {action_info}<br />"+
|
594 |
" <span class='{css_label}'>{i18n_action_publication} :</span> {action_publication}<br />"+
|
595 |
" <span class='{css_label}'>{i18n_action_publication} :</span> {action_publication}<br />"+
|
595 |
" <span class='{css_label}'>{i18n_collection_autre} :</span> {collection_autre}<br />"+
|
596 |
" <span class='{css_label}'>{i18n_collection_autre} :</span> {collection_autre}<br />"+
|
596 |
" <span class='{css_label}'>{i18n_action_future} :</span> {action_future} {action_future_info}<br />"+
|
597 |
" <span class='{css_label}'>{i18n_action_future} :</span> {action_future} {action_future_info}<br />"+
|
597 |
" </div>"+
|
598 |
" </div>"+
|
598 |
" <div class='{css_fieldset}'>"+
|
599 |
" <div class='{css_fieldset}'>"+
|
599 |
" <h2>{i18n_titre_recherche_scientifique}</h2>"+
|
600 |
" <h2>{i18n_titre_recherche_scientifique}</h2>"+
|
600 |
" <span class='{css_label}'>{i18n_recherche} :</span> {recherche}<br />"+
|
601 |
" <span class='{css_label}'>{i18n_recherche} :</span> {recherche}<br />"+
|
601 |
" {recherche_info}"+
|
602 |
" {recherche_info}"+
|
602 |
" </div>"+
|
603 |
" </div>"+
|
603 |
" <hr class='{css_clear}'/>"+
|
604 |
" <hr class='{css_clear}'/>"+
|
604 |
" <div class='{css_fieldset}'>"+
|
605 |
" <div class='{css_fieldset}'>"+
|
605 |
" <h2>{i18n_titre_acces_usage}</h2>"+
|
606 |
" <h2>{i18n_titre_acces_usage}</h2>"+
|
606 |
" <span class='{css_label}'>{i18n_visite} :</span> {visite} {visite_info}<br />"+
|
607 |
" <span class='{css_label}'>{i18n_visite} :</span> {visite} {visite_info}<br />"+
|
607 |
" <span class='{css_label}'>{i18n_acces} :</span> {acces} {acces_info}<br />"+
|
608 |
" <span class='{css_label}'>{i18n_acces} :</span> {acces} {acces_info}<br />"+
|
608 |
" </div>"+
|
609 |
" </div>"+
|
609 |
"</div>";
|
610 |
"</div>";
|
610 |
}
|
611 |
}
|
611 |
|
612 |
|
612 |
private void initialiserRechercheValorisationTpl() {
|
613 |
private void initialiserRechercheValorisationTpl() {
|
613 |
rechercheValorisationTpl =
|
614 |
rechercheValorisationTpl =
|
614 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_provenance} :</span> {recherche_provenance}<br />"+
|
615 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_provenance} :</span> {recherche_provenance}<br />"+
|
615 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_type} :</span> {recherche_type}<br />";
|
616 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_type} :</span> {recherche_type}<br />";
|
616 |
}
|
617 |
}
|
617 |
|
618 |
|
618 |
public void rafraichir(Object nouvelleDonnees) {
|
619 |
public void rafraichir(Object nouvelleDonnees) {
|
619 |
if (nouvelleDonnees instanceof Structure) {
|
620 |
if (nouvelleDonnees instanceof Structure) {
|
620 |
structure = (Structure) nouvelleDonnees;
|
621 |
structure = (Structure) nouvelleDonnees;
|
621 |
afficherDetailInstitution();
|
622 |
afficherDetailInstitution();
|
622 |
} else if (nouvelleDonnees instanceof ProjetListe) {
|
623 |
} else if (nouvelleDonnees instanceof ProjetListe) {
|
623 |
projets = (ProjetListe) nouvelleDonnees;
|
624 |
projets = (ProjetListe) nouvelleDonnees;
|
624 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
625 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
625 |
ValeurListe ontologieReceptionnee = (ValeurListe) nouvelleDonnees;
|
626 |
ValeurListe ontologieReceptionnee = (ValeurListe) nouvelleDonnees;
|
626 |
ajouterListeValeursAOntologie(ontologieReceptionnee);
|
627 |
ajouterListeValeursAOntologie(ontologieReceptionnee);
|
627 |
} else if (nouvelleDonnees instanceof Information) {
|
628 |
} else if (nouvelleDonnees instanceof Information) {
|
628 |
Information info = (Information) nouvelleDonnees;
|
629 |
Information info = (Information) nouvelleDonnees;
|
629 |
if (info.getType().equals("liste_structure_a_personne")) {
|
630 |
if (info.getType().equals("liste_structure_a_personne")) {
|
630 |
allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
|
631 |
allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
|
631 |
afficherDetailInstitution();
|
632 |
afficherDetailInstitution();
|
632 |
}
|
633 |
}
|
633 |
} else {
|
634 |
} else {
|
634 |
GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
|
635 |
GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
|
635 |
}
|
636 |
}
|
636 |
}
|
637 |
}
|
637 |
|
638 |
|
638 |
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
|
639 |
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
|
639 |
structure.setPersonnel(personnel);
|
640 |
structure.setPersonnel(personnel);
|
640 |
}
|
641 |
}
|
641 |
|
642 |
|
642 |
protected String construireTxtProjet(String idProjet) {
|
643 |
protected String construireTxtProjet(String idProjet) {
|
643 |
String chaineARetourner = idProjet;
|
644 |
String chaineARetourner = idProjet;
|
644 |
|
645 |
|
645 |
if (projets != null) {
|
646 |
if (projets != null) {
|
646 |
Projet projet = projets.get(idProjet);
|
647 |
Projet projet = projets.get(idProjet);
|
647 |
String nomDuProjet = projet.getNom();
|
648 |
String nomDuProjet = projet.getNom();
|
648 |
if (!nomDuProjet.equals("")) {
|
649 |
if (!nomDuProjet.equals("")) {
|
649 |
chaineARetourner = nomDuProjet;
|
650 |
chaineARetourner = nomDuProjet;
|
650 |
}
|
651 |
}
|
651 |
}
|
652 |
}
|
652 |
|
653 |
|
653 |
return chaineARetourner;
|
654 |
return chaineARetourner;
|
654 |
}
|
655 |
}
|
655 |
|
656 |
|
656 |
protected String construireTxtListeOntologie(String chaineAAnalyser) {
|
657 |
protected String construireTxtListeOntologie(String chaineAAnalyser) {
|
657 |
ArrayList<String> termes = new ArrayList<String>();
|
658 |
ArrayList<String> termes = new ArrayList<String>();
|
658 |
ArrayList<String> autres = new ArrayList<String>();
|
659 |
ArrayList<String> autres = new ArrayList<String>();
|
659 |
if ((chaineAAnalyser != null) && (!chaineAAnalyser.trim().equals(""))) {
|
660 |
if ((chaineAAnalyser != null) && (!chaineAAnalyser.trim().equals(""))) {
|
660 |
String[] valeurs = chaineAAnalyser.split(";;");
|
661 |
String[] valeurs = chaineAAnalyser.split(";;");
|
661 |
int nbreValeurs = valeurs.length;
|
662 |
int nbreValeurs = valeurs.length;
|
662 |
if (nbreValeurs > 0) {
|
663 |
if (nbreValeurs > 0) {
|
663 |
for (int i = 0; i < nbreValeurs; i++) {
|
664 |
for (int i = 0; i < nbreValeurs; i++) {
|
664 |
String id = valeurs[i];
|
665 |
String id = valeurs[i];
|
665 |
if (id.contains("AUTRE##")) {
|
666 |
if (id.contains("AUTRE##")) {
|
666 |
String txt = id.replaceFirst("^AUTRE##", "");
|
667 |
String txt = id.replaceFirst("^AUTRE##", "");
|
667 |
if (!txt.equals("")) {
|
668 |
if (!txt.equals("")) {
|
668 |
autres.add(txt);
|
669 |
autres.add(txt);
|
669 |
}
|
670 |
}
|
670 |
} else if (id.matches("^[0-9]+$")) {
|
671 |
} else if (id.matches("^[0-9]+$")) {
|
671 |
if (ontologie != null) {
|
672 |
if (ontologie != null) {
|
672 |
Valeur valeur = ontologie.get(id);
|
673 |
Valeur valeur = ontologie.get(id);
|
673 |
if (valeur != null) {
|
674 |
if (valeur != null) {
|
674 |
String termeOntologie = valeur.getNom();
|
675 |
String termeOntologie = valeur.getNom();
|
675 |
termes.add(termeOntologie);
|
676 |
termes.add(termeOntologie);
|
676 |
}
|
677 |
}
|
677 |
}
|
678 |
}
|
678 |
}
|
679 |
}
|
679 |
}
|
680 |
}
|
680 |
}
|
681 |
}
|
681 |
}
|
682 |
}
|
682 |
|
683 |
|
683 |
String chaineTermes = formaterTableauDeTxt(termes);
|
684 |
String chaineTermes = formaterTableauDeTxt(termes);
|
684 |
String chaineAutres = formaterTableauDeTxt(autres);
|
685 |
String chaineAutres = formaterTableauDeTxt(autres);
|
685 |
String chaineARetourner = chaineTermes+formaterAutre(chaineAutres);
|
686 |
String chaineARetourner = chaineTermes+formaterAutre(chaineAutres);
|
686 |
|
687 |
|
687 |
return chaineARetourner;
|
688 |
return chaineARetourner;
|
688 |
}
|
689 |
}
|
689 |
}
|
690 |
}
|