diff --git a/marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/model/Institution.java b/marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/model/Institution.java index aa0f9b6ac4..3b36a3145a 100644 --- a/marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/model/Institution.java +++ b/marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/model/Institution.java @@ -153,6 +153,25 @@ public String getComposedNameLoc() { return this.getName(); } + public String getComposedNameType() { + if (this.getAcronym() != null) { + if (this.getAcronym().length() != 0) { + try { + String type = ""; + if (this.getInstitutionType() != null && this.getInstitutionType().getName() != null) { + type = " (" + this.getInstitutionType().getName() + ")"; + } + return this.getAcronym() + " - " + this.getName() + type; + } catch (Exception e) { + return this.getName(); + } + + } + } + return this.getName(); + + } + public Set getCrpPpaPartners() { return crpPpaPartners; }