Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 2139 → Rev 2140

/trunk/src/org/tela_botanica/del/client/cache/CacheClient.java
14,6 → 14,7
import org.tela_botanica.del.client.modeles.Protocole;
import org.tela_botanica.del.client.modeles.Utilisateur;
import org.tela_botanica.del.client.utils.URLUtils;
import org.tela_botanica.del.client.Del;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Document;
111,7 → 112,18
String protocole = Location.getParameter("protocole");
String statutParam = Location.getParameter("masque.type");
String paysParam = Location.getParameter("masque.pays");
 
String pnInscritsSeulement = Location.getParameter("masque.pninscritsseulement");
// filtrage par défaut
boolean pnInscritsSeulementBool = true;
if (pnInscritsSeulement != null) {
Del.LogVersFirebug("le paramètre n'était pas NULL; on le teste");
// un jour on aura "0" et ça annulera le paramètre par défaut
pnInscritsSeulementBool = pnInscritsSeulement.equals("1");
Del.LogVersFirebug("Il vaut : " + pnInscritsSeulementBool);
}
 
String page = Location.getParameter("page");
Integer pageInt = null;
try {
141,6 → 153,7
rechercheParArguments.setDate(date);
rechercheParArguments.setTag(tag);
rechercheParArguments.setPays(paysParam);
rechercheParArguments.setPnInscritsSeulement(pnInscritsSeulementBool);
if (protocole != null && !protocole.equals("")) {
CacheClient.getInstance().setIdProtocoleEnAttente(protocole);
232,11 → 245,11
}
}
}
 
public void setIdProtocoleEnAttente(String idProtocole) {
idProtocoleEnAttente = idProtocole;
}
 
public String getIdProtocoleEnAttente() {
return idProtocoleEnAttente;
}
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRecherche.css
93,6 → 93,14
left: 25px;
}
 
.casePnInscritsSeulement {
float: left;
}
 
.labelPnInscritsSeulement {
margin-top: 4px;
}
 
