for (String error : errorString.split(","))
errors.add(error);
}
// Grab the person in question
EPerson eperson = EPerson.find(context, epersonID);
if (eperson == null)
throw new UIException("Unable to find eperson for id:"+epersonID);
String emailValue = eperson.getEmail();
String firstValue = eperson.getFirstName();
String lastValue = eperson.getLastName();
String phoneValue = eperson.getMetadata("phone");
boolean canLogInValue = eperson.canLogIn();
boolean certificatValue = eperson.getRequireCertificate();
Vector<String> deleteConstraints = eperson.getDeleteConstraints();
if (request.getParameter("email_address") != null)
emailValue = request.getParameter("email_address");
if (request.getParameter("first_name") != null)
firstValue = request.getParameter("first_name");
if (request.getParameter("last_name") != null)
lastValue = request.getParameter("last_name");
if (request.getParameter("phone") != null)
phoneValue = request.getParameter("phone");
// DIVISION: eperson-edit
Division edit = body.addInteractiveDivision("eperson-edit",contextPath+"/admin/epeople",Division.METHOD_POST,"primary administrative eperson");
edit.setHead(T_head1);
if (errors.contains("eperson_email_key")) {
Para problem = edit.addPara();
problem.addHighlight("bold").addContent(T_email_taken);
}
List identity = edit.addList("form",List.TYPE_FORM);
identity.setHead(T_head2.parameterize(eperson.getFullName()));
if (admin)
{
Text email = identity.addItem().addText("email_address");
email.setRequired();