| Line 142... |
Line 142... |
| 142 |
this.triParDate = triParDate;
|
142 |
this.triParDate = triParDate;
|
| 143 |
}
|
143 |
}
|
| Line 144... |
Line 144... |
| 144 |
|
144 |
|
| 145 |
public String versChaineRequete() {
|
145 |
public String versChaineRequete() {
|
| 146 |
String chaine = "";
|
146 |
String chaine = "";
|
| 147 |
chaine += estNonNull(rechercheLibre) ? "&recherche=" + URL.encode(rechercheLibre) : "";
|
147 |
chaine += estNonNull(rechercheLibre) ? "&masque=" + URL.encode(rechercheLibre) : "";
|
| 148 |
chaine += estNonNull(departement) ? "&dpt=" + URL.encode(departement) : "";
|
148 |
chaine += estNonNull(departement) ? "&masque.departement=" + URL.encode(departement) : "";
|
| 149 |
chaine += estNonNull(taxon) ? "&taxon=" + URL.encode(taxon) : "";
|
149 |
chaine += estNonNull(taxon) ? "&masque.ns=" + URL.encode(taxon) : "";
|
| 150 |
chaine += estNonNull(genre) ? "&genre=" + URL.encode(genre) : "";
|
150 |
chaine += estNonNull(genre) ? "&masque.genre=" + URL.encode(genre) : "";
|
| 151 |
chaine += estNonNull(motClef) ? "&mot_cle=" + URL.encode(motClef) : "";
|
151 |
chaine += estNonNull(motClef) ? "&masque.tag=" + URL.encode(motClef) : "";
|
| 152 |
chaine += estNonNull(date) ? "&date=" + URL.encode(date) : "";
|
152 |
chaine += estNonNull(date) ? "&masque.date=" + URL.encode(date) : "";
|
| 153 |
chaine += estNonNull(commune) ? "&commune=" + URL.encode(commune) : "";
|
153 |
chaine += estNonNull(commune) ? "&masque.commune=" + URL.encode(commune) : "";
|
| 154 |
chaine += estNonNull(famille) ? "&famille=" + URL.encode(famille) : "";
|
154 |
chaine += estNonNull(famille) ? "&masque.famille=" + URL.encode(famille) : "";
|
| - |
|
155 |
chaine += estNonNull(auteur) ? "&masque.auteur=" + URL.encode(auteur) : "";
|
| 155 |
chaine += estNonNull(tag) ? "&tag=" + URL.encode(tag) : "";
|
156 |
|
| 156 |
chaine += estNonNull(auteur) ? "&auteur=" + URL.encode(auteur) : "";
|
157 |
//TODO: réadapter les web services pour que ceux-ci prennent en compte un tri
|
| 157 |
chaine += triParDate != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
|
158 |
/*chaine += triParDate != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
|
| 158 |
chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&tri=nb_votes" : "";
|
159 |
chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&tri=nb_votes" : "";
|
| 159 |
chaine += triParDate != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDate : "";
|
160 |
chaine += triParDate != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDate : "";
|
| 160 |
chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbVotes : "";
|
161 |
chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbVotes : "";
|
| Line 161... |
Line 162... |
| 161 |
chaine += estNonNull(idProtocoleSelectionne) ? "&id_protocole=" + idProtocoleSelectionne : "";
|
162 |
chaine += estNonNull(idProtocoleSelectionne) ? "&id_protocole=" + idProtocoleSelectionne : "";*/
|
| 162 |
|
163 |
|
| Line 163... |
Line 164... |
| 163 |
return chaine;
|
164 |
return chaine;
|