NIHVIVO-646 More work on addAuthorsToInformationResource custom form. Create edit submission preprocessing mechanism to make automated modifications to the form submission (e.g., creating a label from first, last, and middle name entries).
This commit is contained in:
parent
ab3e088cdf
commit
8570254efb
4 changed files with 64 additions and 37 deletions
|
@ -58,13 +58,13 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
|||
WebappDaoFactory wdf = vreq.getWebappDaoFactory();
|
||||
vreq.setAttribute("defaultNamespace", ""); //empty string triggers default new URI behavior
|
||||
|
||||
String flagURI = null;
|
||||
String flagUri = null;
|
||||
if (wdf.getApplicationDao().isFlag1Active()) {
|
||||
flagURI = VitroVocabulary.vitroURI+"Flag1Value"+vreq.getPortal().getPortalId()+"Thing";
|
||||
flagUri = VitroVocabulary.vitroURI+"Flag1Value"+vreq.getPortal().getPortalId()+"Thing";
|
||||
} else {
|
||||
flagURI = wdf.getVClassDao().getTopConcept().getURI(); // fall back to owl:Thing if not portal filtering
|
||||
flagUri = wdf.getVClassDao().getTopConcept().getURI(); // fall back to owl:Thing if not portal filtering
|
||||
}
|
||||
vreq.setAttribute("flagURI",flagURI);
|
||||
vreq.setAttribute("flagUri",flagUri);
|
||||
|
||||
request.setAttribute("stringDatatypeUriJson", MiscWebUtils.escape(XSD.xstring.toString()));
|
||||
request.setAttribute("gYearDatatypeUriJson", MiscWebUtils.escape(XSD.gYear.toString()));
|
||||
|
@ -182,13 +182,13 @@ the org type still gets asserted. --%>
|
|||
|
||||
?edAttainmentUri core:educationalBackgroundOf ?person ;
|
||||
a core:EducationalAttainment ,
|
||||
<${flagURI}> .
|
||||
<${flagUri}> .
|
||||
</v:jsonset>
|
||||
|
||||
<v:jsonset var="n3ForNewOrg">
|
||||
?newOrg <${label}> ?newOrgName ;
|
||||
a ?newOrgType ,
|
||||
<${flagURI}> .
|
||||
<${flagUri}> .
|
||||
|
||||
?edAttainmentUri <${orgGrantingDegree}> ?newOrg .
|
||||
</v:jsonset>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue