NIHVIVO-193 Fix creation of new organization in the person has position history form. Fix typos in processRdfForm2.jsp.
This commit is contained in:
parent
2f27442d79
commit
a1c3065f8b
2 changed files with 11 additions and 4 deletions
|
@ -38,11 +38,16 @@ var customForm = {
|
||||||
// Clear all form data and error messages
|
// Clear all form data and error messages
|
||||||
$('input:text').val('');
|
$('input:text').val('');
|
||||||
$('.error').text('');
|
$('.error').text('');
|
||||||
|
|
||||||
// Remove previously bound event handlers
|
// Remove previously bound event handlers
|
||||||
//this.cancel.unbind('click');
|
this.cancel.unbind('click');
|
||||||
this.button.unbind('click');
|
this.button.unbind('click');
|
||||||
|
|
||||||
|
removeRequiredHints();
|
||||||
|
|
||||||
initAddForm();
|
initAddForm();
|
||||||
|
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set up add form on page load, or when returning to initial state
|
// Set up add form on page load, or when returning to initial state
|
||||||
|
@ -85,6 +90,7 @@ var customForm = {
|
||||||
$(this).unbind('click');
|
$(this).unbind('click');
|
||||||
|
|
||||||
// RY This would return us to step 1, but it's not working
|
// RY This would return us to step 1, but it's not working
|
||||||
|
//customForm.cancel.unbind('click');
|
||||||
//customForm.cancel.bind('click', customForm.resetAddForm);
|
//customForm.cancel.bind('click', customForm.resetAddForm);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -129,6 +129,7 @@
|
||||||
?newOrg <${type}> ?newOrgType .
|
?newOrg <${type}> ?newOrgType .
|
||||||
?positionUri <${positionInOrgPred}> ?newOrg .
|
?positionUri <${positionInOrgPred}> ?newOrg .
|
||||||
?newOrg <${orgForPositionPred}> ?positionUri .
|
?newOrg <${orgForPositionPred}> ?positionUri .
|
||||||
|
?newOrg <${type}> <${flagURI}> .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="positionClassUriJson">${positionClass}</v:jsonset>
|
<v:jsonset var="positionClassUriJson">${positionClass}</v:jsonset>
|
||||||
|
@ -178,7 +179,7 @@
|
||||||
"literalOptions" : [ ],
|
"literalOptions" : [ ],
|
||||||
"predicateUri" : "",
|
"predicateUri" : "",
|
||||||
"objectClassUri" : "",
|
"objectClassUri" : "",
|
||||||
"rangeDatatypeUri" : "",
|
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ "${titleAssertion}" ]
|
"assertions" : [ "${titleAssertion}" ]
|
||||||
},
|
},
|
||||||
|
@ -205,7 +206,7 @@
|
||||||
"assertions" : [ "${organizationUriAssertion}" ]
|
"assertions" : [ "${organizationUriAssertion}" ]
|
||||||
},
|
},
|
||||||
"newOrgName" : {
|
"newOrgName" : {
|
||||||
"newResource" : "true",
|
"newResource" : "false",
|
||||||
"validators" : [ ],
|
"validators" : [ ],
|
||||||
"optionsType" : "UNDEFINED",
|
"optionsType" : "UNDEFINED",
|
||||||
"literalOptions" : [ ],
|
"literalOptions" : [ ],
|
||||||
|
|
Loading…
Add table
Reference in a new issue