Working on activity role forms and views. NIHVIVO-629 NIHVIVO-630
This commit is contained in:
parent
6d1c65713a
commit
db7e4f3821
11 changed files with 71 additions and 12 deletions
9
productMods/edit/forms/addClinicalRoleToPerson.jsp
Normal file
9
productMods/edit/forms/addClinicalRoleToPerson.jsp
Normal file
|
@ -0,0 +1,9 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- sparqlForAcFilter must be all one line for JavaScript. --%>
|
||||
<jsp:include page="addRoleToPersonTwoStage.jsp">
|
||||
<jsp:param name="sparqlForAcFilter" value="PREFIX core: <http://vivoweb.org/ontology/core#> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri .?authorshipUri core:linkedInformationResource ?pubUri .}" />
|
||||
<jsp:param name="roleActivityTypeLabel" value="clinical activity" />
|
||||
<jsp:param name="roleType" value="http://vivoweb.org/ontology/core#ClinicalRole" />
|
||||
<jsp:param name="roleActivitySuperType" value="http://vivoweb.org/ontology/core#Process" />
|
||||
</jsp:include>
|
9
productMods/edit/forms/addMemberRoleToPerson.jsp
Normal file
9
productMods/edit/forms/addMemberRoleToPerson.jsp
Normal file
|
@ -0,0 +1,9 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- sparqlForAcFilter must be all one line for JavaScript. --%>
|
||||
<jsp:include page="addRoleToPersonTwoStage.jsp">
|
||||
<jsp:param name="sparqlForAcFilter" value="PREFIX core: <http://vivoweb.org/ontology/core#> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri .?authorshipUri core:linkedInformationResource ?pubUri .}" />
|
||||
<jsp:param name="roleActivityTypeLabel" value="membership" />
|
||||
<jsp:param name="roleType" value="http://vivoweb.org/ontology/core#MemberRole" />
|
||||
<jsp:param name="roleActivitySuperType" value="http://xmlns.com/foaf/0.1/Organization" />
|
||||
</jsp:include>
|
9
productMods/edit/forms/addPresentationRoleToPerson.jsp
Normal file
9
productMods/edit/forms/addPresentationRoleToPerson.jsp
Normal file
|
@ -0,0 +1,9 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- sparqlForAcFilter must be all one line for JavaScript. --%>
|
||||
<jsp:include page="addRoleToPersonTwoStage.jsp">
|
||||
<jsp:param name="sparqlForAcFilter" value="PREFIX core: <http://vivoweb.org/ontology/core#> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri .?authorshipUri core:linkedInformationResource ?pubUri .}" />
|
||||
<jsp:param name="roleActivityTypeLabel" value="presentation" />
|
||||
<jsp:param name="roleType" value="http://vivoweb.org/ontology/core#PresenterRole" />
|
||||
<jsp:param name="roleActivitySuperType" value="http://vivoweb.org/ontology/core#Presentation" />
|
||||
</jsp:include>
|
|
@ -0,0 +1,9 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- sparqlForAcFilter must be all one line for JavaScript. --%>
|
||||
<jsp:include page="addRoleToPersonTwoStage.jsp">
|
||||
<jsp:param name="sparqlForAcFilter" value="PREFIX core: <http://vivoweb.org/ontology/core#> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri .?authorshipUri core:linkedInformationResource ?pubUri .}" />
|
||||
<jsp:param name="roleActivityTypeLabel" value="research activity" />
|
||||
<jsp:param name="roleType" value="http://vivoweb.org/ontology/core#ResearcherRole" />
|
||||
<jsp:param name="roleActivitySuperType" value="http://vivoweb.org/ontology/core#Agreement" />
|
||||
</jsp:include>
|
|
@ -16,6 +16,10 @@
|
|||
core:relatedRole ?someActivity .
|
||||
?someActivity rdf:type core:ResearchActivity .
|
||||
?someActivity rdfs:label "activity title" .
|
||||
|
||||
Important: This form cannot be directly used as a custom form. It has parameters that must be set.
|
||||
See addClinicalRoleToPerson.jsp for an example.
|
||||
|
||||
--%>
|
||||
|
||||
<%@ page import="java.util.List" %>
|
||||
|
@ -45,20 +49,17 @@
|
|||
<c:set var="vivoCore" value="${vivoOnt}/core#" />
|
||||
|
||||
<%--
|
||||
It may make sense to parameterize this jsp:
|
||||
These are the parameters that MUST be set of this form:
|
||||
sparqlForAcFilter
|
||||
role type
|
||||
predicate inverse
|
||||
role activity type label (should be singular)
|
||||
super type of role types for roleActivityType select list generation
|
||||
role type
|
||||
predicate inverse
|
||||
role activity type label (should be singular)
|
||||
super type of role types for roleActivityType select list generation
|
||||
--%>
|
||||
<%-- Must be all one line for JavaScript. --%>
|
||||
<c:set var="sparqlForAcFilter">
|
||||
PREFIX core: <${vivoCore}> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri .?authorshipUri core:linkedInformationResource ?pubUri .}
|
||||
</c:set>
|
||||
<c:set var="roleActivityTypeLabel">clinical activity</c:set>
|
||||
<c:set var="roleType">${vivoCore}ClinicalRole</c:set>
|
||||
<c:set var="roleActivitySuperType">${vivoCore}Process</c:set>
|
||||
<c:set var="sparqlForAcFilter">${param.sparqlForAcFilter}</c:set>
|
||||
<c:set var="roleActivityTypeLabel">${param.roleActivityTypeLabel}</c:set>
|
||||
<c:set var="roleType">${param.roleType}</c:set>
|
||||
<c:set var="roleActivitySuperType">${param.roleActivitySuperType}</c:set>
|
||||
|
||||
<%
|
||||
VitroRequest vreq = new VitroRequest(request);
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- sparqlForAcFilter must be all one line for JavaScript. --%>
|
||||
<jsp:include page="addRoleToPersonTwoStage.jsp">
|
||||
<jsp:param name="sparqlForAcFilter" value="PREFIX core: <http://vivoweb.org/ontology/core#> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri .?authorshipUri core:linkedInformationResource ?pubUri .}" />
|
||||
<jsp:param name="roleActivityTypeLabel" value="teaching activity" />
|
||||
<jsp:param name="roleType" value="http://vivoweb.org/ontology/core#TeacherRole" />
|
||||
<jsp:param name="roleActivitySuperType" value="http://vivoweb.org/ontology/core#Event" />
|
||||
</jsp:include>
|
Loading…
Add table
Add a link
Reference in a new issue