Subversion Repositories eFlore/Applications.del

Rev

Rev 2095 | Rev 2139 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2095 Rev 2138
Line 30... Line 30...
30
	
30
	
Line 31... Line 31...
31
	private String pays;
31
	private String pays;
Line -... Line 32...
-
 
32
 
-
 
33
	private String commune;
32
 
34
 
Line 33... Line 35...
33
	private String commune;
35
	private boolean pnInscritsSeulement;
Line 34... Line 36...
34
 
36
 
Line 125... Line 127...
125
	}
127
	}
Line 126... Line 128...
126
 
128
 
127
	public String getPays() {
129
	public String getPays() {
128
		return pays;
130
		return pays;
-
 
131
	}
-
 
132
 
-
 
133
	public boolean getPnInscritsSeulement() {
-
 
134
		return pnInscritsSeulement;
-
 
135
	}
-
 
136
 
-
 
137
	public void setPnInscritsSeulement(boolean pnInscritsSeulement) {
-
 
138
		this.pnInscritsSeulement = pnInscritsSeulement;
Line 129... Line 139...
129
	}
139
	}
130
	
140
	
131
	public String getCommune() {
141
	public String getCommune() {
Line 244... Line 254...
244
		chaine += estNonNull(date) ? "&masque.date=" + URL.encodeQueryString(date) : "";
254
		chaine += estNonNull(date) ? "&masque.date=" + URL.encodeQueryString(date) : "";
245
		chaine += estNonNull(commune) ? "&masque.commune=" + URL.encodeQueryString(commune) : "";
255
		chaine += estNonNull(commune) ? "&masque.commune=" + URL.encodeQueryString(commune) : "";
246
		chaine += estNonNull(famille) ? "&masque.famille=" + URL.encodeQueryString(famille) : "";
256
		chaine += estNonNull(famille) ? "&masque.famille=" + URL.encodeQueryString(famille) : "";
247
		chaine += estNonNull(auteur) ? "&masque.auteur=" + URL.encodeQueryString(auteur) : "";
257
		chaine += estNonNull(auteur) ? "&masque.auteur=" + URL.encodeQueryString(auteur) : "";
248
		chaine += estNonNull(pays) ? "&masque.pays=" + URL.encodeQueryString(pays) : "";
258
		chaine += estNonNull(pays) ? "&masque.pays=" + URL.encodeQueryString(pays) : "";
-
 
259
		chaine += pnInscritsSeulement ? "&masque.pninscritsseulement=" + URL.encodeQueryString("1") : "";
249
		
260
 
250
		String urlCourante = Window.Location.getHref();
261
		String urlCourante = Window.Location.getHref();
251
		Config config = new Config();
262
		Config config = new Config();
252
		String urlAppliImg = config.getUrl("pictoflora");
263
		String urlAppliImg = config.getUrl("pictoflora");
253
		if (urlCourante.contains(urlAppliImg)) {
264
		if (urlCourante.contains(urlAppliImg)) {
254
			chaine += triParMoyenneArithmetique != ModeTri.PAS_DE_TRI ? "&tri=moyenne-arithmetique" : "";
265
			chaine += triParMoyenneArithmetique != ModeTri.PAS_DE_TRI ? "&tri=moyenne-arithmetique" : "";
Line 260... Line 271...
260
			chaine += estNonNull(idProtocoleSelectionne) ? "&protocole=" + idProtocoleSelectionne : "";			
271
			chaine += estNonNull(idProtocoleSelectionne) ? "&protocole=" + idProtocoleSelectionne : "";			
261
		} else {
272
		} else {
262
			chaine += triParNbCommentaires != ModeTri.PAS_DE_TRI ? "&tri=nb_commentaires" : "";
273
			chaine += triParNbCommentaires != ModeTri.PAS_DE_TRI ? "&tri=nb_commentaires" : "";
263
			chaine += triParNbCommentaires != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbCommentaires : "";
274
			chaine += triParNbCommentaires != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbCommentaires : "";
264
		}
275
		}
265
		
276
 
266
		chaine += triParDateObservation != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
277
		chaine += triParDateObservation != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
267
		chaine += triParDateObservation != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDateObservation : "";
278
		chaine += triParDateObservation != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDateObservation : "";
268
		chaine += triParDatePublication != ModeTri.PAS_DE_TRI ? "&tri=date_transmission" : "";
279
		chaine += triParDatePublication != ModeTri.PAS_DE_TRI ? "&tri=date_transmission" : "";
269
		chaine += triParDatePublication != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDatePublication : "";
280
		chaine += triParDatePublication != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDatePublication : "";
270
		
281
 
271
		return chaine;
282
		return chaine;
272
	}
283
	}
Line 273... Line 284...
273
 
284
 
274
	private boolean estNonNull(String critere) {
285
	private boolean estNonNull(String critere) {