%@page language="java"%> <%@page contentType="text/html; charset=UTF-8" %> <%@page import="org.dataone.service.types.v1.SubjectInfo"%> <%@page import="org.dataone.client.v1.itk.D1Client"%> <%@page import="org.dataone.service.types.v1.Subject"%> <%@page import="org.dataone.service.types.v1.Person"%> <% // it will be a subject String subjectParam = request.getParameter("subject"); Subject subject = new Subject(); subject.setValue(subjectParam); // look up the subject info SubjectInfo subjectInfo = null; try { subjectInfo = D1Client.getCN().getSubjectInfo(null, subject); } catch (Exception e) { // ignore for now -- happens when there is no account %> Not Found <% return; } if (subjectInfo != null && subjectInfo.getPersonList() != null) { Person person = subjectInfo.getPerson(0); %>
Given Name | "> |
Family Name | "> |
"> |