NIHVIVO-725, NIHVIVO-629 Javascript for one-step, two-step versions of form

This commit is contained in:
rjy7 2010-07-12 00:33:21 +00:00
parent 8eea64d949
commit b8cf560daa
3 changed files with 25 additions and 27 deletions

View file

@ -58,11 +58,11 @@ This is intended to create a set of statements like:
String subjectName = ((Individual) request.getAttribute("subject")).getName();
if ( ((String)request.getAttribute("predicateUri")).endsWith("hasPrincipalInvestigatorRole") ) { %>
<v:jsonset var="roleType">http://vivoweb.org/ontology/core#PrincipalInvestigatorRole</v:jsonset>
<c:set var="submitButtonLabel">Create principal investigator</c:set>
<c:set var="submitButtonLabel">Principal Investigator</c:set>
<c:set var="formHeading">Create a new principal investigator entry for <%= subjectName %></c:set>
<% }else{ %>
<v:jsonset var="roleType">http://vivoweb.org/ontology/core#CoPrincipalInvestigatorRole</v:jsonset>
<c:set var="submitButtonLabel">Create co-principal investigator</c:set>
<c:set var="submitButtonLabel">Co-Principal Investigator</c:set>
<c:set var="formHeading">Create a new co-principal investigator entry for <%= subjectName %></c:set>
<% } %>