.zoneRecherche {
}
.zoneRss {
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.ui.xml
81,15 → 81,18
<g:TextBox ui:field="motCleCel" />
</g:HTMLPanel>
<g:HTMLPanel ui:field="conteneurMotCleDel" styleName="{style.champRecherche}">
<g:HTMLPanel ui:field="conteneurMotCleDel" styleName="{style.champRecherche}">
<g:Label text="{constants.tagDel}" styleName="petit"/>
<g:TextBox ui:field="motCleDel" />
</g:HTMLPanel>
</g:HTMLPanel>
</g:HTMLPanel>
 
<g:Button styleName="{style.boutonRecherche} {style.rechercherAvance}" ui:field="boutonRechercheAvancee" text="{constants.rechercher}"></g:Button>
<g:HTMLPanel styleName="nettoyage" />
 
<g:CheckBox ui:field="casePnInscritsSeulement" styleName="{style.casePnInscritsSeulement}"></g:CheckBox>
<g:Label text="{constants.pnInscritsSeulement}" ui:field="labelPnInscritsSeulement" styleName="{style.labelPnInscritsSeulement}" />
</g:HTMLPanel>
<g:HTMLPanel styleName="droite">
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRecherchePresenteur.java
56,6 → 56,8
 
public String getContientMots();
 
public boolean getPnInscritsSeulement();
 
public String getDepartement();
 
public HasWidgets getCommune();
78,6 → 80,8
 
public void setContientMots(String mots);
 
public void setPnInscritsSeulement(boolean valeur);
 
public void setValeurDepartement(String dpt);
 
public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche);
382,6 → 386,7
informationRecherche.setDate(vue.getDate());
informationRecherche.setReferentiel(vue.getReferentiel());
informationRecherche.setPays(vue.getPays());
informationRecherche.setPnInscritsSeulement(vue.getPnInscritsSeulement());
}
if(CacheClient.getInstance().getReferentielNonModifiable()) {
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.java
14,6 → 14,7
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
40,7 → 41,7
@UiField
Panel rechercheAvancee, taxon, commune, zoneRss, conteneurMotCle, conteneurMotCleCel, conteneurMotCleDel ;
@UiField
Label lienRechercheAvancee, recherchePrecedente;
Label lienRechercheAvancee, recherchePrecedente, labelPnInscritsSeulement;
@UiField
Button boutonRecherche, boutonRechercheAvancee, boutonFermer, boutonVider;
@UiField
47,6 → 48,8
TextBox recherchePrincipale, contientMots, departement, famille, genre, motCle, motCleCel, motCleDel, auteur, date;
@UiField
ListBox referentiel, pays;
@UiField
CheckBox casePnInscritsSeulement;
 
public MoteurRechercheVue(String labelRecherche) {
initWidget(uiBinder.createAndBindUi(this));
134,6 → 137,14
public void setContientMots(String mots) {
contientMots.setText(mots);
}
 
public boolean getPnInscritsSeulement() {
return casePnInscritsSeulement.getValue();
}
 
public void setPnInscritsSeulement(boolean valeur) {
casePnInscritsSeulement.setValue(valeur);
}
public String getPays() {
return pays.getValue(pays.getSelectedIndex());
209,6 → 220,7
motCleDel.setText(informationsRecherche.getMotClefDel());
auteur.setText(informationsRecherche.getAuteur());
date.setText(informationsRecherche.getDate());
casePnInscritsSeulement.setValue(informationsRecherche.getPnInscritsSeulement());
for(int i = 0; i < referentiel.getItemCount(); i++) {
if(referentiel.getValue(i).equals(informationsRecherche.getReferentiel())) {
286,6 → 298,9
if (informationRecherche.getReferentiel() != null && !informationRecherche.getReferentiel().equals("")) {
texteRecherchePrecedente.append(I18n.getVocabulary().referentiel() + ":" + informationRecherche.getReferentiel() + " ");
}
if (informationRecherche.getPnInscritsSeulement()) {
texteRecherchePrecedente.append(I18n.getVocabulary().pnISCourt() + ":non");
}
recherchePrecedente.setText(texteRecherchePrecedente.toString());
}
/trunk/src/org/tela_botanica/del/client/modeles/InformationsRecherche.java
1,6 → 1,7
package org.tela_botanica.del.client.modeles;
 
import org.tela_botanica.del.client.config.Config;
import org.tela_botanica.del.client.Del;
 
import com.google.gwt.http.client.URL;
import com.google.gwt.user.client.Window;
32,6 → 33,8
 
private String commune;
 
private boolean pnInscritsSeulement;
 
private String famille;
 
private String tag;
127,6 → 130,14
public String getPays() {
return pays;
}
 
public boolean getPnInscritsSeulement() {
return pnInscritsSeulement;
}
 
public void setPnInscritsSeulement(boolean pnInscritsSeulement) {
this.pnInscritsSeulement = pnInscritsSeulement;
}
public String getCommune() {
return commune;
246,7 → 257,9
chaine += estNonNull(famille) ? "&masque.famille=" + URL.encodeQueryString(famille) : "";
chaine += estNonNull(auteur) ? "&masque.auteur=" + URL.encodeQueryString(auteur) : "";
chaine += estNonNull(pays) ? "&masque.pays=" + URL.encodeQueryString(pays) : "";
Del.LogVersFirebug("Avant de composer l'URL, pninscritsseulement vaut : " + pnInscritsSeulement);
chaine += "&masque.pninscritsseulement=" + (pnInscritsSeulement ? URL.encodeQueryString("1") : URL.encodeQueryString("0"));
 
String urlCourante = Window.Location.getHref();
Config config = new Config();
String urlAppliImg = config.getUrl("pictoflora");
262,12 → 275,12
chaine += triParNbCommentaires != ModeTri.PAS_DE_TRI ? "&tri=nb_commentaires" : "";
chaine += triParNbCommentaires != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbCommentaires : "";
}
 
chaine += triParDateObservation != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
chaine += triParDateObservation != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDateObservation : "";
chaine += triParDatePublication != ModeTri.PAS_DE_TRI ? "&tri=date_transmission" : "";
chaine += triParDatePublication != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDatePublication : "";
 
return chaine;
}
 
/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.properties
230,6 → 230,8
pays = Pays
commune = Commune
famille = Famille (Latin)
pnInscritsSeulement = Masquer les observations smartphone anonymes
pnISCourt = Obs mobiles anonymes
tag = Tag
tagDel = Tag pictoflora
tagCel = Tag cel
/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.java
394,6 → 394,24
String departement();
 
/**
* Translated "Masquer les observations smartphone anonymes".
*
* @return translated "Masquer les observations smartphone anonymes"
*/
@DefaultStringValue("Masquer les observations smartphone anonymes")
@Key("pnInscritsSeulement")
String pnInscritsSeulement();
 
/**
* Translated "Obs mobiles anonymes".
*
* @return translated "Obs mobiles anonymes"
*/
@DefaultStringValue("Obs mobiles anonymes")
@Key("pnISCourt")
String pnISCourt();
 
/**
* Translated "Détermination la plus probable : ".
*
* @return translated "Détermination la plus probable : "