NIHVIVO-725 Add VClassGroup type to SelectListGenerator in order to generate a select list of all classes belonging to publication classgroup for publication custom form.
This commit is contained in:
parent
02d9db0557
commit
9cc2eceaf4
1 changed files with 7 additions and 6 deletions
|
@ -66,8 +66,8 @@ core:informationResourceInAuthorship (InformationResource : Authorship) - invers
|
||||||
vreq.setAttribute("intDatatypeUri", intDatatypeUri);
|
vreq.setAttribute("intDatatypeUri", intDatatypeUri);
|
||||||
vreq.setAttribute("intDatatypeUriJson", MiscWebUtils.escape(intDatatypeUri));
|
vreq.setAttribute("intDatatypeUriJson", MiscWebUtils.escape(intDatatypeUri));
|
||||||
%>
|
%>
|
||||||
|
<c:set var="vivoOnt" value="http://vivoweb.org/ontology" />
|
||||||
<c:set var="vivoCore" value="http://vivoweb.org/ontology/core#" />
|
<c:set var="vivoCore" value="${vivoOnt}/core#" />
|
||||||
<c:set var="rdfs" value="<%= VitroVocabulary.RDFS %>" />
|
<c:set var="rdfs" value="<%= VitroVocabulary.RDFS %>" />
|
||||||
<c:set var="label" value="${rdfs}label" />
|
<c:set var="label" value="${rdfs}label" />
|
||||||
<c:set var="infoResourceClassUri" value="${vivoCore}InformationResource" />
|
<c:set var="infoResourceClassUri" value="${vivoCore}InformationResource" />
|
||||||
|
@ -112,8 +112,9 @@ SPARQL queries for existing values. --%>
|
||||||
?newPub core:informationResourceInAuthorship ?authorshipUri .
|
?newPub core:informationResourceInAuthorship ?authorshipUri .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="infoResourceClassUriJson">${infoResourceClassUri}</v:jsonset>
|
<%-- <v:jsonset var="infoResourceClassUriJson">${infoResourceClassUri}</v:jsonset> --%>
|
||||||
|
<c:set var="publicationsClassGroupUri" value="${vivoOnt}#vitroClassGrouppublications" />
|
||||||
|
<v:jsonset var="publicationsClassGroupUriJson">${publicationsClassGroupUri}</v:jsonset>
|
||||||
|
|
||||||
<c:set var="editjson" scope="request">
|
<c:set var="editjson" scope="request">
|
||||||
{
|
{
|
||||||
|
@ -157,10 +158,10 @@ SPARQL queries for existing values. --%>
|
||||||
"pubType" : {
|
"pubType" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
"validators" : [ ],
|
"validators" : [ ],
|
||||||
"optionsType" : "CHILD_VCLASSES",
|
"optionsType" : "VCLASSGROUP",
|
||||||
"literalOptions" : [ "Select one" ],
|
"literalOptions" : [ "Select one" ],
|
||||||
"predicateUri" : "",
|
"predicateUri" : "",
|
||||||
"objectClassUri" : "${infoResourceClassUriJson}",
|
"objectClassUri" : "${publicationsClassGroupUriJson}",
|
||||||
"rangeDatatypeUri" : "",
|
"rangeDatatypeUri" : "",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ "${newPubTypeAssertion}" ]
|
"assertions" : [ "${newPubTypeAssertion}" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue