adding jsp to generator map so all old jsp will now redirect to generators

This commit is contained in:
briancaruso 2011-11-14 21:28:04 +00:00
parent 82fff7b777
commit 98edd591f0
13 changed files with 28 additions and 5 deletions

View file

@ -290,6 +290,8 @@ SPARQL queries for existing values. --%>
<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! --%>
<h2>${title}</h2>

View file

@ -236,6 +236,8 @@ core:rank
<c:set var="requiredHint" value="<span class='requiredHint'> *</span>" />
<jsp:include page="${preForm}"/>
<h1>JSP form, must be removed for the 1.4!</h1>
<h2>${title}&nbsp;<%= subjectName %></h2>

View file

@ -405,6 +405,8 @@ if ( ((String)request.getAttribute("predicateUri")).endsWith("hasPrincipalInvest
<c:set var="yearHint" value="<span class='hint'>(YYYY)</span>" />
<jsp:include page="${preForm}" />
<h1>JSP form, must be removed for the 1.4!</h1>
<% if( mode == EditMode.ERROR ){ %>
<div>This form is unable to handle the editing of this position because it is associated with

View file

@ -296,6 +296,8 @@ SPARQL queries for existing values. --%>
<jsp:include page="${preForm}" />
<h1>JSP form, must be removed for the 1.4!</h1>
<% if( mode == EditMode.ERROR ){ %>
<div>This form is unable to handle the editing of this position because it is associated with
multiple Position individuals.</div>
@ -347,4 +349,4 @@ var customFormData = {
<% } %>
<jsp:include page="${postForm}"/>
<jsp:include page="${postForm}"/>

View file

@ -500,6 +500,8 @@ log.debug("TYPE QUERY: " + vreq.getAttribute("typeQuery"));
<jsp:include page="${preForm}" />
<h1>JSP form, must be removed for the 1.4!</h1>
<% if( mode == EditMode.ERROR ){ %>
<div>This form is unable to handle the editing of this role because it is associated with
multiple ${param.roleDescriptor} individuals.</div>
@ -668,4 +670,4 @@ private String getActivityTypeQuery(VitroRequest vreq) {
return activityTypeQuery;
}
%>
%>

View file

@ -109,6 +109,8 @@
<jsp:include page="${preForm}"/>
<h1>JSP form, must be removed for the 1.4!</h1>
<h2><em><%= subjectName %></em></h2>
<h3>Manage Web Pages</h3>

View file

@ -173,6 +173,8 @@ parameter set up by editRequestDispatch.
<jsp:include page="${preForm}" />
<h1>JSP form, must be removed for the 1.4!</h1>
<h2>Create a new ${typeName}</h2>
<form class="customForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >

View file

@ -320,6 +320,8 @@
<jsp:include page="${preForm}"/>
<h1>JSP form, must be removed for the 1.4!</h1>
<h2>${title}</h2>
<form class="customForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >
<v:input type="text" label="Position Title ${requiredHint}" id="title" size="30"/>

View file

@ -506,6 +506,7 @@ This goes to an experimental FM based form:
<c:set var="yearHint" value="<span class='hint'>(YYYY)</span>" />
<jsp:include page="${preForm}" />
<h1>JSP form, must be removed for the 1.4!</h1>
<% if( mode == EditMode.ERROR ){ %>
<div>This form is unable to handle the editing of this position because it is associated with

View file

@ -422,6 +422,8 @@ type is returned and we don't get a match to the select element options. --%>
<jsp:include page="${preForm}" />
<h1>JSP form, must be removed for the 1.4!</h1>
<% if( mode == EditMode.ERROR ){ %>
<div>This form is unable to handle the editing of this position because it is associated with
multiple Position individuals.</div>

View file

@ -192,6 +192,8 @@ SPARQL queries for existing values. --%>
<c:set var="title" value="<em>${subjectName}</em>"/>
<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! --%>
<h2>${title}</h2>

View file

@ -7,9 +7,10 @@
<c:set var="themeDir" value="${contextPath}/${portal.themeDir}"/>
<div id="ie67DisableWrapper">
<h1>JSP form, must be removed for the 1.4!</h1>
<div id="ie67DisableContent">
<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
switch to another browser, such as FireFox.</p>
</div>
</div>
</div>

View file

@ -64,6 +64,7 @@ import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.FieldVTwo;
*/
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) {
EditConfigurationVTwo conf = new EditConfigurationVTwo();
@ -77,7 +78,7 @@ public class PersonHasEducationalTraining extends VivoBaseGenerator implements
conf.setVarNameForSubject("person");
conf.setVarNameForPredicate("predicate");
conf.setVarNameForObject("edTraining");
conf.setN3Required( Arrays.asList( n3ForNewEdTraining, orgLabelAssertion, orgTypeAssertion ) );
conf.setN3Optional(Arrays.asList(
n3ForEdTrainingToOrg, majorFieldAssertion, degreeAssertion,
@ -90,7 +91,7 @@ public class PersonHasEducationalTraining extends VivoBaseGenerator implements
conf.addNewResource("startNode",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
conf.setUrisOnform( Arrays.asList( "org", "orgType", "degree"));