BundleUtil.getString(Bundle.ENUMERATION, getLocale(), person.getIdDocumentType().getName()),
person.getDocumentIdNumber(), country, getCycleDescription(), degree.getFilteredName(year, getLocale())));
}
protected void setFooter() {
final UniversityUnit university = getUniversity(new DateTime());
final String institutionUnitName = getInstitutionName();
final Person presidentIst = university.getInstitutionsUniversityResponsible(FunctionType.PRESIDENT);
final Person rectorIst = university.getInstitutionsUniversityResponsible(FunctionType.PRINCIPAL);
String presidentGender;
if (presidentIst.isMale()) {
presidentGender = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.presidentMale");
addParameter("presidentName",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.presidentGrantMale") + " "
+ presidentIst.getName());
} else {
presidentGender = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.presidentFemale");
addParameter("presidentName",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.presidentGrantFemale") + " "
+ presidentIst.getName());
}
String rectorGender;
if (rectorIst.isMale()) {
rectorGender = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.rectorMale");
addParameter("rectorName",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.presidentGrantMale") + " "
+ rectorIst.getName());
} else {
rectorGender = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.rectorFemale");
addParameter("rectorName",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.registryDiploma.presidentGrantFemale") + " "
+ rectorIst.getName());
}
String universityName = university.getPartyName().getPreferedContent();
addParameter("dateParagraph", getFormatedCurrentDate(universityName));
addParameter("rector", rectorGender);
addParameter("president", MessageFormat.format(presidentGender, institutionUnitName));