{
id = Integer.parseInt(id_s);
}
ResearcherPage researcher = applicationService.get(
ResearcherPage.class, id);
MailDTO dto = new MailDTO();
dto.setSubmitter(researcher.getId());
dto.setRp(ResearcherPageUtils.getPersistentIdentifier(researcher));
Locale supportedLocale = request.getLocale();
ResourceBundle labels = ResourceBundle.getBundle("Messages",
supportedLocale);
switch (mode)
{
case MODE_BIBLIOMETRIC:
dto.setTemplate(TEMPLATE_BIBLIOMETRIC);
dto.setSubject(labels
.getString("subject.mail.hku.request-changes.two"));
break;
case MODE_ITEMS:
dto.setTemplate(TEMPLATE_ITEMS);
dto.setSubject(labels
.getString("subject.mail.hku.request-changes.three"));
break;
default:
dto.setTemplate(TEMPLATE_MEDIA);
dto.setSubject(labels
.getString("subject.mail.hku.request-changes.one"));
break;
}
return dto;
}