| Line 48... |
Line 48... |
| 48 |
private String lignePersonnelTpl = null;
|
48 |
private String lignePersonnelTpl = null;
|
| 49 |
private String conservationTpl = null;
|
49 |
private String conservationTpl = null;
|
| 50 |
private String traitementConservationTpl = null;
|
50 |
private String traitementConservationTpl = null;
|
| 51 |
private String valorisationTpl = null;
|
51 |
private String valorisationTpl = null;
|
| 52 |
private String sautLigneTpl = null;
|
52 |
private String sautLigneTpl = null;
|
| - |
|
53 |
private String typeTraitementConservationTpl = null;
|
| - |
|
54 |
private String rechercheValorisationTpl = null;
|
| Line 53... |
Line 55... |
| 53 |
|
55 |
|
| 54 |
private Structure structure = null;
|
56 |
private Structure structure = null;
|
| 55 |
private StructureAPersonneListe personnel = null;
|
57 |
private StructureAPersonneListe personnel = null;
|
| 56 |
private StructureValorisation valorisation = null;
|
58 |
private StructureValorisation valorisation = null;
|
| Line 61... |
Line 63... |
| 61 |
private TabPanel onglets = null;
|
63 |
private TabPanel onglets = null;
|
| 62 |
private TabItem identificationOnglet = null;
|
64 |
private TabItem identificationOnglet = null;
|
| 63 |
private TabItem personnelOnglet = null;
|
65 |
private TabItem personnelOnglet = null;
|
| 64 |
private TabItem conservationOnglet = null;
|
66 |
private TabItem conservationOnglet = null;
|
| 65 |
private TabItem valorisationOnglet = null;
|
67 |
private TabItem valorisationOnglet = null;
|
| 66 |
private String typeTraitementConservationTpl;
|
- |
|
| Line 67... |
Line 68... |
| 67 |
|
68 |
|
| 68 |
public StructureDetailPanneauVue(Mediateur mediateurCourant) {
|
69 |
public StructureDetailPanneauVue(Mediateur mediateurCourant) {
|
| 69 |
mediateur = mediateurCourant;
|
70 |
mediateur = mediateurCourant;
|
| 70 |
i18nC = mediateur.i18nC;
|
71 |
i18nC = mediateur.i18nC;
|
| Line 88... |
Line 89... |
| 88 |
onglets = new TabPanel();
|
89 |
onglets = new TabPanel();
|
| 89 |
onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
|
90 |
onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
|
| 90 |
onglets.setHeight("100%");
|
91 |
onglets.setHeight("100%");
|
| 91 |
onglets.setBodyBorder(false);
|
92 |
onglets.setBodyBorder(false);
|
| Line 92... |
Line 93... |
| 92 |
|
93 |
|
| 93 |
identificationOnglet = new TabItem("Général");
|
94 |
identificationOnglet = new TabItem(i18nC.structureInfoGeneral());
|
| 94 |
identificationOnglet.setLayout(new AnchorLayout());
|
95 |
identificationOnglet.setLayout(new AnchorLayout());
|
| 95 |
identificationOnglet.setScrollMode(Scroll.AUTO);
|
96 |
identificationOnglet.setScrollMode(Scroll.AUTO);
|
| Line 96... |
Line 97... |
| 96 |
onglets.add(identificationOnglet);
|
97 |
onglets.add(identificationOnglet);
|
| 97 |
|
98 |
|
| 98 |
personnelOnglet = new TabItem("Personnel");
|
99 |
personnelOnglet = new TabItem(i18nC.structureInfoPersonnel());
|
| 99 |
personnelOnglet.setLayout(new AnchorLayout());
|
100 |
personnelOnglet.setLayout(new AnchorLayout());
|
| Line 100... |
Line 101... |
| 100 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
101 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
| 101 |
onglets.add(personnelOnglet);
|
102 |
onglets.add(personnelOnglet);
|
| 102 |
|
103 |
|
| 103 |
conservationOnglet = new TabItem("Conservation");
|
104 |
conservationOnglet = new TabItem(i18nC.structureInfoConservation());
|
| Line 104... |
Line 105... |
| 104 |
conservationOnglet.setLayout(new AnchorLayout());
|
105 |
conservationOnglet.setLayout(new AnchorLayout());
|
| 105 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
106 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
| 106 |
onglets.add(conservationOnglet);
|
107 |
onglets.add(conservationOnglet);
|
| 107 |
|
108 |
|
| Line 108... |
Line 109... |
| 108 |
valorisationOnglet = new TabItem("Valorisation");
|
109 |
valorisationOnglet = new TabItem(i18nC.structureInfoValorisation());
|
| Line 148... |
Line 149... |
| 148 |
}
|
149 |
}
|
| 149 |
if (conservation != null) {
|
150 |
if (conservation != null) {
|
| 150 |
afficherConservation();
|
151 |
afficherConservation();
|
| 151 |
}
|
152 |
}
|
| 152 |
if (valorisation != null) {
|
153 |
if (valorisation != null) {
|
| 153 |
//afficherValorisation();
|
154 |
afficherValorisation();
|
| 154 |
}
|
155 |
}
|
| 155 |
}
|
156 |
}
|
| 156 |
layout();
|
157 |
layout();
|
| 157 |
}
|
158 |
}
|
| Line 171... |
Line 172... |
| 171 |
entete.getElement().setInnerHTML(eHtml);
|
172 |
entete.getElement().setInnerHTML(eHtml);
|
| 172 |
}
|
173 |
}
|
| Line 173... |
Line 174... |
| 173 |
|
174 |
|
| 174 |
private void afficherIdentification() {
|
175 |
private void afficherIdentification() {
|
| 175 |
Params identificationParams = new Params();
|
- |
|
| 176 |
identificationParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
|
- |
|
| 177 |
identificationParams.set("css_label", ComposantClass.LABEL);
|
- |
|
| 178 |
identificationParams.set("css_fieldset", ComposantClass.FIELDSET);
|
- |
|
| 179 |
identificationParams.set("css_clear", ComposantClass.CLEAR);
|
- |
|
| 180 |
|
176 |
Params identificationParams = new Params();
|
| 181 |
identificationParams.set("i18n_titre_administratif", i18nC.titreAdministratif());
|
177 |
identificationParams.set("i18n_titre_administratif", i18nC.titreAdministratif());
|
| 182 |
identificationParams.set("i18n_acronyme", i18nC.acronyme());
|
178 |
identificationParams.set("i18n_acronyme", i18nC.acronyme());
|
| 183 |
identificationParams.set("i18n_statut", i18nC.statut());
|
179 |
identificationParams.set("i18n_statut", i18nC.statut());
|
| 184 |
identificationParams.set("i18n_date_fondation", mediateur.i18nC.dateFondation());
|
180 |
identificationParams.set("i18n_date_fondation", mediateur.i18nC.dateFondation());
|
| Line 234... |
Line 230... |
| 234 |
if (personnel.size() > 0) {
|
230 |
if (personnel.size() > 0) {
|
| 235 |
tableauPersonnelHtml = construireTableauDuPersonnel();
|
231 |
tableauPersonnelHtml = construireTableauDuPersonnel();
|
| 236 |
}
|
232 |
}
|
| Line 237... |
Line 233... |
| 237 |
|
233 |
|
| 238 |
Params personnelParams = new Params();
|
- |
|
| 239 |
personnelParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
|
234 |
Params personnelParams = new Params();
|
| 240 |
personnelParams.set("i18n_titre_personnel", i18nC.titrePersonnel());
|
235 |
personnelParams.set("i18n_titre_personnel", i18nC.titrePersonnel());
|
| 241 |
personnelParams.set("i18n_nbre_personnel_collection", i18nC.nbrePersonnelCollection());
|
236 |
personnelParams.set("i18n_nbre_personnel_collection", i18nC.nbrePersonnelCollection());
|
| 242 |
personnelParams.set("nbre_personnel_collection", personnel.size());
|
237 |
personnelParams.set("nbre_personnel_collection", personnel.size());
|
| Line 287... |
Line 282... |
| 287 |
return cHtml;
|
282 |
return cHtml;
|
| 288 |
}
|
283 |
}
|
| Line 289... |
Line 284... |
| 289 |
|
284 |
|
| 290 |
private void afficherConservation() {
|
285 |
private void afficherConservation() {
|
| 291 |
Params conservationParams = new Params();
|
- |
|
| 292 |
conservationParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
|
- |
|
| 293 |
conservationParams.set("css_label", ComposantClass.LABEL);
|
- |
|
| 294 |
conservationParams.set("css_fieldset", ComposantClass.FIELDSET);
|
- |
|
| 295 |
conservationParams.set("css_clear", ComposantClass.CLEAR);
|
- |
|
| 296 |
|
286 |
Params conservationParams = new Params();
|
| 297 |
conservationParams.set("i18n_titre_conservation_personnel", i18nC.titreConservationPersonnel());
|
287 |
conservationParams.set("i18n_titre_conservation_personnel", i18nC.titreConservationPersonnel());
|
| 298 |
conservationParams.set("i18n_formation", i18nC.formation());
|
288 |
conservationParams.set("i18n_formation", i18nC.formation());
|
| Line 299... |
Line 289... |
| 299 |
conservationParams.set("i18n_formation_interet", i18nC.formationInteret());
|
289 |
conservationParams.set("i18n_formation_interet", i18nC.formationInteret());
|
| Line 366... |
Line 356... |
| 366 |
String cHtml = "";
|
356 |
String cHtml = "";
|
| 367 |
String echantillon = conservation.getAcquisitionEchantillon();
|
357 |
String echantillon = conservation.getAcquisitionEchantillon();
|
| Line 368... |
Line 358... |
| 368 |
|
358 |
|
| 369 |
if (echantillon.equals("1")) {
|
359 |
if (echantillon.equals("1")) {
|
| 370 |
Params traitementConservationParams = new Params();
|
- |
|
| 371 |
traitementConservationParams.set("css_label", ComposantClass.LABEL);
|
360 |
Params traitementConservationParams = new Params();
|
| Line 372... |
Line 361... |
| 372 |
traitementConservationParams.set("i18n_acquisition_traitement", i18nC.acquisitionTraitement());
|
361 |
traitementConservationParams.set("i18n_acquisition_traitement", i18nC.acquisitionTraitement());
|
| Line 373... |
Line 362... |
| 373 |
|
362 |
|
| Line 385... |
Line 374... |
| 385 |
String cHtml = "";
|
374 |
String cHtml = "";
|
| 386 |
String traitement = conservation.getAcquisitionTraitement();
|
375 |
String traitement = conservation.getAcquisitionTraitement();
|
| Line 387... |
Line 376... |
| 387 |
|
376 |
|
| 388 |
if (traitement.equals("1")) {
|
377 |
if (traitement.equals("1")) {
|
| 389 |
Params typeTraitementParams = new Params();
|
- |
|
| 390 |
typeTraitementParams.set("css_indentation", ComposantClass.INDENTATION);
|
- |
|
| 391 |
typeTraitementParams.set("css_label", ComposantClass.LABEL);
|
378 |
Params typeTraitementParams = new Params();
|
| 392 |
typeTraitementParams.set("i18n_acquisition_traitement_insecte", i18nC.acquisitionTraitementInsecte());
|
379 |
typeTraitementParams.set("i18n_acquisition_traitement_insecte", i18nC.acquisitionTraitementInsecte());
|
| Line 393... |
Line 380... |
| 393 |
typeTraitementParams.set("i18n_acquisition_traitement_poison", i18nC.acquisitionTraitementPoison());
|
380 |
typeTraitementParams.set("i18n_acquisition_traitement_poison", i18nC.acquisitionTraitementPoison());
|
| 394 |
|
381 |
|
| Line 401... |
Line 388... |
| 401 |
}
|
388 |
}
|
| Line 402... |
Line 389... |
| 402 |
|
389 |
|
| 403 |
return cHtml;
|
390 |
return cHtml;
|
| Line 404... |
Line 391... |
| 404 |
}
|
391 |
}
|
| 405 |
|
392 |
|
| - |
|
393 |
private void afficherValorisation() {
|
| 406 |
private void afficherOnglet(String template, Params parametres, TabItem onglet) {
|
394 |
Params valorisationParams = new Params();
|
| - |
|
395 |
valorisationParams.set("i18n_titre_action_valorisation", i18nC.titreActionValorisation());
|
| 407 |
String cHtml = Format.substitute(template, parametres);
|
396 |
valorisationParams.set("i18n_action", i18nC.action());
|
| 408 |
HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
|
397 |
valorisationParams.set("i18n_action_publication", i18nC.actionPublication());
|
| 409 |
onglet.removeAll();
|
- |
|
| 410 |
onglet.add(corpsConteneurDuHtml);
|
398 |
valorisationParams.set("i18n_collection_autre", i18nC.collectionAutre());
|
| 411 |
}
|
399 |
valorisationParams.set("i18n_action_future", i18nC.actionFuture());
|
| - |
|
400 |
|
| 412 |
|
401 |
valorisationParams.set("action", formaterOuiNon(valorisation.getAction()));
|
| 413 |
private String formaterParenthese(String chaineAAfficher) {
|
402 |
String actionInfo = construireTxtListeOntologie(valorisation.getActionInfo());
|
| 414 |
if (!chaineAAfficher.equals("")) {
|
- |
|
| - |
|
403 |
valorisationParams.set("action_info", formaterParenthese(actionInfo));
|
| 415 |
chaineAAfficher = "("+chaineAAfficher+")";
|
404 |
valorisationParams.set("action_publication", valorisation.getPublication());
|
| 416 |
}
|
- |
|
| - |
|
405 |
String collectionAutre = construireTxtListeOntologie(valorisation.getCollectionAutre());
|
| - |
|
406 |
valorisationParams.set("collection_autre", collectionAutre);
|
| 417 |
return chaineAAfficher;
|
407 |
valorisationParams.set("action_future", formaterOuiNon(valorisation.getActionFuture()));
|
| 418 |
}
|
408 |
valorisationParams.set("action_future_info", formaterParenthese(valorisation.getActionFutureInfo()));
|
| 419 |
|
- |
|
| 420 |
private String formaterAutre(String chaineAAfficher) {
|
409 |
|
| 421 |
if (!chaineAAfficher.equals("")) {
|
410 |
valorisationParams.set("i18n_titre_recherche_scientifique", i18nC.titreRechercherScientifique());
|
| - |
|
411 |
valorisationParams.set("i18n_recherche", i18nC.recherche());
|
| 422 |
chaineAAfficher = " ["+i18nC.autres()+" : "+chaineAAfficher+"]";
|
412 |
|
| 423 |
}
|
- |
|
| 424 |
return chaineAAfficher;
|
413 |
valorisationParams.set("recherche", formaterOuiNon(valorisation.getRecherche()));
|
| 425 |
}
|
414 |
valorisationParams.set("recherche_info", construireRecherche());
|
| 426 |
|
415 |
|
| 427 |
private String formaterTableauDeTxt(ArrayList<String> tableauDeTxt) {
|
416 |
valorisationParams.set("i18n_titre_acces_usage", i18nC.titreAccesUsage());
|
| 428 |
String chaineAAfficher = "";
|
- |
|
| - |
|
417 |
valorisationParams.set("i18n_acces", i18nC.acces());
|
| 429 |
int tailleDuTableau = tableauDeTxt.size();
|
418 |
valorisationParams.set("i18n_visite", i18nC.visite());
|
| 430 |
if (tailleDuTableau > 0) {
|
419 |
|
| 431 |
int indexAvtDernier = tailleDuTableau - 1;
|
420 |
valorisationParams.set("acces", formaterOuiNon(valorisation.getAccesSansMotif()));
|
| 432 |
for (int i = 0; i < tailleDuTableau; i++) {
|
- |
|
| 433 |
String mot = tableauDeTxt.get(i);
|
- |
|
| 434 |
if (i != indexAvtDernier) {
|
- |
|
| 435 |
chaineAAfficher += mot+", ";
|
421 |
valorisationParams.set("acces_info", formaterParenthese(valorisation.getAccesSansMotifInfo()));
|
| 436 |
} else {
|
- |
|
| 437 |
chaineAAfficher += nettoyerPointFinal(mot)+".";
|
- |
|
| 438 |
}
|
422 |
valorisationParams.set("visite", formaterOuiNon(valorisation.getVisiteAvecMotif()));
|
| 439 |
}
|
423 |
valorisationParams.set("visite_info", formaterParenthese(valorisation.getVisiteAvecMotifInfo()));
|
| 440 |
}
|
424 |
|
| Line 441... |
Line 425... |
| 441 |
return chaineAAfficher;
|
425 |
afficherOnglet(valorisationTpl, valorisationParams, valorisationOnglet);
|
| 442 |
}
|
426 |
}
|
| - |
|
427 |
|
| - |
|
428 |
private String construireRecherche() {
|
| 443 |
|
429 |
String cHtml = "";
|
| 444 |
private String formaterOuiNon(String chaineAFormater) {
|
430 |
String recherche = valorisation.getRecherche();
|
| - |
|
431 |
|
| 445 |
String txtARetourner = "";
|
432 |
if (recherche.equals("1")) {
|
| - |
|
433 |
Params rechercheParams = new Params();
|
| - |
|
434 |
rechercheParams.set("i18n_recherche_provenance", i18nC.rechercheProvenance());
|
| - |
|
435 |
rechercheParams.set("i18n_recherche_type", i18nC.rechercheType());
|
| - |
|
436 |
|
| 446 |
if (chaineAFormater.equals("0")) {
|
437 |
String rechercheProvenance = construireTxtListeOntologie(valorisation.getRechercheProvenance());
|
| - |
|
438 |
rechercheParams.set("recherche_provenance", rechercheProvenance);
|
| - |
|
439 |
String rechercheType = construireTxtListeOntologie(valorisation.getRechercheType());
|
| 447 |
txtARetourner = i18nC.non();
|
440 |
rechercheParams.set("recherche_type", rechercheType);
|
| - |
|
441 |
|
| 448 |
} else if (chaineAFormater.equals("1")) {
|
442 |
cHtml = Format.substitute(rechercheValorisationTpl, rechercheParams);
|
| 449 |
txtARetourner = i18nC.oui();
|
443 |
}
|
| Line 450... |
Line 444... |
| 450 |
}
|
444 |
|
| 451 |
return txtARetourner;
|
445 |
return cHtml;
|
| 452 |
}
|
- |
|
| 453 |
|
- |
|
| 454 |
private String formaterSautDeLigne(String chaineAFormater) {
|
- |
|
| 455 |
String txtARetourner = chaineAFormater.replaceAll("\n", sautLigneTpl);
|
- |
|
| 456 |
return txtARetourner;
|
- |
|
| Line 457... |
Line 446... |
| 457 |
}
|
446 |
}
|
| - |
|
447 |
|
| 458 |
|
448 |
private void afficherOnglet(String template, Params parametres, TabItem onglet) {
|
| 459 |
private String formaterValeurTruck(String valeur) {
|
449 |
String cHtml = Format.substitute(template, parametres);
|
| 460 |
String chaineARetourner = "";
|
450 |
|
| 461 |
|
451 |
Params cssParams = new Params();
|
| 462 |
if (valeur.matches("^[^#]+##[^$]+$")) {
|
- |
|
| 463 |
String[] cleValeur = valeur.split("##");
|
452 |
cssParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
|
| 464 |
chaineARetourner = cleValeur[1]+" "+formaterParenthese(cleValeur[0]);
|
- |
|
| Line 465... |
Line -... |
| 465 |
} else if (!valeur.equals("")) {
|
- |
|
| 466 |
chaineARetourner = valeur;
|
- |
|
| 467 |
} else {
|
- |
|
| 468 |
GWT.log("Valeur truck posant problèlme :"+valeur, null);
|
453 |
cssParams.set("css_label", ComposantClass.LABEL);
|
| 469 |
}
|
454 |
cssParams.set("css_indentation", ComposantClass.INDENTATION);
|
| 470 |
|
455 |
cssParams.set("css_fieldset", ComposantClass.FIELDSET);
|
| 471 |
return chaineARetourner;
|
456 |
cssParams.set("css_clear", ComposantClass.CLEAR);
|
| Line 472... |
Line 457... |
| 472 |
}
|
457 |
cHtml = Format.substitute(cHtml, cssParams);
|
| 473 |
|
458 |
|
| 474 |
private String nettoyerPointFinal(String mot) {
|
459 |
HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
|
| 475 |
mot = mot.replaceAll("[.]$", "");
|
460 |
onglet.removeAll();
|
| Line 484... |
Line 469... |
| 484 |
initialiserLignePersonnelTpl();
|
469 |
initialiserLignePersonnelTpl();
|
| 485 |
initialiserConservationTpl();
|
470 |
initialiserConservationTpl();
|
| 486 |
initialiserTraitementConservationTpl();
|
471 |
initialiserTraitementConservationTpl();
|
| 487 |
initialiserTypeTraitementConservationTpl();
|
472 |
initialiserTypeTraitementConservationTpl();
|
| 488 |
initialiserValorisationTpl();
|
473 |
initialiserValorisationTpl();
|
| - |
|
474 |
initialiserRechercheValorisationTpl();
|
| 489 |
initialiserSautLigneTpl();
|
475 |
initialiserSautLigneTpl();
|
| 490 |
}
|
476 |
}
|
| Line 491... |
Line 477... |
| 491 |
|
477 |
|
| 492 |
private void initialiserEnteteHtmlTpl() {
|
478 |
private void initialiserEnteteHtmlTpl() {
|
| Line 614... |
Line 600... |
| 614 |
"</div>";
|
600 |
"</div>";
|
| 615 |
}
|
601 |
}
|
| Line 616... |
Line 602... |
| 616 |
|
602 |
|
| 617 |
private void initialiserTraitementConservationTpl() {
|
603 |
private void initialiserTraitementConservationTpl() {
|
| 618 |
traitementConservationTpl =
|
604 |
traitementConservationTpl =
|
| - |
|
605 |
"<span class='{css_indentation} {css_label}'>{i18n_acquisition_traitement} :</span> {acquisition_traitement}<br />"+
|
| 619 |
"<span class='{css_label}'>{i18n_acquisition_traitement} :</span> {acquisition_traitement}<br />"+
|
606 |
" <div class='{css_indentation}'>"+
|
| - |
|
607 |
" {acquisition_traitement_type_info}"+
|
| 620 |
" {acquisition_traitement_type_info}";
|
608 |
" </div>";
|
| Line 621... |
Line 609... |
| 621 |
}
|
609 |
}
|
| 622 |
|
610 |
|
| 623 |
private void initialiserTypeTraitementConservationTpl() {
|
611 |
private void initialiserTypeTraitementConservationTpl() {
|
| Line 629... |
Line 617... |
| 629 |
private void initialiserValorisationTpl() {
|
617 |
private void initialiserValorisationTpl() {
|
| 630 |
valorisationTpl =
|
618 |
valorisationTpl =
|
| 631 |
"<div class='{css_corps}'>"+
|
619 |
"<div class='{css_corps}'>"+
|
| 632 |
" <div class='{css_fieldset}'>"+
|
620 |
" <div class='{css_fieldset}'>"+
|
| 633 |
" <h2>{i18n_titre_action_valorisation}</h2>"+
|
621 |
" <h2>{i18n_titre_action_valorisation}</h2>"+
|
| - |
|
622 |
" <span class='{css_label}'>{i18n_action} :</span> {action} {action_info}<br />"+
|
| - |
|
623 |
" <span class='{css_label}'>{i18n_action_publication} :</span> {action_publication}<br />"+
|
| - |
|
624 |
" <span class='{css_label}'>{i18n_collection_autre} :</span> {collection_autre}<br />"+
|
| - |
|
625 |
" <span class='{css_label}'>{i18n_action_future} :</span> {action_future} {action_future_info}<br />"+
|
| 634 |
" </div>"+
|
626 |
" </div>"+
|
| 635 |
" <div class='{css_fieldset}'>"+
|
627 |
" <div class='{css_fieldset}'>"+
|
| 636 |
" <h2>{i18n_titre_recherche_scientifique}</h2>"+
|
628 |
" <h2>{i18n_titre_recherche_scientifique}</h2>"+
|
| - |
|
629 |
" <span class='{css_label}'>{i18n_recherche} :</span> {recherche}<br />"+
|
| - |
|
630 |
" {recherche_info}"+
|
| 637 |
" </div>"+
|
631 |
" </div>"+
|
| 638 |
" <hr class='{css_clear}'/>"+
|
632 |
" <hr class='{css_clear}'/>"+
|
| 639 |
" <div class='{css_fieldset}'>"+
|
633 |
" <div class='{css_fieldset}'>"+
|
| 640 |
" <h2>{i18n_titre_acces_usage}</h2>"+
|
634 |
" <h2>{i18n_titre_acces_usage}</h2>"+
|
| - |
|
635 |
" <span class='{css_label}'>{i18n_visite} :</span> {visite} {visite_info}<br />"+
|
| - |
|
636 |
" <span class='{css_label}'>{i18n_acces} :</span> {acces} {acces_info}<br />"+
|
| 641 |
" </div>"+
|
637 |
" </div>"+
|
| 642 |
"</div>";
|
638 |
"</div>";
|
| 643 |
}
|
639 |
}
|
| Line -... |
Line 640... |
| - |
|
640 |
|
| - |
|
641 |
private void initialiserRechercheValorisationTpl() {
|
| - |
|
642 |
rechercheValorisationTpl =
|
| - |
|
643 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_provenance} :</span> {recherche_provenance}<br />"+
|
| - |
|
644 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_type} :</span> {recherche_type}<br />";
|
| - |
|
645 |
}
|
| 644 |
|
646 |
|
| 645 |
private void initialiserSautLigneTpl() {
|
647 |
private void initialiserSautLigneTpl() {
|
| 646 |
sautLigneTpl = "<br />\n";
|
648 |
sautLigneTpl = "<br />\n";
|
| Line 647... |
Line 649... |
| 647 |
}
|
649 |
}
|
| Line 675... |
Line 677... |
| 675 |
ontologie.put(cle, valeur);
|
677 |
ontologie.put(cle, valeur);
|
| 676 |
}
|
678 |
}
|
| 677 |
}
|
679 |
}
|
| 678 |
}
|
680 |
}
|
| Line -... |
Line 681... |
| - |
|
681 |
|
| - |
|
682 |
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
|
| - |
|
683 |
structure.setPersonnel(personnel);
|
| - |
|
684 |
}
|
| 679 |
|
685 |
|
| 680 |
protected String construireTxtprojet(String idProjet) {
|
686 |
protected String construireTxtprojet(String idProjet) {
|
| Line 681... |
Line 687... |
| 681 |
String chaineARetourner = idProjet;
|
687 |
String chaineARetourner = idProjet;
|
| 682 |
|
688 |
|
| Line 742... |
Line 748... |
| 742 |
|
748 |
|
| 743 |
String chaineARetourner = formaterTableauDeTxt(termes);
|
749 |
String chaineARetourner = formaterTableauDeTxt(termes);
|
| 744 |
return chaineARetourner;
|
750 |
return chaineARetourner;
|
| Line -... |
Line 751... |
| - |
|
751 |
}
|
| - |
|
752 |
|
| - |
|
753 |
private String formaterParenthese(String chaineAAfficher) {
|
| - |
|
754 |
if (!chaineAAfficher.equals("")) {
|
| - |
|
755 |
chaineAAfficher = "("+chaineAAfficher+")";
|
| - |
|
756 |
}
|
| - |
|
757 |
return chaineAAfficher;
|
| - |
|
758 |
}
|
| - |
|
759 |
|
| - |
|
760 |
private String formaterAutre(String chaineAAfficher) {
|
| - |
|
761 |
if (!chaineAAfficher.equals("")) {
|
| - |
|
762 |
chaineAAfficher = " ["+i18nC.autres()+" : "+chaineAAfficher+"]";
|
| - |
|
763 |
}
|
| - |
|
764 |
return chaineAAfficher;
|
| 745 |
}
|
765 |
}
|
| - |
|
766 |
|
| - |
|
767 |
private String formaterTableauDeTxt(ArrayList<String> tableauDeTxt) {
|
| - |
|
768 |
String chaineAAfficher = "";
|
| - |
|
769 |
int tailleDuTableau = tableauDeTxt.size();
|
| - |
|
770 |
if (tailleDuTableau > 0) {
|
| - |
|
771 |
int indexAvtDernier = tailleDuTableau - 1;
|
| - |
|
772 |
for (int i = 0; i < tailleDuTableau; i++) {
|
| - |
|
773 |
String mot = tableauDeTxt.get(i);
|
| - |
|
774 |
if (i != indexAvtDernier) {
|
| - |
|
775 |
chaineAAfficher += mot+", ";
|
| - |
|
776 |
} else {
|
| - |
|
777 |
chaineAAfficher += nettoyerPointFinal(mot)+".";
|
| - |
|
778 |
}
|
| - |
|
779 |
}
|
| - |
|
780 |
}
|
| - |
|
781 |
return chaineAAfficher;
|
| - |
|
782 |
}
|
| - |
|
783 |
|
| - |
|
784 |
private String formaterOuiNon(String chaineAFormater) {
|
| 746 |
|
785 |
String txtARetourner = "";
|
| - |
|
786 |
if (chaineAFormater.equals("0")) {
|
| - |
|
787 |
txtARetourner = i18nC.non();
|
| - |
|
788 |
} else if (chaineAFormater.equals("1")) {
|
| - |
|
789 |
txtARetourner = i18nC.oui();
|
| - |
|
790 |
}
|
| - |
|
791 |
return txtARetourner;
|
| - |
|
792 |
}
|
| - |
|
793 |
|
| - |
|
794 |
private String formaterSautDeLigne(String chaineAFormater) {
|
| - |
|
795 |
String txtARetourner = chaineAFormater.replaceAll("\n", sautLigneTpl);
|
| - |
|
796 |
return txtARetourner;
|
| - |
|
797 |
}
|
| - |
|
798 |
|
| - |
|
799 |
private String formaterValeurTruck(String valeur) {
|
| - |
|
800 |
String chaineARetourner = "";
|
| - |
|
801 |
|
| - |
|
802 |
if (valeur.matches("^[^#]+##[^$]+$")) {
|
| - |
|
803 |
String[] cleValeur = valeur.split("##");
|
| - |
|
804 |
chaineARetourner = cleValeur[1]+" "+formaterParenthese(cleValeur[0]);
|
| - |
|
805 |
} else if (!valeur.equals("")) {
|
| - |
|
806 |
chaineARetourner = valeur;
|
| - |
|
807 |
} else {
|
| - |
|
808 |
GWT.log("Valeur truck posant problèlme :"+valeur, null);
|
| - |
|
809 |
}
|
| 747 |
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
|
810 |
|
| Line -... |
Line 811... |
| - |
|
811 |
return chaineARetourner;
|
| - |
|
812 |
}
|
| - |
|
813 |
|
| - |
|
814 |
private String nettoyerPointFinal(String mot) {
|
| - |
|
815 |
mot = mot.replaceAll("[.]$", "");
|
| 748 |
structure.setPersonnel(personnel);
|
816 |
return mot;
|
| 749 |
}
|
817 |
}
|