Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1393 → Rev 1409

/trunk/src/org/tela_botanica/del/client/modeles/Protocole.java
6,6 → 6,7
private String nom;
private String description;
private String tag;
private String motsClesProtocoles;
 
public int getId() {
return id;
38,5 → 39,13
public void setTag(String tag) {
this.tag = tag;
}
public void setMotsClesProtocole(String motsClesProtocole) {
this.motsClesProtocoles = motsClesProtocole;
}
public String getMotsClesProtocole() {
return motsClesProtocoles;
}
 
}
/trunk/src/org/tela_botanica/del/client/modeles/InformationsRecherche.java
172,7 → 172,6
public void setTriParDate(ModeTri triParDate) {
this.triParDate = triParDate;
}
 
public void setTriParNbTags(ModeTri triParTag) {
this.triParNbTag = triParTag;
180,16 → 179,16
 
public String versChaineRequete() {
String chaine = "";
chaine += estNonNull(rechercheLibre) ? "&masque=" + URL.encode(rechercheLibre) : "";
chaine += estNonNull(departement) ? "&masque.departement=" + URL.encode(departement) : "";
chaine += estNonNull(referentiel) ? "&masque.referentiel=" + URL.encode(referentiel) : "";
chaine += estNonNull(taxon) ? "&masque.ns=" + URL.encode(taxon) : "";
chaine += estNonNull(genre) ? "&masque.genre=" + URL.encode(genre) : "";
chaine += estNonNull(motClef) ? "&masque.tag=" + URL.encode(motClef) : "";
chaine += estNonNull(date) ? "&masque.date=" + URL.encode(date) : "";
chaine += estNonNull(commune) ? "&masque.commune=" + URL.encode(commune) : "";
chaine += estNonNull(famille) ? "&masque.famille=" + URL.encode(famille) : "";
chaine += estNonNull(auteur) ? "&masque.auteur=" + URL.encode(auteur) : "";
chaine += estNonNull(rechercheLibre) ? "&masque=" + URL.encodeQueryString(rechercheLibre) : "";
chaine += estNonNull(departement) ? "&masque.departement=" + URL.encodeQueryString(departement) : "";
chaine += estNonNull(referentiel) && !referentiel.equals("tous") ? "&masque.referentiel=" + URL.encodeQueryString(referentiel) : "";
chaine += estNonNull(taxon) ? "&masque.ns=" + URL.encodeQueryString(taxon) : "";
chaine += estNonNull(genre) ? "&masque.genre=" + URL.encodeQueryString(genre) : "";
chaine += estNonNull(motClef) ? "&masque.tag=" + URL.encodeQueryString(motClef) : "";
chaine += estNonNull(date) ? "&masque.date=" + URL.encodeQueryString(date) : "";
chaine += estNonNull(commune) ? "&masque.commune=" + URL.encodeQueryString(commune) : "";
chaine += estNonNull(famille) ? "&masque.famille=" + URL.encodeQueryString(famille) : "";
chaine += estNonNull(auteur) ? "&masque.auteur=" + URL.encodeQueryString(auteur) : "";
//TODO: réadapter les web services pour que ceux-ci prennent en compte un tri
chaine += triParDate != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";