Line 26... |
Line 26... |
26 |
private Structure structure = null;
|
26 |
private Structure structure = null;
|
Line 27... |
Line 27... |
27 |
|
27 |
|
28 |
private String enteteTpl = null;
|
28 |
private String enteteTpl = null;
|
29 |
private String generalTpl = null;
|
29 |
private String generalTpl = null;
|
- |
|
30 |
private String auteurTpl = null;
|
30 |
private String auteurTpl = null;
|
31 |
private String publicationTpl = null;
|
31 |
private String descriptionTpl = null;
|
32 |
private String descriptionTpl = null;
|
32 |
private String contenuTpl = null;
|
33 |
private String contenuTpl = null;
|
33 |
private String documentTpl = null;
|
34 |
private String documentTpl = null;
|
Line 38... |
Line 39... |
38 |
private ContentPanel panneauPrincipal = null;
|
39 |
private ContentPanel panneauPrincipal = null;
|
39 |
private Html entete = null;
|
40 |
private Html entete = null;
|
40 |
private TabPanel onglets = null;
|
41 |
private TabPanel onglets = null;
|
41 |
private TabItem generalOnglet = null;
|
42 |
private TabItem generalOnglet = null;
|
42 |
private TabItem auteurOnglet = null;
|
43 |
private TabItem auteurOnglet = null;
|
- |
|
44 |
private TabItem publicationOnglet = null;
|
43 |
private TabItem descriptionOnglet = null;
|
45 |
private TabItem descriptionOnglet = null;
|
44 |
private TabItem contenuOnglet = null;
|
46 |
private TabItem contenuOnglet = null;
|
45 |
private TabItem documentOnglet = null;
|
47 |
private TabItem documentOnglet = null;
|
46 |
private TabItem inventaireOnglet = null;
|
48 |
private TabItem inventaireOnglet = null;
|
Line 72... |
Line 74... |
72 |
auteurOnglet = new TabItem(i18nC.collectionAuteur());
|
74 |
auteurOnglet = new TabItem(i18nC.collectionAuteur());
|
73 |
auteurOnglet.setLayout(new AnchorLayout());
|
75 |
auteurOnglet.setLayout(new AnchorLayout());
|
74 |
auteurOnglet.setScrollMode(Scroll.AUTO);
|
76 |
auteurOnglet.setScrollMode(Scroll.AUTO);
|
75 |
onglets.add(auteurOnglet);
|
77 |
onglets.add(auteurOnglet);
|
Line -... |
Line 78... |
- |
|
78 |
|
- |
|
79 |
publicationOnglet = new TabItem(i18nC.collectionPublication());
|
- |
|
80 |
publicationOnglet.setLayout(new AnchorLayout());
|
- |
|
81 |
publicationOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
82 |
onglets.add(publicationOnglet);
|
76 |
|
83 |
|
77 |
descriptionOnglet = new TabItem(i18nC.collectionDescription());
|
84 |
descriptionOnglet = new TabItem(i18nC.collectionDescription());
|
78 |
descriptionOnglet.setLayout(new AnchorLayout());
|
85 |
descriptionOnglet.setLayout(new AnchorLayout());
|
79 |
descriptionOnglet.setScrollMode(Scroll.AUTO);
|
86 |
descriptionOnglet.setScrollMode(Scroll.AUTO);
|
Line 100... |
Line 107... |
100 |
|
107 |
|
101 |
private void initialiserTousLesTpl() {
|
108 |
private void initialiserTousLesTpl() {
|
102 |
initialiserEnteteHtmlTpl();
|
109 |
initialiserEnteteHtmlTpl();
|
103 |
initialiserGeneralTpl();
|
110 |
initialiserGeneralTpl();
|
- |
|
111 |
initialiserAuteurTpl();
|
104 |
initialiserAuteurTpl();
|
112 |
initialiserPublicationTpl();
|
105 |
initialiserContenuTpl();
|
113 |
initialiserContenuTpl();
|
106 |
initialiserDescriptionTpl();
|
114 |
initialiserDescriptionTpl();
|
107 |
initialiserDocumentTpl();
|
115 |
initialiserDocumentTpl();
|
108 |
initialiserInventaireTpl();
|
116 |
initialiserInventaireTpl();
|
Line 125... |
Line 133... |
125 |
" <span class='{css_label}'>{i18n_nom_alternatif} :</span> {nom_alternatif}<br />"+
|
133 |
" <span class='{css_label}'>{i18n_nom_alternatif} :</span> {nom_alternatif}<br />"+
|
126 |
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
|
134 |
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
|
127 |
" <span class='{css_label}'>{i18n_code} :</span> {code}<br />"+
|
135 |
" <span class='{css_label}'>{i18n_code} :</span> {code}<br />"+
|
128 |
" <span class='{css_label}'>{i18n_cote} :</span> {cote}<br />"+
|
136 |
" <span class='{css_label}'>{i18n_cote} :</span> {cote}<br />"+
|
129 |
" <span class='{css_label}'>{i18n_mere} :</span> {mere}<br />"+
|
137 |
" <span class='{css_label}'>{i18n_mere} :</span> {mere}<br />"+
|
- |
|
138 |
" <span class='{css_label}'>{i18n_type_ncd} :</span> {type_ncd}<br />"+
|
- |
|
139 |
" <span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
|
- |
|
140 |
" <span class='{css_label}'>{i18n_type_depot} :</span> {type_depot}<br />"+
|
- |
|
141 |
" <span class='{css_label}'>{i18n_nbre_echantillon} :</span> {nbre_echantillon}<br />"+
|
130 |
" </div>"+
|
142 |
" </div>"+
|
131 |
" <div class='{css_fieldset}'>"+
|
143 |
" <div class='{css_fieldset}'>"+
|
132 |
" <h2>{i18n_general_collection_titre}</h2>"+
|
144 |
" <h2>{i18n_general_collection_titre}</h2>"+
|
133 |
" <span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
|
145 |
" <span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
|
134 |
" <span class='{css_label}'>{i18n_description_specialiste} :</span> {description_specialiste}<br />"+
|
146 |
" <span class='{css_label}'>{i18n_description_specialiste} :</span> {description_specialiste}<br />"+
|
135 |
" <span class='{css_label}'>{i18n_historique} :</span> {historique}<br />"+
|
147 |
" <span class='{css_label}'>{i18n_historique} :</span> {historique}<br />"+
|
136 |
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
|
148 |
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
|
137 |
" <span class='{css_label}'>{i18n_groupement_principe} :</span> {groupement_principe}<br />"+
|
149 |
" <span class='{css_label}'>{i18n_groupement_principe} :</span> {groupement_principe}<br />"+
|
138 |
" <span class='{css_label}'>{i18n_groupement_but} :</span> {groupement_but}<br />"+
|
150 |
" <span class='{css_label}'>{i18n_groupement_but} :</span> {groupement_but}<br />"+
|
139 |
" <span class='{css_label}'>{i18n_type_ncd} :</span> {type_ncd}<br />"+
|
- |
|
140 |
" <span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
|
- |
|
141 |
" </div>"+
|
151 |
" </div>"+
|
142 |
" <hr class='{css_clear}'/>"+
|
152 |
" <hr class='{css_clear}'/>"+
|
143 |
"</div>";
|
153 |
"</div>";
|
144 |
}
|
154 |
}
|
Line 151... |
Line 161... |
151 |
" </div>"+
|
161 |
" </div>"+
|
152 |
" <hr class='{css_clear}'/>"+
|
162 |
" <hr class='{css_clear}'/>"+
|
153 |
"</div>";
|
163 |
"</div>";
|
154 |
}
|
164 |
}
|
Line -... |
Line 165... |
- |
|
165 |
|
- |
|
166 |
private void initialiserPublicationTpl() {
|
- |
|
167 |
publicationTpl =
|
- |
|
168 |
"<div class='{css_corps}'>"+
|
- |
|
169 |
" <div class='{css_fieldset}'>"+
|
- |
|
170 |
" <h2>{i18n_titre_publication}</h2>"+
|
- |
|
171 |
" </div>"+
|
- |
|
172 |
" <hr class='{css_clear}'/>"+
|
- |
|
173 |
"</div>";
|
- |
|
174 |
}
|
155 |
|
175 |
|
156 |
private void initialiserDescriptionTpl() {
|
176 |
private void initialiserDescriptionTpl() {
|
157 |
descriptionTpl =
|
177 |
descriptionTpl =
|
158 |
"<div class='{css_corps}'>"+
|
178 |
"<div class='{css_corps}'>"+
|
159 |
" <div class='{css_fieldset}'>"+
|
179 |
" <div class='{css_fieldset}'>"+
|
Line 216... |
Line 236... |
216 |
private void afficherDetail() {
|
236 |
private void afficherDetail() {
|
217 |
if (collection != null) {
|
237 |
if (collection != null) {
|
218 |
afficherEntete();
|
238 |
afficherEntete();
|
219 |
afficherIdentification();
|
239 |
afficherIdentification();
|
220 |
afficherAuteur();
|
240 |
afficherAuteur();
|
- |
|
241 |
afficherPublication();
|
221 |
afficherDescription();
|
242 |
afficherDescription();
|
222 |
afficherContenu();
|
243 |
afficherContenu();
|
223 |
afficherDocument();
|
244 |
afficherDocument();
|
224 |
afficherInventaire();
|
245 |
afficherInventaire();
|
225 |
}
|
246 |
}
|
Line 242... |
Line 263... |
242 |
}
|
263 |
}
|
Line 243... |
Line 264... |
243 |
|
264 |
|
244 |
private void afficherIdentification() {
|
265 |
private void afficherIdentification() {
|
245 |
Params generalParams = new Params();
|
266 |
Params generalParams = new Params();
|
- |
|
267 |
generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
|
246 |
generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
|
268 |
generalParams.set("i18n_nom_alternatif", i18nC.nomAlternatif());
|
247 |
generalParams.set("i18n_acronyme", i18nC.acronyme());
|
269 |
generalParams.set("i18n_acronyme", i18nC.acronyme());
|
248 |
generalParams.set("i18n_code", i18nC.code());
|
270 |
generalParams.set("i18n_code", i18nC.code());
|
249 |
generalParams.set("i18n_cote", i18nC.cote());
|
- |
|
250 |
generalParams.set("i18n_nom_alternatif", i18nC.nomAlternatif());
|
271 |
generalParams.set("i18n_cote", i18nC.cote());
|
- |
|
272 |
generalParams.set("i18n_mere", i18nC.collectionMere());
|
- |
|
273 |
generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
|
- |
|
274 |
generalParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
|
- |
|
275 |
generalParams.set("i18n_type_depot", i18nC.typeDepot());
|
- |
|
276 |
generalParams.set("i18n_nbre_echantillon", i18nC.nbreEchantillon());
|
251 |
generalParams.set("i18n_mere", i18nC.collectionMere());
|
277 |
|
252 |
generalParams.set("i18n_general_collection_titre", i18nC.collectionGeneralTitre());
|
278 |
generalParams.set("i18n_general_collection_titre", i18nC.collectionGeneralTitre());
|
253 |
generalParams.set("i18n_description", i18nC.description());
|
279 |
generalParams.set("i18n_description", i18nC.description());
|
254 |
generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
|
280 |
generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
|
255 |
generalParams.set("i18n_historique", i18nC.historique());
|
281 |
generalParams.set("i18n_historique", i18nC.historique());
|
256 |
generalParams.set("i18n_web", i18nC.siteWeb());
|
282 |
generalParams.set("i18n_web", i18nC.siteWeb());
|
257 |
generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
|
283 |
generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
|
258 |
generalParams.set("i18n_groupement_but", i18nC.groupementBut());
|
- |
|
259 |
generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
|
- |
|
260 |
generalParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
|
- |
|
Line 261... |
Line 284... |
261 |
generalParams.set("i18n_type_depot", i18nC.typeDepot());
|
284 |
generalParams.set("i18n_groupement_but", i18nC.groupementBut());
|
262 |
|
285 |
|
263 |
String acronyme = construireTxtTruck(collection.getIdAlternatif());
|
286 |
String acronyme = construireTxtTruck(collection.getIdAlternatif());
|
264 |
String code = construireTxtTruck(collection.getCode());
|
287 |
String code = construireTxtTruck(collection.getCode());
|
Line 271... |
Line 294... |
271 |
generalParams.set("nom_alternatif", nomAlternatif);
|
294 |
generalParams.set("nom_alternatif", nomAlternatif);
|
272 |
generalParams.set("acronyme", acronyme);
|
295 |
generalParams.set("acronyme", acronyme);
|
273 |
generalParams.set("code", code);
|
296 |
generalParams.set("code", code);
|
274 |
generalParams.set("cote", collection.getCote());
|
297 |
generalParams.set("cote", collection.getCote());
|
275 |
generalParams.set("mere", collection.getCollectionMereNom());
|
298 |
generalParams.set("mere", collection.getCollectionMereNom());
|
- |
|
299 |
generalParams.set("type_ncd", typeNcd);
|
- |
|
300 |
generalParams.set("type_botanique", typeBota);
|
- |
|
301 |
generalParams.set("type_depot", typeDepot);
|
- |
|
302 |
generalParams.set("nbre_echantillon", collection.getBotanique().getNbreEchantillon());
|
- |
|
303 |
|
276 |
generalParams.set("description", collection.getDescription());
|
304 |
generalParams.set("description", collection.getDescription());
|
277 |
generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
|
305 |
generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
|
278 |
generalParams.set("historique", collection.getHistorique());
|
306 |
generalParams.set("historique", collection.getHistorique());
|
279 |
generalParams.set("web", urls);
|
307 |
generalParams.set("web", urls);
|
280 |
generalParams.set("groupement_principe", collection.getGroupementPrincipe());
|
308 |
generalParams.set("groupement_principe", collection.getGroupementPrincipe());
|
281 |
generalParams.set("groupement_but", collection.getGroupementBut());
|
309 |
generalParams.set("groupement_but", collection.getGroupementBut());
|
282 |
generalParams.set("type_ncd", typeNcd);
|
- |
|
283 |
generalParams.set("type_botanique", typeBota);
|
- |
|
284 |
generalParams.set("type_depot", typeDepot);
|
- |
|
Line 285... |
Line 310... |
285 |
|
310 |
|
286 |
afficherOnglet(generalTpl, generalParams, generalOnglet);
|
311 |
afficherOnglet(generalTpl, generalParams, generalOnglet);
|
Line 287... |
Line 312... |
287 |
}
|
312 |
}
|
Line 291... |
Line 316... |
291 |
auteurParams.set("i18n_titre_auteur", i18nC.collectionAuteurTitre());
|
316 |
auteurParams.set("i18n_titre_auteur", i18nC.collectionAuteurTitre());
|
Line 292... |
Line 317... |
292 |
|
317 |
|
293 |
afficherOnglet(auteurTpl, auteurParams, auteurOnglet);
|
318 |
afficherOnglet(auteurTpl, auteurParams, auteurOnglet);
|
Line -... |
Line 319... |
- |
|
319 |
}
|
- |
|
320 |
|
- |
|
321 |
private void afficherPublication() {
|
- |
|
322 |
Params publicationParams = new Params();
|
- |
|
323 |
publicationParams.set("i18n_titre_publication", i18nC.collectionPublicationTitre());
|
- |
|
324 |
|
- |
|
325 |
afficherOnglet(publicationTpl, publicationParams, publicationOnglet);
|
294 |
}
|
326 |
}
|
295 |
|
327 |
|
296 |
private void afficherDescription() {
|
328 |
private void afficherDescription() {
|
Line 297... |
Line 329... |
297 |
Params descriptionParams = new Params();
|
329 |
Params descriptionParams = new Params();
|