Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2162 → Rev 2163

/branches/v2.1-emondoir/src/org/tela_botanica/client/modeles/objets/Observation.java
319,8 → 319,13
 
public String getCodeCourtReferentielTaxo() {
String codeRef = "";
if(!getReferentielTaxo().equals("") && getReferentielTaxo().length() >= 5) {
codeRef = referentielTaxo.substring(0, 5);
if(!getReferentielTaxo().equals("") && getReferentielTaxo().length() >= 3) {
int positionDeuxPoints = referentielTaxo.indexOf(':');
if (positionDeuxPoints == -1) {
codeRef = referentielTaxo;
} else {
codeRef = referentielTaxo.substring(0, positionDeuxPoints);
}
}
return codeRef;
}