/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.java |
---|
1141,6 → 1141,15 |
String referentielApd(); |
/** |
* Translated "Référentiel du Liban". |
* |
* @return translated "Référentiel du Liban" |
*/ |
@DefaultStringValue("Référentiel du Liban") |
@Key("referentielLbf") |
String referentielLbf(); |
/** |
* Translated "Tous les référentiels". |
* |
* @return translated "Tous les référentiels" |
/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.properties |
---|
220,6 → 220,7 |
referentielBdtxa = Trachéophytes des Antilles françaises |
referentielIsfan = Flore d'Afrique du Nord |
referentielApd = Référentiel d'Afrique tropicale |
referentielLbf = Référentiel du Liban |
# Composant pagination |
afficher = Afficher |
/trunk/src/org/tela_botanica/del/client/utils/UtilitairesServiceResultat.java |
---|
83,6 → 83,7 |
observation.setDateReleve(getValeurOuVide(observationJson, "date_observation")); |
observation.setFamille(getValeurOuVide(observationJson, "determination.famille")); |
observation.setId(getValeurOuVide(observationJson, "id_observation")); |
observation.setPays(getValeurOuVide(observationJson, "pays")); |
observation.setIdLocalite(getValeurOuVide(observationJson, "id_zone_geo")); |
observation.setLocalite(getValeurOuVide(observationJson, "zone_geo")); |
/trunk/src/org/tela_botanica/del/client/vues/identiplante/resultats/observations/observation.css |
---|
33,7 → 33,7 |
background:#8EB533; |
} |
.colonneImages { |
min-width:260px; |
width: 300px; |
background:url(./img/pasdephoto.jpg) no-repeat; |
} |
.description { |
/trunk/src/org/tela_botanica/del/client/cache/CacheClient.java |
---|
1,6 → 1,7 |
package org.tela_botanica.del.client.cache; |
import java.util.Arrays; |
import java.util.HashMap; |
import java.util.List; |
import java.util.Map; |
49,7 → 50,11 |
}; |
private ModeTri modeTri = ModeTri.TRI_ASCENDANT; |
// Pour plus de simplicité on stocke une liste de pays où |
// la clé est le code iso et la valeur le pays |
// et une autre ou c'est l'inverse |
private Map<String, String> listePays; |
private Map<String, String> listePaysInversee; |
public void supprimerFiltreStatut() { |
this.statut = null; |
385,12 → 390,20 |
public void setListePays(Map<String, String> listePays) { |
this.listePays = listePays; |
listePaysInversee = new HashMap<String, String>(); |
for(Map.Entry<String, String> entry : listePays.entrySet()){ |
listePaysInversee.put(entry.getValue(), entry.getKey()); |
} |
} |
public Map<String, String> getListePays() { |
return listePays; |
} |
public Map<String, String> getListePaysInversee() { |
return listePaysInversee; |
} |
public String genererUrlCourante() { |
String urlCourante = Window.Location.getHref(); |
Config config = new Config(); |
/trunk/src/org/tela_botanica/del/client/services/ReferentielService.java |
---|
24,6 → 24,7 |
referentiels.put("bdtxa", I18n.getVocabulary().referentielBdtxa()); |
referentiels.put("isfan", I18n.getVocabulary().referentielIsfan()); |
referentiels.put("apd", I18n.getVocabulary().referentielApd()); |
referentiels.put("lbf", I18n.getVocabulary().referentielLbf()); |
} |
return referentiels; |
} |
/trunk/src/org/tela_botanica/del/client/Del.java |
---|
10,17 → 10,23 |
@Override |
public void onModuleLoad() { |
// A décommenter + compiler en detailed dans le cas d'une erreur |
// survernant uniquement sur le serveur |
/*GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() { |
@Override |
/*GWT.setUncaughtExceptionHandler(new |
GWT.UncaughtExceptionHandler() { |
public void onUncaughtException(Throwable e) { |
Window.alert("uncaught: " + e.getMessage()); |
String s = buildStackTrace(e, "RuntimeException:\n"); |
Window.alert(s); |
e.printStackTrace(); |
Throwable unwrapped = unwrap(e); |
Window.alert(buildStackTrace(unwrapped, "")); |
} |
public Throwable unwrap(Throwable e) { |
if(e instanceof UmbrellaException) { |
UmbrellaException ue = (UmbrellaException) e; |
if(ue.getCauses().size() == 1) { |
return unwrap(ue.getCauses().iterator().next()); |
} |
} |
return e; |
} |
});*/ |
CacheClient.getInstance().initialiserAvecParametres(); |
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.java |
---|
194,6 → 194,7 |
} |
public void nettoyer() { |
pays.setSelectedIndex(0); |
chargerValeursRecherchePrecedente(new InformationsRecherche()); |
} |
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesEnLigneVue.java |
---|
22,7 → 22,7 |
private static Binder binder = GWT.create(Binder.class); |
@UiField |
Label nomRetenu, famille, auteur, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu, station, referentiel; |
Label nomRetenu, famille, auteur, pays, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu, station, referentiel; |
@UiField |
Anchor courrielAuteur; |
94,11 → 94,19 |
return commentaire; |
} |
public HasText getPays() { |
return pays; |
} |
@Override |
public HasClickHandlers getLienNomRetenu() { |
return nomRetenu; |
} |
public HasClickHandlers getLienPays() { |
return this.pays; |
} |
public HasClickHandlers getLienFamille() { |
return this.famille; |
} |
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/metadonnees.css |
---|
20,6 → 20,9 |
.lieuDuReleve { |
display: block; |
} |
.paysDuReleve { |
display: inline; |
} |
.zoneFamille { |
display: none; |
margin-top: 1em; |
36,6 → 39,9 |
.zoneLocalite { |
margin-top:5px; |
} |
.zonePays { |
} |
.zoneLocalite div { |
} |
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesVue.ui.xml |
---|
40,6 → 40,12 |
<g:Label ui:field="famille" styleName="{style.donnee}"/> |
</g:HTMLPanel> |
<!-- Pays --> |
<g:HTMLPanel ui:field="zonePays" styleName="{style.zonePays}"> |
<g:Label styleName="petit gris {style.paysDuReleve}" text="{constants.pays}" /> |
<g:Label ui:field="pays" styleName="{style.donnee}"/> |
</g:HTMLPanel> |
<!-- Lieu --> |
<g:HTMLPanel ui:field="zoneLocalite" styleName="{style.zoneLocalite}"> |
<g:Label styleName="petit gris {style.lieuDuReleve}" text="{constants.lieuDuReleve}" /> |
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesEnLigneVue.ui.xml |
---|
22,6 → 22,10 |
<g:Label ui:field="referentiel" /> |
</g:HTMLPanel> |
<g:HTMLPanel> |
<g:Label text="{constants.pays}" styleName="{style.label}" /> |
<g:Label ui:field="pays" /> |
</g:HTMLPanel> |
<g:HTMLPanel> |
<g:Label text="observée à" styleName="{style.label}" /> |
<g:Label ui:field="localite" /> |
</g:HTMLPanel> |
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesPresenteur.java |
---|
58,6 → 58,8 |
public HasText getDateReleve(); |
public HasText getPays(); |
public HasClickHandlers getLienFamille(); |
public HasClickHandlers getLienAuteur(); |
68,6 → 70,8 |
public HasClickHandlers getLienDateReleve(); |
public HasClickHandlers getLienPays(); |
public HasClickHandlers getLienLocalite(); |
public HasClickHandlers getLienMotsClefs(); |
122,6 → 126,12 |
vue.getNomCommun().setText(observation.getNomCommun()); |
vue.getReferentiel().setText(observation.getReferentiel()); |
vue.getFamille().setText(observation.getFamille()); |
if(CacheClient.getInstance().getListePays() != null) { |
vue.getPays().setText(CacheClient.getInstance().getListePays().get(observation.getPays())); |
} else { |
vue.getPays().setText(observation.getPays()); |
} |
vue.getLocalite().setText(observation.getLocaliteAvecIdFormatee()); |
vue.getLieuDit().setText(observation.getLieuDit()); |
vue.setStation(observation.getStation()); |
208,6 → 218,20 |
} |
}); |
vue.getLienPays().addClickHandler(new ClickHandler() { |
@Override |
public void onClick(ClickEvent arg0) { |
InformationsRecherche informationsRecherche = new InformationsRecherche(); |
if(CacheClient.getInstance().getListePaysInversee() != null) { |
informationsRecherche.setPays(CacheClient.getInstance().getListePaysInversee().get(vue.getPays().getText())); |
} else { |
informationsRecherche.setPays(vue.getPays().getText()); |
} |
setInfosRechercheEnCacheEtLancerEvenement(informationsRecherche); |
History.fireCurrentHistoryState(); |
} |
}); |
vue.getLienMotsClefs().addClickHandler(new ClickHandler() { |
@Override |
public void onClick(ClickEvent arg0) { |
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesVue.java |
---|
27,7 → 27,7 |
private static Binder binder = GWT.create(Binder.class); |
@UiField |
Label nomRetenu, famille, auteur, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu, station, referentiel; |
Label nomRetenu, famille, auteur, pays, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu, station, referentiel; |
@UiField |
Anchor courrielAuteur; |
111,11 → 111,19 |
return commentaire; |
} |
public HasText getPays() { |
return this.pays; |
} |
@Override |
public HasClickHandlers getLienNomRetenu() { |
return nomRetenu; |
} |
public HasClickHandlers getLienPays() { |
return this.pays; |
} |
public HasClickHandlers getLienFamille() { |
return this.famille; |
} |
191,6 → 199,7 |
nomCommun.addStyleName("labelLien"); |
commentaire.addStyleName("labelLien"); |
milieu.addStyleName("labelLien"); |
pays.addStyleName("labelLien"); |
} |
@Override |
/trunk/src/org/tela_botanica/del/client/modeles/Observation.java |
---|
10,7 → 10,7 |
private static final long serialVersionUID = 840032625524143547L; |
private String id, auteur, idAuteur, nomAuteur, prenomAuteur, courrielAuteur, nomRetenu, famille, localite, idLocalite, |
dateTransmission, numNomenclatural, nomCommun, lieuDit, |
milieu, commentaire, dateReleve, station, referentiel; |
milieu, commentaire, dateReleve, station, referentiel, pays; |
private List<String> motsClefs = new ArrayList<String>(); |
299,4 → 299,12 |
public void setNbCommentaires(String nbCommentaires) { |
this.nbCommentaires = nbCommentaires; |
} |
public String getPays() { |
return pays; |
} |
public void setPays(String pays) { |
this.pays = pays; |
} |
} |