diff --git a/productMods/edit/forms/addGrantRoleToPerson.jsp b/productMods/edit/forms/addGrantRoleToPerson.jsp index 171e1bed..d6bac5fa 100644 --- a/productMods/edit/forms/addGrantRoleToPerson.jsp +++ b/productMods/edit/forms/addGrantRoleToPerson.jsp @@ -263,14 +263,14 @@ PREFIX core: <${vivoCore}> List customJs = new ArrayList(Arrays.asList(JavaScript.JQUERY_UI.path(), JavaScript.CUSTOM_FORM_UTILS.path(), "/js/browserUtils.js", - "/edit/forms/js/customFormWithAdvanceTypeSelection.js" + "/edit/forms/js/customFormWithAutocomplete.js" )); request.setAttribute("customJs", customJs); List customCss = new ArrayList(Arrays.asList(Css.JQUERY_UI.path(), Css.CUSTOM_FORM.path(), "/edit/forms/css/autocomplete.css", - "/edit/forms/css/customFormWithAdvanceTypeSelection.css" + "/edit/forms/css/customFormWithAutocomplete.css" )); request.setAttribute("customCss", customCss); %> diff --git a/productMods/edit/forms/addPublicationToPerson.jsp b/productMods/edit/forms/addPublicationToPerson.jsp index 427f0fc6..467b500c 100644 --- a/productMods/edit/forms/addPublicationToPerson.jsp +++ b/productMods/edit/forms/addPublicationToPerson.jsp @@ -211,14 +211,14 @@ SPARQL queries for existing values. --%> List customJs = new ArrayList(Arrays.asList(JavaScript.JQUERY_UI.path(), JavaScript.CUSTOM_FORM_UTILS.path(), "/js/browserUtils.js", - "/edit/forms/js/customFormWithAdvanceTypeSelection.js" + "/edit/forms/js/customFormWithAutocomplete.js" )); request.setAttribute("customJs", customJs); List customCss = new ArrayList(Arrays.asList(Css.JQUERY_UI.path(), Css.CUSTOM_FORM.path(), "/edit/forms/css/autocomplete.css", - "/edit/forms/css/customFormWithAdvanceTypeSelection.css" + "/edit/forms/css/customFormWithAutocomplete.css" )); request.setAttribute("customCss", customCss); %> diff --git a/productMods/edit/forms/addRoleToPersonTwoStage.jsp b/productMods/edit/forms/addRoleToPersonTwoStage.jsp index c6548a1c..d786b0fb 100644 --- a/productMods/edit/forms/addRoleToPersonTwoStage.jsp +++ b/productMods/edit/forms/addRoleToPersonTwoStage.jsp @@ -151,16 +151,6 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. <%= (mode == 1 || mode == 3) ?"\"nonempty\"," : "" %> <%= (mode == 1 || mode == 3) ?"\"nonempty\"" : "" %> -<%-- - - - - - - - - ---%> ${vivoCore}year @@ -168,12 +158,12 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. - ?role <${startYearPredicate}> ?startYear . + ?role <${startYearPredicate}> ?startYear . - ?role <${endYearPredicate}> ?endYear . + ?role <${endYearPredicate}> ?endYear . @@ -359,30 +349,30 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. List customJs = new ArrayList(Arrays.asList(JavaScript.JQUERY_UI.path(), JavaScript.CUSTOM_FORM_UTILS.path(), - "/edit/forms/js/customFormWithAdvanceTypeSelection.js" + "/edit/forms/js/customFormWithAutocomplete.js" )); request.setAttribute("customJs", customJs); List customCss = new ArrayList(Arrays.asList(Css.JQUERY_UI.path(), Css.CUSTOM_FORM.path(), "/edit/forms/css/autocomplete.css", - "/edit/forms/css/customFormWithAdvanceTypeSelection.css" + "/edit/forms/css/customFormWithAutocomplete.css" )); request.setAttribute("customCss", customCss); %> - + <%-- Includes edit AND repair mode --%> "> - + ${editMode == "repair" ? "" : "disabled" } - + @@ -396,7 +386,7 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. multiple ${param.roleActivityTypeLabel} individuals. <% }else{ %> -

${titleText} ${roleActivityTypeLabel} entry for <%= subjectName %>

+

${titleVerb} ${roleActivityTypeLabel} entry for <%= subjectName %>

<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE IN THIS FORM WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
" > @@ -416,7 +406,7 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
<%-- RY maybe make this a label and input field. See what looks best. --%>

(Verify this match)

- +

@@ -440,11 +430,9 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
- + + diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java deleted file mode 100644 index 6d41b3bb..00000000 --- a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java +++ /dev/null @@ -1,51 +0,0 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ - -package edu.cornell.mannlib.vitro.webapp.edit.n3editing; - -import java.util.HashMap; -import java.util.Map; - -import com.hp.hpl.jena.rdf.model.Literal; - -public class PersonHasPositionValidator implements N3Validator { - - private static String DUPLICATE_ERROR = "Must select an existing organization or create a new one, not both."; - private static String MISSING_ORG_ERROR = "Must either select an existing organization or create a new one."; - private static String MISSING_ORG_TYPE_ERROR = "Must select a type for the new organization."; - private static String MISSING_ORG_NAME_ERROR = "Must specify a name for the new organization."; - - public Map validate(EditConfiguration editConfig, EditSubmission editSub){ -// Map existingUris = editConfig.getUrisInScope(); -// Map existingLiterals = editConfig.getLiteralsInScope(); - Map urisFromForm = editSub.getUrisFromForm(); - Map literalsFromForm = editSub.getLiteralsFromForm(); - - Literal newOrgName = literalsFromForm.get("newOrgName"); - if( newOrgName.getLexicalForm() != null && "".equals(newOrgName.getLexicalForm()) ) - newOrgName = null; - String newOrgType = urisFromForm.get("newOrgType"); - if( "".equals(newOrgType ) ) - newOrgType = null; - String organizationUri = urisFromForm.get("organizationUri"); - if( "".equals(organizationUri)) - organizationUri = null; - - Map errors = new HashMap(); - if( organizationUri != null && (newOrgName != null || newOrgType != null) ){ - errors.put("newOrgName", DUPLICATE_ERROR); - errors.put("organizationUri", DUPLICATE_ERROR); - } else if ( organizationUri == null && newOrgName == null && newOrgType == null) { - errors.put("newOrgName", MISSING_ORG_ERROR); - errors.put("organizationUri", MISSING_ORG_ERROR); - }else if( organizationUri == null && newOrgName != null && newOrgType == null) { - errors.put("newOrgType", MISSING_ORG_TYPE_ERROR); - }else if( organizationUri == null && newOrgName == null && newOrgType != null) { - errors.put("newOrgName", MISSING_ORG_NAME_ERROR); - } - - if( errors.size() != 0 ) - return errors; - else - return null; - } -} \ No newline at end of file