VIVO-567
This commit is contained in:
parent
4f48f9b1e2
commit
27d3b0206c
2 changed files with 109 additions and 76 deletions
|
@ -22,7 +22,7 @@ roleExamples-->
|
|||
<#assign typeSelectorLabel = "${i18n().membership_in}" />
|
||||
<#assign roleActivityVClass = "${i18n().organizations}" />
|
||||
<#assign genericLabel = "${i18n().organization_capitalized}" />
|
||||
<#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization'}" />
|
||||
|
||||
<#assign acMultipleTypes = "'true'" />
|
||||
<#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization,http://xmlns.com/foaf/0.1/Group,http://purl.obolibrary.org/obo/OBI_0000835'}" />
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -3,8 +3,8 @@
|
|||
package edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.ConstantFieldOptions;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.FieldOptions;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.ChildVClassesOptions;
|
||||
|
||||
public class AddMemberRoleToPersonGenerator extends AddRoleToPersonTwoStageGenerator {
|
||||
|
||||
|
@ -22,8 +22,41 @@ public class AddMemberRoleToPersonGenerator extends AddRoleToPersonTwoStageGener
|
|||
|
||||
@Override
|
||||
FieldOptions getRoleActivityFieldOptions(VitroRequest vreq) throws Exception {
|
||||
return new ChildVClassesOptions(VCLASS_URI)
|
||||
.setDefaultOptionLabel( "Select one");
|
||||
return new ConstantFieldOptions(
|
||||
"","Select type",
|
||||
"http://vivoweb.org/ontology/core#AcademicDepartment","Academic Department",
|
||||
"http://vivoweb.org/ontology/core#Association","Association",
|
||||
"http://vivoweb.org/ontology/core#Center","Center",
|
||||
"http://vivoweb.org/ontology/core#ClinicalOrganization","Clinical Organization",
|
||||
"http://vivoweb.org/ontology/core#College","College",
|
||||
"http://vivoweb.org/ontology/core#Committee","Committee",
|
||||
"http://vivoweb.org/ontology/core#Company","Company",
|
||||
"http://vivoweb.org/ontology/core#Consortium","Consortium",
|
||||
"http://vivoweb.org/ontology/core#CoreLaboratory","Core Laboratory",
|
||||
"http://vivoweb.org/ontology/core#Department","Department",
|
||||
"http://vivoweb.org/ontology/core#Division","Division",
|
||||
"http://vivoweb.org/ontology/core#ExtensionUnit","Extension Unit",
|
||||
"http://vivoweb.org/ontology/core#Foundation","Foundation",
|
||||
"http://vivoweb.org/ontology/core#FundingOrganization","Funding Organization",
|
||||
"http://vivoweb.org/ontology/core#GovernmentAgency","Government Agency",
|
||||
"http://xmlns.com/foaf/0.1/Group","Group",
|
||||
"http://vivoweb.org/ontology/core#Hospital","Hospital",
|
||||
"http://vivoweb.org/ontology/core#Institute","Institute",
|
||||
"http://vivoweb.org/ontology/core#Laboratory","Laboratory",
|
||||
"http://vivoweb.org/ontology/core#Library","Library",
|
||||
"http://purl.obolibrary.org/obo/OBI_0000835","Manufacturer",
|
||||
"http://vivoweb.org/ontology/core#Museum","Museum",
|
||||
"http://xmlns.com/foaf/0.1/Organization","Organization",
|
||||
"http://vivoweb.org/ontology/core#PrivateCompany","Private Company",
|
||||
"http://vivoweb.org/ontology/core#Program","Program",
|
||||
"http://vivoweb.org/ontology/core#Publisher","Publisher",
|
||||
"http://vivoweb.org/ontology/core#ResearchOrganization","Research Organization",
|
||||
"http://vivoweb.org/ontology/core#School","School",
|
||||
"http://vivoweb.org/ontology/core#Team","Team",
|
||||
"http://vivoweb.org/ontology/core#ServiceProvidingLaboratory","Service Providing Lab",
|
||||
"http://vivoweb.org/ontology/core#StudentOrganization","Student Organization",
|
||||
"http://purl.obolibrary.org/obo/ERO_0000565","Technology Transfer Office",
|
||||
"http://vivoweb.org/ontology/core#University","University");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue