4,6 → 4,8 |
import java.util.ArrayList; |
import java.util.List; |
|
import com.google.gwt.user.client.Window; |
|
public class Observation implements Serializable { |
|
private static final long serialVersionUID = 840032625524143547L; |
86,7 → 88,11 |
|
public String getLocaliteAvecIdFormatee() { |
String localiteFormatee = this.localite; |
if (idLocalite != null && idLocalite.length() >= 2) { |
if (idLocalite != null && idLocalite.length() >= 5 && idLocalite.substring(0, 5).equals("INSEE")) { |
String[] tableaulocalite = idLocalite.split(":"); |
String idLocaliteFormatee = (tableaulocalite.length == 2) ? tableaulocalite[1] : localiteFormatee; |
localiteFormatee += " (" + idLocaliteFormatee + ")"; |
} else if (idLocalite != null && idLocalite.length() >= 2) { |
localiteFormatee += " (" + idLocalite.substring(0, 2) + ")"; |
} |
|