2010-03-02 20:56:03 +00:00
|
|
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
|
2010-03-26 21:58:00 +00:00
|
|
|
<%@ page import="java.util.List" %>
|
|
|
|
<%@ page import="java.util.ArrayList" %>
|
|
|
|
<%@ page import="java.util.Arrays" %>
|
|
|
|
|
2010-01-29 22:12:41 +00:00
|
|
|
<%@ page import="com.hp.hpl.jena.rdf.model.Literal"%>
|
|
|
|
<%@ page import="com.hp.hpl.jena.rdf.model.Model"%>
|
2010-03-26 20:19:17 +00:00
|
|
|
<%@ page import="com.hp.hpl.jena.vocabulary.XSD" %>
|
|
|
|
|
2010-01-29 22:12:41 +00:00
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual"%>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary"%>
|
2010-03-26 20:19:17 +00:00
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.EditConfiguration"%>
|
2010-01-29 22:12:41 +00:00
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory"%>
|
2010-03-26 20:19:17 +00:00
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.MiscWebUtils"%>
|
2010-01-29 22:12:41 +00:00
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
<%@ page import="org.apache.commons.logging.Log" %>
|
|
|
|
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
|
|
|
|
2010-01-29 22:12:41 +00:00
|
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
|
|
|
|
<%@ taglib prefix="v" uri="http://vitro.mannlib.cornell.edu/vitro/tags" %>
|
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
<%!
|
|
|
|
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.edit.forms.personHasPositionHistory.jsp");
|
|
|
|
%>
|
2010-01-29 22:12:41 +00:00
|
|
|
<%
|
2010-03-26 22:33:55 +00:00
|
|
|
VitroRequest vreq = new VitroRequest(request);
|
|
|
|
WebappDaoFactory wdf = vreq.getWebappDaoFactory();
|
|
|
|
vreq.setAttribute("defaultNamespace", wdf.getDefaultNamespace());
|
|
|
|
|
2010-01-29 22:12:41 +00:00
|
|
|
String flagURI = null;
|
|
|
|
if (vreq.getAppBean().isFlag1Active()) {
|
|
|
|
flagURI = VitroVocabulary.vitroURI+"Flag1Value"+vreq.getPortal().getPortalId()+"Thing";
|
|
|
|
} else {
|
|
|
|
flagURI = wdf.getVClassDao().getTopConcept().getURI(); // fall back to owl:Thing if not portal filtering
|
|
|
|
}
|
|
|
|
vreq.setAttribute("flagURI",flagURI);
|
2010-03-26 20:19:17 +00:00
|
|
|
|
|
|
|
request.setAttribute("stringDatatypeUriJson", MiscWebUtils.escape(XSD.xstring.toString()));
|
|
|
|
request.setAttribute("gYearDatatypeUriJson", MiscWebUtils.escape(XSD.gYear.toString()));
|
2010-01-29 22:12:41 +00:00
|
|
|
%>
|
|
|
|
|
2010-03-29 17:14:24 +00:00
|
|
|
<c:set var="vivoCore" value="http://vivoweb.org/ontology/core#" />
|
2010-03-26 20:19:17 +00:00
|
|
|
<c:set var="rdf" value="<%= VitroVocabulary.RDF %>" />
|
2010-03-29 15:41:45 +00:00
|
|
|
<c:set var="rdfs" value="<%= VitroVocabulary.RDFS %>" />
|
|
|
|
<c:set var="label" value="${rdfs}label" />
|
|
|
|
<c:set var="type" value="${rdf}type" />
|
2010-03-29 17:14:24 +00:00
|
|
|
<c:set var="positionClass" value="${vivoCore}Position" />
|
|
|
|
<c:set var="orgClass" value="http://xmlns.com/foaf/0.1/Organization" />
|
2010-01-29 22:12:41 +00:00
|
|
|
|
|
|
|
<%-- Then enter a SPARQL query for each field, by convention concatenating the field id with "Existing"
|
|
|
|
to convey that the expression is used to retrieve any existing value for the field in an existing individual.
|
|
|
|
Each of these must then be referenced in the sparqlForExistingLiterals section of the JSON block below
|
|
|
|
and in the literalsOnForm --%>
|
2010-03-29 17:14:24 +00:00
|
|
|
<c:set var="titlePred" value="${vivoCore}titleOrRole" />
|
2010-03-29 15:41:45 +00:00
|
|
|
<v:jsonset var="titleExisting" >
|
2010-03-26 22:33:55 +00:00
|
|
|
SELECT ?titleExisting WHERE {
|
|
|
|
?positionUri <${titlePred}> ?titleExisting }
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
|
|
|
|
<%-- Pair the "existing" query with the skeleton of what will be asserted for a new statement involving this field.
|
|
|
|
The actual assertion inserted in the model will be created via string substitution into the ? variables.
|
|
|
|
NOTE the pattern of punctuation (a period after the prefix URI and after the ?field) --%>
|
|
|
|
<v:jsonset var="titleAssertion" >
|
2010-03-26 22:33:55 +00:00
|
|
|
?positionUri <${titlePred}> ?title .
|
2010-03-29 15:41:45 +00:00
|
|
|
?positionUri <${label}> ?title.
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
|
2010-03-29 17:14:24 +00:00
|
|
|
<c:set var="startYearPred" value="${vivoCore}startYear" />
|
2010-01-29 22:12:41 +00:00
|
|
|
<v:jsonset var="startYearExisting" >
|
|
|
|
SELECT ?startYearExisting WHERE {
|
2010-03-26 22:33:55 +00:00
|
|
|
?positionUri <${startYearPred}> ?startYearExisting }
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
<v:jsonset var="startYearAssertion" >
|
2010-03-26 20:19:17 +00:00
|
|
|
?positionUri <${startYearPred}> ?startYear .
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
|
2010-03-29 17:14:24 +00:00
|
|
|
<c:set var="endYearPred" value="${vivoCore}endYear" />
|
2010-01-29 22:12:41 +00:00
|
|
|
<v:jsonset var="endYearExisting" >
|
|
|
|
SELECT ?endYearExisting WHERE {
|
2010-03-26 22:33:55 +00:00
|
|
|
?positionUri <${endYearPred}> ?endYearExisting }
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
<v:jsonset var="endYearAssertion" >
|
2010-03-26 20:19:17 +00:00
|
|
|
?positionUri <${endYearPred}> ?endYear .
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
|
|
|
|
<%-- Note there is really no difference in how things are set up for an object property except
|
|
|
|
below in the n3ForEdit section, in whether the ..Existing variable goes in SparqlForExistingLiterals
|
|
|
|
or in the SparqlForExistingUris, as well as perhaps in how the options are prepared --%>
|
2010-03-29 17:14:24 +00:00
|
|
|
<c:set var="positionInOrgPred" value="${vivoCore}positionInOrganization" />
|
|
|
|
<c:set var="orgForPositionPred" value="${vivoCore}organizationForPosition" />
|
2010-01-29 22:12:41 +00:00
|
|
|
<v:jsonset var="organizationUriExisting" >
|
2010-03-26 22:33:55 +00:00
|
|
|
SELECT ?existingOrgUri WHERE {
|
|
|
|
?positionUri <${positionInOrgPred}> ?existingOrgUri }
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
<v:jsonset var="organizationUriAssertion" >
|
2010-03-26 22:33:55 +00:00
|
|
|
?positionUri <${positionInOrgPred}> ?organizationUri .
|
2010-03-29 15:41:45 +00:00
|
|
|
?organizationUri <${orgForPositionPred}> ?positionUri .
|
|
|
|
</v:jsonset>
|
|
|
|
|
2010-03-29 18:12:22 +00:00
|
|
|
<v:jsonset var="positionTypeExisting">
|
|
|
|
SELECT ?existingPositionType WHERE {
|
|
|
|
?positionUri <${type}> ?existingPositionType }
|
|
|
|
</v:jsonset>
|
|
|
|
<v:jsonset var="positionTypeAssertion">
|
|
|
|
?positionUri <${type}> ?positionType .
|
|
|
|
</v:jsonset>
|
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
<v:jsonset var="newOrgNameAssertion">
|
|
|
|
?newOrg <${label}> ?newOrgName .
|
|
|
|
</v:jsonset>
|
|
|
|
|
|
|
|
<v:jsonset var="newOrgTypeAssertion">
|
|
|
|
?newOrg <${type}> ?newOrgType .
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
<v:jsonset var="n3ForStmtToPerson">
|
2010-03-29 17:14:24 +00:00
|
|
|
@prefix core: <${vivoCore}> .
|
2010-01-29 22:12:41 +00:00
|
|
|
|
|
|
|
?person core:personInPosition ?positionUri .
|
|
|
|
?positionUri core:positionForPerson ?person .
|
2010-03-29 17:14:24 +00:00
|
|
|
?positionUri <${type}> ?positionType .
|
2010-03-29 15:41:45 +00:00
|
|
|
?positionUri <${type}> <${flagURI}> .
|
|
|
|
</v:jsonset>
|
|
|
|
|
|
|
|
<v:jsonset var="n3ForNewOrg">
|
|
|
|
?newOrg <${label}> ?newOrgName .
|
|
|
|
?newOrg <${type}> ?newOrgType .
|
|
|
|
?positionUri <${positionInOrgPred}> ?newOrg .
|
|
|
|
?newOrg <${orgForPositionPred}> ?positionUri .
|
2010-03-30 14:13:23 +00:00
|
|
|
?newOrg <${type}> <${flagURI}> .
|
2010-01-29 22:12:41 +00:00
|
|
|
</v:jsonset>
|
|
|
|
|
2010-03-29 17:14:24 +00:00
|
|
|
<v:jsonset var="positionClassUriJson">${positionClass}</v:jsonset>
|
|
|
|
<v:jsonset var="orgClassUriJson">${orgClass}</v:jsonset>
|
2010-01-29 22:12:41 +00:00
|
|
|
|
|
|
|
<c:set var="editjson" scope="request">
|
|
|
|
{
|
|
|
|
"formUrl" : "${formUrl}",
|
|
|
|
"editKey" : "${editKey}",
|
|
|
|
"urlPatternToReturnTo" : "/entity",
|
|
|
|
|
|
|
|
"subject" : ["person", "${subjectUriJson}" ],
|
|
|
|
"predicate" : ["predicate", "${predicateUriJson}" ],
|
|
|
|
"object" : ["positionUri", "${objectUriJson}", "URI" ],
|
|
|
|
|
2010-03-08 16:18:05 +00:00
|
|
|
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearAssertion}" ],
|
2010-03-29 15:41:45 +00:00
|
|
|
|
|
|
|
"n3optional" : [ "${organizationUriAssertion}",
|
2010-03-30 01:03:57 +00:00
|
|
|
"${n3ForNewOrg}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
2010-03-08 16:18:05 +00:00
|
|
|
"${endYearAssertion}"],
|
2010-03-29 15:41:45 +00:00
|
|
|
|
|
|
|
"newResources" : { "positionUri" : "${defaultNamespace}",
|
|
|
|
"newOrg" : "${defaultNamespace}" },
|
|
|
|
|
2010-01-29 22:12:41 +00:00
|
|
|
"urisInScope" : { },
|
|
|
|
"literalsInScope": { },
|
2010-03-29 18:12:22 +00:00
|
|
|
"urisOnForm" : [ "organizationUri", "newOrgType", "positionType" ],
|
2010-03-29 15:41:45 +00:00
|
|
|
"literalsOnForm" : [ "title", "newOrgName",
|
2010-03-26 22:33:55 +00:00
|
|
|
"startYear", "endYear" ],
|
2010-01-29 22:12:41 +00:00
|
|
|
"filesOnForm" : [ ],
|
|
|
|
"sparqlForLiterals" : { },
|
|
|
|
"sparqlForUris" : { },
|
|
|
|
"sparqlForExistingLiterals" : {
|
|
|
|
"title" : "${titleExisting}",
|
|
|
|
"startYear" : "${startYearExisting}",
|
2010-02-05 20:02:47 +00:00
|
|
|
"endYear" : "${endYearExisting}"
|
2010-01-29 22:12:41 +00:00
|
|
|
},
|
|
|
|
"sparqlForExistingUris" : {
|
2010-03-29 18:12:22 +00:00
|
|
|
"organizationUri" : "${organizationUriExisting}",
|
|
|
|
"positionType" : "${positionTypeExisting}"
|
2010-01-29 22:12:41 +00:00
|
|
|
},
|
|
|
|
"fields" : {
|
|
|
|
"title" : {
|
|
|
|
"newResource" : "false",
|
|
|
|
"validators" : [ "nonempty" ],
|
|
|
|
"optionsType" : "UNDEFINED",
|
|
|
|
"literalOptions" : [ ],
|
|
|
|
"predicateUri" : "",
|
|
|
|
"objectClassUri" : "",
|
2010-03-30 14:13:23 +00:00
|
|
|
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
2010-01-29 22:12:41 +00:00
|
|
|
"rangeLang" : "",
|
|
|
|
"assertions" : [ "${titleAssertion}" ]
|
|
|
|
},
|
2010-03-29 17:14:24 +00:00
|
|
|
"positionType" : {
|
|
|
|
"newResource" : "false",
|
|
|
|
"validators" : [ ],
|
|
|
|
"optionsType" : "CHILD_VCLASSES_WITH_PARENT",
|
|
|
|
"literalOptions" : [ "Select one" ],
|
|
|
|
"predicateUri" : "",
|
|
|
|
"objectClassUri" : "${positionClassUriJson}",
|
|
|
|
"rangeDatatypeUri" : "",
|
|
|
|
"rangeLang" : "",
|
2010-03-29 18:12:22 +00:00
|
|
|
"assertions" : [ "${positionTypeAssertion}" ]
|
2010-03-29 17:14:24 +00:00
|
|
|
},
|
2010-01-29 22:12:41 +00:00
|
|
|
"organizationUri" : {
|
|
|
|
"newResource" : "false",
|
|
|
|
"validators" : [ ],
|
|
|
|
"optionsType" : "INDIVIDUALS_VIA_VCLASS",
|
2010-03-26 22:33:55 +00:00
|
|
|
"literalOptions" : [ "Select one" ],
|
2010-01-29 22:12:41 +00:00
|
|
|
"predicateUri" : "",
|
2010-03-29 17:14:24 +00:00
|
|
|
"objectClassUri" : "${orgClassUriJson}",
|
2010-01-29 22:12:41 +00:00
|
|
|
"rangeDatatypeUri" : "",
|
|
|
|
"rangeLang" : "",
|
|
|
|
"assertions" : [ "${organizationUriAssertion}" ]
|
|
|
|
},
|
2010-03-29 15:41:45 +00:00
|
|
|
"newOrgName" : {
|
2010-03-30 14:13:23 +00:00
|
|
|
"newResource" : "false",
|
2010-01-29 22:12:41 +00:00
|
|
|
"validators" : [ ],
|
|
|
|
"optionsType" : "UNDEFINED",
|
|
|
|
"literalOptions" : [ ],
|
|
|
|
"predicateUri" : "",
|
|
|
|
"objectClassUri" : "",
|
2010-03-26 20:19:17 +00:00
|
|
|
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
2010-01-29 22:12:41 +00:00
|
|
|
"rangeLang" : "",
|
2010-03-30 19:33:54 +00:00
|
|
|
"assertions" : [ "${n3ForNewOrg}" ]
|
2010-01-29 22:12:41 +00:00
|
|
|
},
|
2010-03-29 15:41:45 +00:00
|
|
|
"newOrgType" : {
|
|
|
|
"newResource" : "false",
|
|
|
|
"validators" : [ ],
|
2010-03-30 01:03:57 +00:00
|
|
|
"optionsType" : "CHILD_VCLASSES",
|
2010-03-29 15:41:45 +00:00
|
|
|
"literalOptions" : [ "Select one" ],
|
|
|
|
"predicateUri" : "",
|
2010-03-30 01:03:57 +00:00
|
|
|
"objectClassUri" : "${orgClassUriJson}",
|
2010-03-29 15:41:45 +00:00
|
|
|
"rangeDatatypeUri" : "",
|
|
|
|
"rangeLang" : "",
|
|
|
|
"assertions" : [ "${newOrgTypeAssertion}" ]
|
|
|
|
},
|
2010-01-29 22:12:41 +00:00
|
|
|
"startYear" : {
|
|
|
|
"newResource" : "false",
|
2010-03-26 20:19:17 +00:00
|
|
|
"validators" : [ "nonempty", "datatype:${gYearDatatypeUriJson}" ],
|
2010-01-29 22:12:41 +00:00
|
|
|
"optionsType" : "UNDEFINED",
|
|
|
|
"literalOptions" : [ ],
|
|
|
|
"predicateUri" : "",
|
|
|
|
"objectClassUri" : "",
|
2010-03-26 20:19:17 +00:00
|
|
|
"rangeDatatypeUri" : "${gYearDatatypeUriJson}",
|
2010-01-29 22:12:41 +00:00
|
|
|
"rangeLang" : "",
|
|
|
|
"assertions" : ["${startYearAssertion}"]
|
|
|
|
},
|
|
|
|
"endYear" : {
|
|
|
|
"newResource" : "false",
|
2010-03-26 20:19:17 +00:00
|
|
|
"validators" : [ "datatype:${gYearDatatypeUriJson}" ],
|
2010-01-29 22:12:41 +00:00
|
|
|
"optionsType" : "UNDEFINED",
|
|
|
|
"literalOptions" : [ ],
|
|
|
|
"predicateUri" : "",
|
|
|
|
"objectClassUri" : "",
|
2010-03-26 20:19:17 +00:00
|
|
|
"rangeDatatypeUri" : "${gYearDatatypeUriJson}",
|
2010-01-29 22:12:41 +00:00
|
|
|
"rangeLang" : "",
|
|
|
|
"assertions" : ["${endYearAssertion}"]
|
2010-02-05 20:02:47 +00:00
|
|
|
}
|
2010-01-29 22:12:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</c:set>
|
|
|
|
<%
|
2010-03-29 15:41:45 +00:00
|
|
|
log.debug(request.getAttribute("editjson"));
|
2010-01-29 22:12:41 +00:00
|
|
|
|
2010-03-26 22:33:55 +00:00
|
|
|
EditConfiguration editConfig = EditConfiguration.getConfigFromSession(session,request);
|
|
|
|
if (editConfig == null) {
|
2010-03-29 15:41:45 +00:00
|
|
|
editConfig = new EditConfiguration((String) request.getAttribute("editjson"));
|
2010-03-26 22:33:55 +00:00
|
|
|
EditConfiguration.putConfigInSession(editConfig,session);
|
|
|
|
}
|
|
|
|
|
|
|
|
Model model = (Model) application.getAttribute("jenaOntModel");
|
|
|
|
String objectUri = (String) request.getAttribute("objectUri");
|
2010-03-29 15:41:45 +00:00
|
|
|
if (objectUri != null) { // editing existing
|
2010-03-26 22:33:55 +00:00
|
|
|
editConfig.prepareForObjPropUpdate(model);
|
2010-03-29 15:41:45 +00:00
|
|
|
} else { // adding new
|
2010-03-26 22:33:55 +00:00
|
|
|
editConfig.prepareForNonUpdate(model);
|
|
|
|
}
|
|
|
|
|
|
|
|
String subjectName = ((Individual) request.getAttribute("subject")).getName();
|
2010-03-29 15:41:45 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<c:set var="subjectName" value="<%= subjectName %>" />
|
|
|
|
<%
|
|
|
|
if (objectUri != null) { // editing existing entry
|
|
|
|
%>
|
|
|
|
<c:set var="editType" value="edit" />
|
|
|
|
<c:set var="title" value="Edit position entry for ${subjectName}" />
|
2010-03-30 01:03:57 +00:00
|
|
|
<%-- NB This will be the button text when Javascript is disabled. --%>
|
2010-03-29 15:41:45 +00:00
|
|
|
<c:set var="submitLabel" value="Save changes" />
|
|
|
|
<%
|
|
|
|
} else { // adding new entry
|
|
|
|
%>
|
|
|
|
<c:set var="editType" value="add" />
|
|
|
|
<c:set var="title" value="Create a new position entry for ${subjectName}" />
|
2010-03-30 01:03:57 +00:00
|
|
|
<%-- NB This will be the button text when Javascript is disabled. --%>
|
|
|
|
<c:set var="submitLabel" value="Create position" />
|
2010-03-29 15:41:45 +00:00
|
|
|
<% }
|
2010-03-26 22:33:55 +00:00
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
List<String> customJs = new ArrayList<String>(Arrays.asList("forms/js/customForm.js"
|
|
|
|
//, "forms/js/personHasPositionHistory.js"
|
|
|
|
));
|
2010-03-26 22:33:55 +00:00
|
|
|
request.setAttribute("customJs", customJs);
|
2010-03-26 23:06:38 +00:00
|
|
|
|
2010-03-30 18:16:40 +00:00
|
|
|
List<String> customCss = new ArrayList<String>(Arrays.asList("forms/css/customForm.css"
|
|
|
|
, "forms/css/personHasPositionHistory.css"
|
2010-03-29 15:41:45 +00:00
|
|
|
));
|
2010-03-26 23:06:38 +00:00
|
|
|
request.setAttribute("customCss", customCss);
|
2010-01-29 22:12:41 +00:00
|
|
|
%>
|
|
|
|
|
2010-03-30 01:03:57 +00:00
|
|
|
<c:set var="yearHint" value="<span class='hint'> (YYYY)</span>" />
|
|
|
|
<c:set var="requiredHint" value="<span class='requiredHint'> *</span>" />
|
|
|
|
|
2010-03-26 21:58:00 +00:00
|
|
|
<jsp:include page="${preForm}" />
|
2010-01-29 22:12:41 +00:00
|
|
|
|
|
|
|
<h2>${title}</h2>
|
2010-03-26 21:58:00 +00:00
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
<form action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
2010-03-30 19:33:54 +00:00
|
|
|
|
|
|
|
<div id="addNewLink">
|
2010-03-31 14:39:12 +00:00
|
|
|
If your organization is not listed, please <a href="#">add a new organization</a>.
|
2010-03-30 19:33:54 +00:00
|
|
|
</div>
|
2010-03-29 15:41:45 +00:00
|
|
|
|
|
|
|
<div id="existing">
|
2010-03-31 14:39:12 +00:00
|
|
|
<v:input type="select" label="Select Existing Organization" labelClass="required" id="organizationUri" /><span id="existingOrNew">or</span>
|
2010-03-29 15:41:45 +00:00
|
|
|
</div>
|
|
|
|
|
2010-03-31 14:39:12 +00:00
|
|
|
|
|
|
|
|
2010-03-29 15:41:45 +00:00
|
|
|
<div id="new">
|
2010-03-30 01:06:45 +00:00
|
|
|
<h6>Add a New Organization</h6>
|
2010-03-30 01:03:57 +00:00
|
|
|
<v:input type="text" label="Organization Name" labelClass="required" id="newOrgName" />
|
|
|
|
<v:input type="select" label="Select Organization Type" labelClass="required" id="newOrgType" />
|
2010-03-29 15:41:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="entry">
|
2010-03-30 01:03:57 +00:00
|
|
|
<v:input type="text" label="Position Title ${requiredHint}" id="title" size="30" />
|
|
|
|
<v:input type="select" label="Position Type ${requiredHint}" id="positionType" />
|
2010-03-26 21:58:00 +00:00
|
|
|
|
2010-03-30 01:03:57 +00:00
|
|
|
<p class="inline year"><v:input type="text" label="Start Year ${requiredHint} ${yearHint}" id="startYear" size="4" /></p>
|
|
|
|
<p class="inline year"><v:input type="text" label="End Year ${yearHint}" id="endYear" size="4" /></p>
|
2010-03-29 15:41:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- For Javascript -->
|
2010-03-30 19:33:54 +00:00
|
|
|
<input type="hidden" name="editType" value="${editType}" />
|
2010-03-29 15:41:45 +00:00
|
|
|
<input type="hidden" name="entryType" value="position" />
|
2010-03-30 01:03:57 +00:00
|
|
|
<input type="hidden" name="newType" value="organization" />
|
2010-03-29 15:41:45 +00:00
|
|
|
|
|
|
|
<p class="submit"><v:input type="submit" id="submit" value="${submitLabel}" cancel="${param.subjectUri}"/></p>
|
2010-03-30 01:03:57 +00:00
|
|
|
|
|
|
|
<p id="requiredLegend" class="requiredHint">* required fields</p>
|
2010-01-29 22:12:41 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<jsp:include page="${postForm}"/>
|
|
|
|
|