| Line 71... |
Line 71... |
| 71 |
private TabItem publicationOnglet = null;
|
71 |
private TabItem publicationOnglet = null;
|
| 72 |
private TabItem descriptionOnglet = null;
|
72 |
private TabItem descriptionOnglet = null;
|
| 73 |
private TabItem contenuOnglet = null;
|
73 |
private TabItem contenuOnglet = null;
|
| 74 |
private TabItem inventaireOnglet = null;
|
74 |
private TabItem inventaireOnglet = null;
|
| 75 |
private TabItem commentaireOnglet = null;
|
75 |
private TabItem commentaireOnglet = null;
|
| 76 |
private String tableauUniteRangementTpl;
|
- |
|
| 77 |
private String ligneUniteRangementTpl;
|
- |
|
| 78 |
private String tableauUniteBaseTpl;
|
- |
|
| 79 |
private String ligneUniteBaseTpl;
|
- |
|
| Line 80... |
Line 76... |
| 80 |
|
76 |
|
| Line 81... |
Line 77... |
| 81 |
private Sequenceur sequenceur;
|
77 |
private Sequenceur sequenceur;
|
| 82 |
|
78 |
|
| Line 147... |
Line 143... |
| 147 |
initialiserPublicationTpl();
|
143 |
initialiserPublicationTpl();
|
| 148 |
initialiserTableauPublicationsLieesTpl();
|
144 |
initialiserTableauPublicationsLieesTpl();
|
| 149 |
initialiserLignePublicationLieeTpl();
|
145 |
initialiserLignePublicationLieeTpl();
|
| 150 |
initialiserContenuTpl();
|
146 |
initialiserContenuTpl();
|
| 151 |
initialiserDescriptionTpl();
|
147 |
initialiserDescriptionTpl();
|
| 152 |
initialiserTableauUniteRangementTpl();
|
- |
|
| 153 |
initialiserLigneUniteRangementTpl();
|
- |
|
| 154 |
initialiserTableauUniteBaseTpl();
|
- |
|
| 155 |
initialiserLigneUniteBaseTpl();
|
- |
|
| 156 |
initialiserInventaireTpl();
|
148 |
initialiserInventaireTpl();
|
| 157 |
initialiserCommentaireTpl();
|
149 |
initialiserCommentaireTpl();
|
| 158 |
initialiserTableauCommentairesLieesTpl();
|
150 |
initialiserTableauCommentairesLieesTpl();
|
| 159 |
initialiserLigneCommentaireLieeTpl();
|
151 |
initialiserLigneCommentaireLieeTpl();
|
| 160 |
}
|
152 |
}
|
| Line 295... |
Line 287... |
| 295 |
"<div class='{css_corps}'>"+
|
287 |
"<div class='{css_corps}'>"+
|
| 296 |
" <div>"+
|
288 |
" <div>"+
|
| 297 |
" <h2>{i18n_titre_description}</h2>"+
|
289 |
" <h2>{i18n_titre_description}</h2>"+
|
| 298 |
" <span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
|
290 |
" <span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
|
| 299 |
" <span class='{css_label}'>{i18n_nbre_echantillon} :</span> {nbre_echantillon}<br />"+
|
291 |
" <span class='{css_label}'>{i18n_nbre_echantillon} :</span> {nbre_echantillon}<br />"+
|
| 300 |
" <span class='{css_label}'>{i18n_etat_unite_rangement} :</span> {etat_unite_rangement}<br />"+
|
292 |
" <span class='{css_label}'>{i18n_etat_unite_rangement} :</span> {etat_unite_rangement}<br />"+
|
| - |
|
293 |
" <span class='{css_label}'>{i18n_collection_cartons_herbiers} :</span> {nb_cartons_herbier}<br />"+
|
| 301 |
" {tableau_unite_rangement}<br />"+
|
294 |
" <span class='{css_label}'>{i18n_nb_liasses} :</span> {nb_liasses}<br />"+
|
| - |
|
295 |
" <span class='{css_label}'>{i18n_autres_unites_rangement} : </span>{autres_unites_rangement}<br />"+
|
| 302 |
" <span class='{css_label}'>{i18n_nb_planches_herbier} :</span> {nb_planches_herbier}<br />"+
|
296 |
" <span class='{css_label}'>{i18n_nb_planches_herbier} :</span> {nb_planches_herbier}<br />"+
|
| 303 |
" <span class='{css_label}'>{i18n_nb_especes} :</span> {nb_especes}<br />"+
|
297 |
" <span class='{css_label}'>{i18n_nb_especes} :</span> {nb_especes}<br />"+
|
| 304 |
" </div>"+
|
298 |
" </div>"+
|
| 305 |
" <div>"+
|
299 |
" <div>"+
|
| 306 |
" <h2>{i18n_titre_conservation}</h2>"+
|
300 |
" <h2>{i18n_titre_conservation}</h2>"+
|
| Line 330... |
Line 324... |
| 330 |
" <span class='{css_label}'>{i18n_determination} :</span> {determination}<br />"+
|
324 |
" <span class='{css_label}'>{i18n_determination} :</span> {determination}<br />"+
|
| 331 |
" </div>"+
|
325 |
" </div>"+
|
| 332 |
"</div>";
|
326 |
"</div>";
|
| 333 |
}
|
327 |
}
|
| Line 334... |
Line -... |
| 334 |
|
- |
|
| 335 |
private void initialiserTableauUniteRangementTpl() {
|
- |
|
| 336 |
tableauUniteRangementTpl =
|
- |
|
| 337 |
"<table>"+
|
- |
|
| 338 |
" <thead>"+
|
- |
|
| 339 |
" <tr>" +
|
- |
|
| 340 |
" <th>{i18n_type}</th>" +
|
- |
|
| 341 |
" <th>{i18n_nombre}</th>" +
|
- |
|
| 342 |
" <th>{i18n_precision}</th>" +
|
- |
|
| 343 |
" <th>{i18n_format}</th>" +
|
- |
|
| 344 |
" </tr>"+
|
- |
|
| 345 |
" </thead>"+
|
- |
|
| 346 |
" <tbody>"+
|
- |
|
| 347 |
" {lignes}"+
|
- |
|
| 348 |
" </tbody>"+
|
- |
|
| 349 |
"</table>";
|
- |
|
| 350 |
}
|
- |
|
| 351 |
|
- |
|
| 352 |
private void initialiserLigneUniteRangementTpl() {
|
- |
|
| 353 |
ligneUniteRangementTpl =
|
- |
|
| 354 |
"<tr>"+
|
- |
|
| 355 |
" <td>{type}</td>"+
|
- |
|
| 356 |
" <td>{nombre}</td>"+
|
- |
|
| 357 |
" <td>{precision}</td>"+
|
- |
|
| 358 |
" <td>{format}</td>"+
|
- |
|
| 359 |
"</tr>";
|
- |
|
| 360 |
}
|
- |
|
| 361 |
|
- |
|
| 362 |
private void initialiserTableauUniteBaseTpl() {
|
- |
|
| 363 |
tableauUniteBaseTpl =
|
- |
|
| 364 |
"<table>"+
|
- |
|
| 365 |
" <thead>"+
|
- |
|
| 366 |
" <tr>" +
|
- |
|
| 367 |
" <th colspan='4'>{i18n_unite_base}</th>" +
|
- |
|
| 368 |
" <th colspan='2'>{i18n_part}</th>" +
|
- |
|
| 369 |
" <th colspan='2'>{i18n_sp}</th>" +
|
- |
|
| 370 |
" </tr>"+
|
- |
|
| 371 |
" <tr>" +
|
- |
|
| 372 |
" <th>{i18n_type}</th>" +
|
- |
|
| 373 |
" <th>{i18n_nombre}</th>" +
|
- |
|
| 374 |
" <th>{i18n_precision}</th>" +
|
- |
|
| 375 |
" <th>{i18n_format}</th>" +
|
- |
|
| 376 |
" <th>{i18n_nombre}</th>" +
|
- |
|
| 377 |
" <th>{i18n_precision}</th>" +
|
- |
|
| 378 |
" <th>{i18n_nombre}</th>" +
|
- |
|
| 379 |
" <th>{i18n_precision}</th>" +
|
- |
|
| 380 |
" </tr>"+
|
- |
|
| 381 |
" </thead>"+
|
- |
|
| 382 |
" <tbody>"+
|
- |
|
| 383 |
" {lignes}"+
|
- |
|
| 384 |
" </tbody>"+
|
- |
|
| 385 |
"</table>";
|
- |
|
| 386 |
}
|
- |
|
| 387 |
|
- |
|
| 388 |
private void initialiserLigneUniteBaseTpl() {
|
- |
|
| 389 |
ligneUniteBaseTpl =
|
- |
|
| 390 |
"<tr>"+
|
- |
|
| 391 |
" <td>{type}</td>"+
|
- |
|
| 392 |
" <td>{nombre}</td>"+
|
- |
|
| 393 |
" <td>{precision}</td>"+
|
- |
|
| 394 |
" <td>{format}</td>"+
|
- |
|
| 395 |
" <td>{part_nombre}</td>"+
|
- |
|
| 396 |
" <td>{part_precision}</td>"+
|
- |
|
| 397 |
" <td>{sp_nombre}</td>"+
|
- |
|
| 398 |
" <td>{sp_precision}</td>"+
|
- |
|
| 399 |
"</tr>";
|
- |
|
| 400 |
}
|
- |
|
| 401 |
|
328 |
|
| 402 |
private void initialiserContenuTpl() {
|
329 |
private void initialiserContenuTpl() {
|
| 403 |
contenuTpl =
|
330 |
contenuTpl =
|
| 404 |
"<div class='{css_corps}'>"+
|
331 |
"<div class='{css_corps}'>"+
|
| 405 |
" <div class='{css_fieldset}'>"+
|
332 |
" <div class='{css_fieldset}'>"+
|
| Line 789... |
Line 716... |
| 789 |
descriptionParams.set("type_botanique", typeBota);
|
716 |
descriptionParams.set("type_botanique", typeBota);
|
| 790 |
descriptionParams.set("nbre_echantillon", collection.getBotanique().getNbreEchantillon());
|
717 |
descriptionParams.set("nbre_echantillon", collection.getBotanique().getNbreEchantillon());
|
| Line 791... |
Line 718... |
| 791 |
|
718 |
|
| 792 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
719 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
| - |
|
720 |
String etatUniteRangement = construireTxtListeOntologie(collectionBotanique.getUniteRangementEtat());
|
| - |
|
721 |
|
| - |
|
722 |
descriptionParams.set("i18n_collection_cartons_herbiers", i18nC.collectionCartonsHerbiers());
|
| 793 |
String etatUniteRangement = construireTxtListeOntologie(collectionBotanique.getUniteRangementEtat());
|
723 |
descriptionParams.set("i18n_nb_liasses", i18nC.collectionLiasses());
|
| - |
|
724 |
descriptionParams.set("i18n_autres_unites_rangement", i18nC.collectionAutreUnitesRangement());
|
| - |
|
725 |
|
| - |
|
726 |
String cartonsHerbiers = collectionBotanique.getNbCartonsHerbiers();
|
| - |
|
727 |
if(!collectionBotanique.getNbCartonsHerbiers().trim().isEmpty() &&
|
| - |
|
728 |
! collectionBotanique.getFormatCartonsHerbiers().trim().isEmpty()) {
|
| - |
|
729 |
cartonsHerbiers += " - "+i18nC.format()+": ";
|
| - |
|
730 |
}
|
| - |
|
731 |
cartonsHerbiers += collectionBotanique.getFormatCartonsHerbiers();
|
| - |
|
732 |
descriptionParams.set("nb_cartons_herbier", cartonsHerbiers);
|
| - |
|
733 |
|
| - |
|
734 |
String liasses = collectionBotanique.getNbLiasses();
|
| - |
|
735 |
if(!collectionBotanique.getNbLiasses().trim().isEmpty() &&
|
| - |
|
736 |
! collectionBotanique.getFormatLiasses().trim().isEmpty()) {
|
| - |
|
737 |
liasses += " - "+i18nC.format()+": ";
|
| - |
|
738 |
}
|
| - |
|
739 |
liasses += collectionBotanique.getFormatLiasses();
|
| - |
|
740 |
descriptionParams.set("nb_liasses", liasses);
|
| - |
|
741 |
|
| Line 794... |
Line -... |
| 794 |
String tableauUniteRangementHtml = construireTableauUniteRangement();
|
- |
|
| 795 |
|
742 |
descriptionParams.set("autres_unites_rangement", collectionBotanique.getAutresUnitesRangement().replaceAll("\r\n|\r|\n", ", "));
|
| Line 796... |
Line 743... |
| 796 |
descriptionParams.set("tableau_unite_rangement", tableauUniteRangementHtml);
|
743 |
|
| 797 |
descriptionParams.set("etat_unite_rangement", etatUniteRangement);
|
744 |
descriptionParams.set("etat_unite_rangement", etatUniteRangement);
|
| Line 838... |
Line 785... |
| 838 |
descriptionParams.set("determination", determination);
|
785 |
descriptionParams.set("determination", determination);
|
| Line 839... |
Line 786... |
| 839 |
|
786 |
|
| 840 |
afficherOnglet(descriptionTpl, descriptionParams, descriptionOnglet);
|
787 |
afficherOnglet(descriptionTpl, descriptionParams, descriptionOnglet);
|
| Line 841... |
Line -... |
| 841 |
}
|
- |
|
| 842 |
|
- |
|
| 843 |
private String construireTableauUniteRangement() {
|
- |
|
| 844 |
Params contenuParams = new Params();
|
- |
|
| 845 |
contenuParams.set("i18n_type", i18nC.collectionUniteType());
|
- |
|
| 846 |
contenuParams.set("i18n_nombre", i18nC.collectionUniteNbre());
|
- |
|
| 847 |
contenuParams.set("i18n_precision", i18nC.collectionUnitePrecision());
|
- |
|
| 848 |
contenuParams.set("i18n_format", i18nC.collectionUniteFormat());
|
- |
|
| 849 |
|
- |
|
| 850 |
CollectionBotanique collectionBotanique = collection.getBotanique();
|
- |
|
| 851 |
HashMap<String,UniteRangement> unites = CollectionFormDescription.parserValeurUniteRangement(collectionBotanique.getUniteRangement());
|
- |
|
| 852 |
|
- |
|
| 853 |
String lignesUnite = "";
|
- |
|
| 854 |
Iterator<String> it = unites.keySet().iterator();
|
- |
|
| 855 |
while (it.hasNext()) {
|
- |
|
| 856 |
String cle = it.next();
|
- |
|
| 857 |
UniteRangement unite = unites.get(cle);
|
- |
|
| 858 |
if (unite.getNombre() != 0) {
|
- |
|
| 859 |
Params ligneParams = new Params();
|
- |
|
| 860 |
if (unite.getTypeAutre()) {
|
- |
|
| 861 |
ligneParams.set("type", unite.getType());
|
- |
|
| 862 |
} else {
|
- |
|
| 863 |
ligneParams.set("type", construireTxtListeOntologie(unite.getId()));
|
- |
|
| 864 |
}
|
- |
|
| 865 |
ligneParams.set("nombre", UtilNombre.formaterEnEntier(unite.getNombre()));
|
- |
|
| 866 |
ligneParams.set("precision", unite.getPrecision());
|
- |
|
| 867 |
ligneParams.set("format", unite.getFormat());
|
- |
|
| 868 |
|
- |
|
| 869 |
lignesUnite += Format.substitute(ligneUniteRangementTpl, ligneParams);
|
- |
|
| 870 |
}
|
- |
|
| 871 |
}
|
- |
|
| 872 |
|
- |
|
| 873 |
String cHtml = i18nC.nonRenseigne();
|
- |
|
| 874 |
if (!UtilString.isEmpty(lignesUnite)) {
|
- |
|
| 875 |
contenuParams.set("lignes", lignesUnite);
|
- |
|
| 876 |
cHtml = Format.substitute(tableauUniteRangementTpl, contenuParams);
|
- |
|
| 877 |
}
|
- |
|
| 878 |
return cHtml;
|
- |
|
| 879 |
}
|
788 |
}
|
| 880 |
|
789 |
|
| 881 |
private void afficherContenu() {
|
790 |
private void afficherContenu() {
|
| 882 |
Params contenuParams = new Params();
|
791 |
Params contenuParams = new Params();
|
| 883 |
contenuParams.set("i18n_titre_nature", i18nC.collectionNatureTitre());
|
792 |
contenuParams.set("i18n_titre_nature", i18nC.collectionNatureTitre());
|