From b931993a5e57a15b5ab9cd61c39509d5c88c1d16 Mon Sep 17 00:00:00 2001 From: nac26 Date: Mon, 5 Apr 2010 13:37:10 +0000 Subject: [PATCH] NIHVIVO-121 Tweaked text and overall experience of associating user accounts to individuals. Specifically, limited # of individuals that can be associated (max = 1) and also limited class of individuals available in select list (Person) --- webapp/web/edit/forms/admin/mayEditAs.jsp | 12 ++-- .../web/templates/edit/specific/user_edit.jsp | 55 ++++++++++--------- 2 files changed, 35 insertions(+), 32 deletions(-) diff --git a/webapp/web/edit/forms/admin/mayEditAs.jsp b/webapp/web/edit/forms/admin/mayEditAs.jsp index b82aa17d9..99e019812 100644 --- a/webapp/web/edit/forms/admin/mayEditAs.jsp +++ b/webapp/web/edit/forms/admin/mayEditAs.jsp @@ -17,7 +17,7 @@ <%@ taglib prefix="v" uri="http://vitro.mannlib.cornell.edu/vitro/tags" %> <%! public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.edit.forms.admin.mayEditAs.jsp"); - public static String RANGE_CLASS = "http://xmlns.com/foaf/0.1/Agent"; + public static String RANGE_CLASS = "http://xmlns.com/foaf/0.1/Person"; public static String PREDICATE = VitroVocabulary.MAY_EDIT_AS; %> <% @@ -97,12 +97,12 @@ }); if( request.getAttribute("object") != null ){//this block is for an edit of an existing object property statement editConfig.prepareForObjPropUpdate( model ); - formTitle = "Change person that user may edit as"; - submitLabel = "save change"; + formTitle = "Change person associated with this user account"; + submitLabel = "Save Change"; } else { editConfig.prepareForNonUpdate( model ); - formTitle = "Add person that user may edit as"; - submitLabel = "add edit right"; + formTitle = "Select person to associate with this user account"; + submitLabel = "Create Association"; } %> @@ -115,7 +115,7 @@
" method="post"> - + diff --git a/webapp/web/templates/edit/specific/user_edit.jsp b/webapp/web/templates/edit/specific/user_edit.jsp index e2f64c503..5e1b4f279 100644 --- a/webapp/web/templates/edit/specific/user_edit.jsp +++ b/webapp/web/templates/edit/specific/user_edit.jsp @@ -47,41 +47,44 @@ +

Associate user account with a person

- - - - - - + - + + ${user.URI} + ${stmt.propertyURI} + ${stmt.objectURI} + admin/mayEditAs.jsp + + + + - + - - ${user.URI} - ${stmt.propertyURI} - ${stmt.objectURI} - admin/mayEditAs.jsp - - - - + ${associatedIndividual} -- Change or Remove Association + + + + - + + + + + +
- Add new individual that user may edit as - - ${user.URI} - admin/mayEditAs.jsp - - add -
User may edit as the following Individuals:
- ${stmt.objectURI} ${stmt.object.name}delete
Note: This association allows the user to edit this person and be redirected to the person's profile when logging in.This association will result in the user being redirected to the person's profile when logging in.
There are no Individuals in the system that the user may edit as.
+ + ${user.URI} + admin/mayEditAs.jsp + + This user account is not associated with a person -- Select a person +
Note: Until an association is made, the self editor has no permissions to edit. Associating this user account to a person allows the user to edit this person and be redirected to the person's profile when logging in.Associating this user account to a person will result in the user being redirected to the person's profile when logging in.