adding jsp to generator map so all old jsp will now redirect to generators
This commit is contained in:
parent
82fff7b777
commit
98edd591f0
13 changed files with 28 additions and 5 deletions
|
@ -290,6 +290,8 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE ON THIS PAGE WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
|
<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE ON THIS PAGE WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
|
||||||
<h2>${title}</h2>
|
<h2>${title}</h2>
|
||||||
|
|
||||||
|
|
|
@ -236,6 +236,8 @@ core:rank
|
||||||
<c:set var="requiredHint" value="<span class='requiredHint'> *</span>" />
|
<c:set var="requiredHint" value="<span class='requiredHint'> *</span>" />
|
||||||
|
|
||||||
<jsp:include page="${preForm}"/>
|
<jsp:include page="${preForm}"/>
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
|
|
||||||
<h2>${title} <%= subjectName %></h2>
|
<h2>${title} <%= subjectName %></h2>
|
||||||
|
|
||||||
|
|
|
@ -405,6 +405,8 @@ if ( ((String)request.getAttribute("predicateUri")).endsWith("hasPrincipalInvest
|
||||||
<c:set var="yearHint" value="<span class='hint'>(YYYY)</span>" />
|
<c:set var="yearHint" value="<span class='hint'>(YYYY)</span>" />
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
|
|
||||||
<% if( mode == EditMode.ERROR ){ %>
|
<% if( mode == EditMode.ERROR ){ %>
|
||||||
<div>This form is unable to handle the editing of this position because it is associated with
|
<div>This form is unable to handle the editing of this position because it is associated with
|
||||||
|
|
|
@ -296,6 +296,8 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<% if( mode == EditMode.ERROR ){ %>
|
<% if( mode == EditMode.ERROR ){ %>
|
||||||
<div>This form is unable to handle the editing of this position because it is associated with
|
<div>This form is unable to handle the editing of this position because it is associated with
|
||||||
multiple Position individuals.</div>
|
multiple Position individuals.</div>
|
||||||
|
@ -347,4 +349,4 @@ var customFormData = {
|
||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<jsp:include page="${postForm}"/>
|
<jsp:include page="${postForm}"/>
|
||||||
|
|
|
@ -500,6 +500,8 @@ log.debug("TYPE QUERY: " + vreq.getAttribute("typeQuery"));
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<% if( mode == EditMode.ERROR ){ %>
|
<% if( mode == EditMode.ERROR ){ %>
|
||||||
<div>This form is unable to handle the editing of this role because it is associated with
|
<div>This form is unable to handle the editing of this role because it is associated with
|
||||||
multiple ${param.roleDescriptor} individuals.</div>
|
multiple ${param.roleDescriptor} individuals.</div>
|
||||||
|
@ -668,4 +670,4 @@ private String getActivityTypeQuery(VitroRequest vreq) {
|
||||||
|
|
||||||
return activityTypeQuery;
|
return activityTypeQuery;
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
|
|
|
@ -109,6 +109,8 @@
|
||||||
|
|
||||||
<jsp:include page="${preForm}"/>
|
<jsp:include page="${preForm}"/>
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<h2><em><%= subjectName %></em></h2>
|
<h2><em><%= subjectName %></em></h2>
|
||||||
|
|
||||||
<h3>Manage Web Pages</h3>
|
<h3>Manage Web Pages</h3>
|
||||||
|
|
|
@ -173,6 +173,8 @@ parameter set up by editRequestDispatch.
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<h2>Create a new ${typeName}</h2>
|
<h2>Create a new ${typeName}</h2>
|
||||||
|
|
||||||
<form class="customForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
<form class="customForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
||||||
|
|
|
@ -320,6 +320,8 @@
|
||||||
|
|
||||||
<jsp:include page="${preForm}"/>
|
<jsp:include page="${preForm}"/>
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<h2>${title}</h2>
|
<h2>${title}</h2>
|
||||||
<form class="customForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
<form class="customForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >
|
||||||
<v:input type="text" label="Position Title ${requiredHint}" id="title" size="30"/>
|
<v:input type="text" label="Position Title ${requiredHint}" id="title" size="30"/>
|
||||||
|
|
|
@ -506,6 +506,7 @@ This goes to an experimental FM based form:
|
||||||
<c:set var="yearHint" value="<span class='hint'>(YYYY)</span>" />
|
<c:set var="yearHint" value="<span class='hint'>(YYYY)</span>" />
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<% if( mode == EditMode.ERROR ){ %>
|
<% if( mode == EditMode.ERROR ){ %>
|
||||||
<div>This form is unable to handle the editing of this position because it is associated with
|
<div>This form is unable to handle the editing of this position because it is associated with
|
||||||
|
|
|
@ -422,6 +422,8 @@ type is returned and we don't get a match to the select element options. --%>
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
<% if( mode == EditMode.ERROR ){ %>
|
<% if( mode == EditMode.ERROR ){ %>
|
||||||
<div>This form is unable to handle the editing of this position because it is associated with
|
<div>This form is unable to handle the editing of this position because it is associated with
|
||||||
multiple Position individuals.</div>
|
multiple Position individuals.</div>
|
||||||
|
|
|
@ -192,6 +192,8 @@ SPARQL queries for existing values. --%>
|
||||||
<c:set var="title" value="<em>${subjectName}</em>"/>
|
<c:set var="title" value="<em>${subjectName}</em>"/>
|
||||||
|
|
||||||
<jsp:include page="${preForm}" />
|
<jsp:include page="${preForm}" />
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
|
|
||||||
|
|
||||||
<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE ON THIS PAGE WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
|
<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE ON THIS PAGE WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
|
||||||
<h2>${title}</h2>
|
<h2>${title}</h2>
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
<c:set var="themeDir" value="${contextPath}/${portal.themeDir}"/>
|
<c:set var="themeDir" value="${contextPath}/${portal.themeDir}"/>
|
||||||
|
|
||||||
<div id="ie67DisableWrapper">
|
<div id="ie67DisableWrapper">
|
||||||
|
<h1>JSP form, must be removed for the 1.4!</h1>
|
||||||
<div id="ie67DisableContent">
|
<div id="ie67DisableContent">
|
||||||
<img src="${themeDir}site_icons/iconAlertBig.png" alt="Alert Icon"/>
|
<img src="${themeDir}site_icons/iconAlertBig.png" alt="Alert Icon"/>
|
||||||
<p>This form is not supported in versions of Internet Explorer below version 8. Please upgrade your browser, or
|
<p>This form is not supported in versions of Internet Explorer below version 8. Please upgrade your browser, or
|
||||||
switch to another browser, such as FireFox.</p>
|
switch to another browser, such as FireFox.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -64,6 +64,7 @@ import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.FieldVTwo;
|
||||||
*/
|
*/
|
||||||
public class PersonHasEducationalTraining extends VivoBaseGenerator implements EditConfigurationGenerator{
|
public class PersonHasEducationalTraining extends VivoBaseGenerator implements EditConfigurationGenerator{
|
||||||
|
|
||||||
|
//TODO: can we get rid of the session and get it form the vreq?
|
||||||
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) {
|
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) {
|
||||||
|
|
||||||
EditConfigurationVTwo conf = new EditConfigurationVTwo();
|
EditConfigurationVTwo conf = new EditConfigurationVTwo();
|
||||||
|
@ -77,7 +78,7 @@ public class PersonHasEducationalTraining extends VivoBaseGenerator implements
|
||||||
conf.setVarNameForSubject("person");
|
conf.setVarNameForSubject("person");
|
||||||
conf.setVarNameForPredicate("predicate");
|
conf.setVarNameForPredicate("predicate");
|
||||||
conf.setVarNameForObject("edTraining");
|
conf.setVarNameForObject("edTraining");
|
||||||
|
|
||||||
conf.setN3Required( Arrays.asList( n3ForNewEdTraining, orgLabelAssertion, orgTypeAssertion ) );
|
conf.setN3Required( Arrays.asList( n3ForNewEdTraining, orgLabelAssertion, orgTypeAssertion ) );
|
||||||
conf.setN3Optional(Arrays.asList(
|
conf.setN3Optional(Arrays.asList(
|
||||||
n3ForEdTrainingToOrg, majorFieldAssertion, degreeAssertion,
|
n3ForEdTrainingToOrg, majorFieldAssertion, degreeAssertion,
|
||||||
|
@ -90,7 +91,7 @@ public class PersonHasEducationalTraining extends VivoBaseGenerator implements
|
||||||
conf.addNewResource("startNode",DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("startNode",DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
conf.addNewResource("endNode",DEFAULT_NS_FOR_NEW_RESOURCE);
|
conf.addNewResource("endNode",DEFAULT_NS_FOR_NEW_RESOURCE);
|
||||||
|
|
||||||
//uris in scope: none
|
//uris in scope: none
|
||||||
//literals in scope: none
|
//literals in scope: none
|
||||||
|
|
||||||
conf.setUrisOnform( Arrays.asList( "org", "orgType", "degree"));
|
conf.setUrisOnform( Arrays.asList( "org", "orgType", "degree"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue