Skip to content

Commit

Permalink
🔧 chore(Institutions): Create composed name type property
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjitm committed Feb 7, 2025
1 parent a7587e3 commit e2b1f5b
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<CrpPpaPartner> getCrpPpaPartners() {
return crpPpaPartners;
}
Expand Down

0 comments on commit e2b1f5b

Please sign in to comment.