Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1367 → Rev 1393

/trunk/src/org/tela_botanica/del/client/modeles/Observation.java
261,11 → 261,29
}
public String getReferentiel() {
return referentiel;
String refFmt = "";
// on ne renvoie que le code du référentiel, sans version, et seulement également si l'on possède
// un numéro nomenclatural associé (ce qui nous assure une certaine cohérence)
if(referentiel.length() >= 5 && numNomenclatural != null && !numNomenclatural.equals("0")) {
refFmt = referentiel.substring(0, 5);
}
return refFmt;
}
public void setReferentiel(String referentiel) {
this.referentiel = referentiel;
}
public String getNomRetenuFormateReferentiel() {
String nomRetenuFmt = "";
if(nomRetenu != null && !nomRetenu.equals("")) {
nomRetenuFmt += nomRetenu;
}
String referentiel = getReferentiel();
if(!nomRetenuFmt.equals("") && !referentiel.equals("")) {
nomRetenuFmt += " ("+referentiel+")";
}
return nomRetenuFmt;
}
 
}