hasAttendeeRole now uses role list view; removed unnecessary brackets from selects
This commit is contained in:
parent
b07c7b0156
commit
f362f7ce2d
2 changed files with 16 additions and 9 deletions
|
@ -60,6 +60,7 @@
|
|||
** core:hasResearcherRole
|
||||
** core:hasTeacherRole
|
||||
** core:hasOrganizerRole
|
||||
** core:hasAttendeeRole
|
||||
these three are an exception, and share a separate config
|
||||
** core:hasInvestigatorRole
|
||||
** core:hasCo-PrincipalInvestigatorRole
|
||||
|
@ -97,7 +98,11 @@
|
|||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#hasOrganizerRole">
|
||||
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-hasRole.xml</display:listViewConfigFile>
|
||||
</rdf:Description>
|
||||
|
||||
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#hasAttendeeRole">
|
||||
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-hasRole.xml</display:listViewConfigFile>
|
||||
</rdf:Description>
|
||||
|
||||
|
||||
<!-- The next two roles may not have a "role in" anything -->
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#hasEditorRole">
|
||||
|
|
|
@ -154,10 +154,12 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
|||
)
|
||||
);
|
||||
|
||||
conf.addValidator(new DateTimeIntervalValidationVTwo("startField","endField"));
|
||||
//Adding additional data, specifically edit mode
|
||||
addFormSpecificData(conf, vreq);
|
||||
return conf;
|
||||
conf.addValidator(new DateTimeIntervalValidationVTwo("startField","endField"));
|
||||
|
||||
//Adding additional data, specifically edit mode
|
||||
addFormSpecificData(conf, vreq);
|
||||
|
||||
return conf;
|
||||
}
|
||||
|
||||
final static String n3ForNewPosition =
|
||||
|
@ -240,12 +242,12 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
|||
|
||||
final static String existingIntervalNodeQuery =
|
||||
"SELECT ?existingIntervalNode WHERE { \n" +
|
||||
" ?position <${positionToInterval}> ?existingIntervalNode . \n" +
|
||||
" ?position <" + positionToInterval + "> ?existingIntervalNode . \n" +
|
||||
" ?existingIntervalNode a <" + intervalType + "> . }";
|
||||
|
||||
final static String existingStartNodeQuery =
|
||||
"SELECT ?existingStartNode WHERE { \n" +
|
||||
" ?position <${positionToInterval}> ?intervalNode . \n" +
|
||||
" ?position <" + positionToInterval + "> ?intervalNode . \n" +
|
||||
" ?intervalNode a <" + intervalType + "> . \n" +
|
||||
" ?intervalNode <" + intervalToStart + "> ?existingStartNode . \n" +
|
||||
" ?existingStartNode a <" + dateTimeValueType + "> .} ";
|
||||
|
@ -262,8 +264,8 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
|||
" ?position <" + positionToInterval + "> ?intervalNode . \n" +
|
||||
" ?intervalNode a <" + intervalType + "> . \n" +
|
||||
" ?intervalNode <" + intervalToStart + "> ?startNode . \n" +
|
||||
" ?startNode a <${dateTimeValueType}> . \n" +
|
||||
" ?startNode <${dateTimePrecision}> ?existingStartPrecision . }";
|
||||
" ?startNode a <" + dateTimeValueType + "> . \n" +
|
||||
" ?startNode <" + dateTimePrecision + "> ?existingStartPrecision . }";
|
||||
|
||||
final static String existingEndPrecisionQuery =
|
||||
"SELECT ?existingEndPrecision WHERE { \n" +
|
||||
|
|
Loading…
Add table
Reference in a new issue