Added names to list of people that a user may edit as on the user account control panel. NIHVIVO-262
This commit is contained in:
parent
a451740c85
commit
0103ac4713
2 changed files with 6 additions and 2 deletions
|
@ -97,10 +97,14 @@ public class UserEditController extends BaseEditController {
|
|||
List<ObjectPropertyStatement> mayEditAsStmts =
|
||||
new ArrayList<ObjectPropertyStatement>(mayEditAsUris.size());
|
||||
for(String objURI: mayEditAsUris){
|
||||
Individual editAs = getWebappDaoFactory().getIndividualDao().getIndividualByURI(objURI);
|
||||
if( editAs == null )
|
||||
continue;
|
||||
ObjectPropertyStatement stmt = new ObjectPropertyStatementImpl();
|
||||
stmt.setSubjectURI(u.getURI());
|
||||
stmt.setPropertyURI(VitroVocabulary.MAY_EDIT_AS);
|
||||
stmt.setObjectURI(objURI);
|
||||
stmt.setObject(editAs);
|
||||
mayEditAsStmts.add(stmt);
|
||||
}
|
||||
request.setAttribute("mayEditAsStmts", mayEditAsStmts);
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
<tr><td>User may edit as the following Individuals:</td></tr>
|
||||
<c:forEach items="${requestScope.mayEditAsStmts }" var="stmt">
|
||||
<tr>
|
||||
<td>${stmt.objectURI}</td>
|
||||
<td>${stmt.object.name}</td>
|
||||
<c:url var="deleteUrl" value="/edit/editRequestDispatch.jsp">
|
||||
<c:param name="subjectUri">${user.URI}</c:param>
|
||||
<c:param name="predicateUri">${requestScope.predicateUri}</c:param>
|
||||
|
|
Loading…
Add table
Reference in a new issue