%-- The contents of this file are subject to the license and copyright detailed in the LICENSE and NOTICE files at the root of the source tree and available online at http://www.dspace.org/license/ --%> <%-- - User profile editing form. - - This isn't a full page, just the fields for entering a user's profile. - - Attributes to pass in: - eperson - the EPerson to edit the profile for. Can be null, - in which case blank fields are displayed. --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="java.util.Locale"%> <%@ page import="org.dspace.core.I18nUtil" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.eperson.EPerson" %> <%@ page import="org.dspace.eperson.service.EPersonService" %> <%@ page import="org.dspace.eperson.factory.EPersonServiceFactory" %> <%@ page import="org.dspace.core.Utils" %> <% Locale[] supportedLocales = I18nUtil.getSupportedLocales(); EPerson epersonForm = (EPerson) request.getAttribute("eperson"); String lastName = ""; String firstName = ""; String phone = ""; String language = ""; if (epersonForm != null) { EPersonService epersonService = EPersonServiceFactory.getInstance().getEPersonService(); // Get non-null values lastName = epersonForm.getLastName(); if (lastName == null) lastName = ""; firstName = epersonForm.getFirstName(); if (firstName == null) firstName = ""; phone = epersonService.getMetadata(epersonForm, "phone"); if (phone == null) phone = ""; language = epersonService.getMetadata(epersonForm, "language"); if (language == null) language = ""; } %>