NIHVIVO-646 Using Javascript on page rather than hidden divs to pass information to the addAuthorsForm Javascript. Fix problems in DataPropertyComparator that were causing errors to be thrown on the page when no xsd datatype defined for an authorship rank.

This commit is contained in:
rjy7 2010-07-12 14:47:35 +00:00
parent b8cf560daa
commit 57a8cdcbe8
7 changed files with 34 additions and 36 deletions

View file

@ -379,13 +379,6 @@ SPARQL queries for existing values. --%>
<v:input type="submit" value="Add Author" id="showAddFormButton" cancel="true" cancelLabel="Return to Publication" cancelUrl="/individual" />
</div>
<div id="infoForJs">
<span class="rankPred" id="${rankPred}"></span>
<span class="rankXsdType" id="${intDatatypeUri}"></span>
<span class="acUrl" id="<c:url value="/autocomplete?type=${foaf}Person&stem=false" />"></span>
<span class="reorderUrl" id="<c:url value="/edit/primitiveRdfEdit" />"></span>
</div>
<form id="addAuthorForm" action="<c:url value="/edit/processRdfForm2.jsp"/>" >
<h3>Add an Author</h3>
@ -408,5 +401,17 @@ SPARQL queries for existing values. --%>
<p id="requiredLegend" class="requiredHint">* required fields</p>
</form>
<c:url var="baseAcUrl" value="/autocomplete?type=${foaf}Person&tokenize=false&stem=false" />
<c:url var="reorderUrl" value="/edit/primitiveRdfEdit" />
<script type="text/javascript">
var customFormData = {
rankPred: '${rankPred}',
rankXsdType: '${intDatatypeUri}',
baseAcUrl: '${baseAcUrl}',
reorderUrl: '${reorderUrl}'
};
</script>
<jsp:include page="${postForm}"/>