Skip to content

Commit

Permalink
Fixed whitespace in: AddAttendeeRoleToPersonGenerator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
nicalico committed Mar 30, 2020
1 parent 8423408 commit 214bb4b
Showing 1 changed file with 66 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,74 +8,75 @@

public class AddAttendeeRoleToPersonGenerator extends AddRoleToPersonTwoStageGenerator {

private static String TEMPLATE = "addAttendeeRoleToPerson.ftl";
private static String TEMPLATE = "addAttendeeRoleToPerson.ftl";

@Override
String getTemplate(){ return TEMPLATE; }
@Override
String getTemplate(){ return TEMPLATE; }

@Override
String getRoleType() {
return "http://vivoweb.org/ontology/core#AttendeeRole";
}
@Override
String getRoleType() {
return "http://vivoweb.org/ontology/core#AttendeeRole";
}

/** Editor role involves hard-coded options for the "right side" of the role or activity. */
@Override
FieldOptions getRoleActivityFieldOptions(VitroRequest vreq) throws Exception {
// return new ConstantFieldOptions(
// "", "Select type",
// "http://purl.org/NET/c4dm/event.owl#Event", "Event",
// "http://vivoweb.org/ontology/core#Competition", "Competition",
// "http://purl.org/ontology/bibo/Conference", "Conference",
// "http://vivoweb.org/ontology/core#Course", "Course",
// "http://vivoweb.org/ontology/core#Exhibit", "Exhibit",
// "http://purl.org/ontology/bibo/Hearing", "Hearing",
// "http://purl.org/ontology/bibo/Interview", "Interview",
// "http://vivoweb.org/ontology/core#Meeting", "Meeting",
// "http://purl.org/ontology/bibo/Performance", "Performance",
// "http://vivoweb.org/ontology/core#Presentation", "Presentation",
// "http://vivoweb.org/ontology/core#InvitedTalk", "Invited Talk",
// "http://purl.org/ontology/bibo/Workshop", "Workshop",
// "http://vivoweb.org/ontology/core#EventSeries", "Event Series",
// "http://vivoweb.org/ontology/core#ConferenceSeries", "Conference Series",
// "http://vivoweb.org/ontology/core#SeminarSeries", "Seminar Series",
// "http://vivoweb.org/ontology/core#WorkshopSeries", "Workshop Series"
// );
/** Editor role involves hard-coded options for the "right side" of the role or activity. */
@Override
FieldOptions getRoleActivityFieldOptions(VitroRequest vreq) throws Exception {
return new ConstantFieldOptions(
// return new ConstantFieldOptions(
// "", "Select type",
// "http://purl.org/NET/c4dm/event.owl#Event", "Event",
// "http://vivoweb.org/ontology/core#Competition", "Competition",
// "http://purl.org/ontology/bibo/Conference", "Conference",
// "http://vivoweb.org/ontology/core#Course", "Course",
// "http://vivoweb.org/ontology/core#Exhibit", "Exhibit",
// "http://purl.org/ontology/bibo/Hearing", "Hearing",
// "http://purl.org/ontology/bibo/Interview", "Interview",
// "http://vivoweb.org/ontology/core#Meeting", "Meeting",
// "http://purl.org/ontology/bibo/Performance", "Performance",
// "http://vivoweb.org/ontology/core#Presentation", "Presentation",
// "http://vivoweb.org/ontology/core#InvitedTalk", "Invited Talk",
// "http://purl.org/ontology/bibo/Workshop", "Workshop",
// "http://vivoweb.org/ontology/core#EventSeries", "Event Series",
// "http://vivoweb.org/ontology/core#ConferenceSeries", "Conference Series",
// "http://vivoweb.org/ontology/core#SeminarSeries", "Seminar Series",
// "http://vivoweb.org/ontology/core#WorkshopSeries", "Workshop Series"
// );

// UQAM Replacing the above hard coding assignment by a dynamic assignment that takes into account the linguistic context
ConstantFieldOptions filedOptions = GeneratorUtil.buildConstantFieldOptions(vreq, DESCRIBE_QUERY);
return filedOptions;
}
/*
* UQAM get attributes for this specific subject
*/
private static String DESCRIBE_QUERY = " describe "+
"<http://purl.org/NET/c4dm/event.owl#Event> "+
"<http://vivoweb.org/ontology/core#Competition> "+
"<http://purl.org/ontology/bibo/Conference> "+
"<http://vivoweb.org/ontology/core#Course> "+
"<http://vivoweb.org/ontology/core#Exhibit> "+
"<http://purl.org/ontology/bibo/Hearing> "+
"<http://purl.org/ontology/bibo/Interview> "+
"<http://vivoweb.org/ontology/core#Meeting> "+
"<http://purl.org/ontology/bibo/Performance> "+
"<http://vivoweb.org/ontology/core#Presentation> "+
"<http://vivoweb.org/ontology/core#InvitedTalk> "+
"<http://purl.org/ontology/bibo/Workshop> "+
"<http://vivoweb.org/ontology/core#EventSeries> "+
"<http://vivoweb.org/ontology/core#ConferenceSeries> "+
"<http://vivoweb.org/ontology/core#SeminarSeries> "+
"<http://vivoweb.org/ontology/core#WorkshopSeries> ";
boolean isShowRoleLabelField() {
return false;
}
// UQAM Replacing the above hard coding assignment by a dynamic assignment that takes into account the linguistic context
ConstantFieldOptions filedOptions = GeneratorUtil.buildConstantFieldOptions(vreq, DESCRIBE_QUERY);
return filedOptions;
}
/*
* UQAM get attributes for this specific subject
*/
private static String DESCRIBE_QUERY = " describe "+
"<http://purl.org/NET/c4dm/event.owl#Event> "+
"<http://vivoweb.org/ontology/core#Competition> "+
"<http://purl.org/ontology/bibo/Conference> "+
"<http://vivoweb.org/ontology/core#Course> "+
"<http://vivoweb.org/ontology/core#Exhibit> "+
"<http://purl.org/ontology/bibo/Hearing> "+
"<http://purl.org/ontology/bibo/Interview> "+
"<http://vivoweb.org/ontology/core#Meeting> "+
"<http://purl.org/ontology/bibo/Performance> "+
"<http://vivoweb.org/ontology/core#Presentation> "+
"<http://vivoweb.org/ontology/core#InvitedTalk> "+
"<http://purl.org/ontology/bibo/Workshop> "+
"<http://vivoweb.org/ontology/core#EventSeries> "+
"<http://vivoweb.org/ontology/core#ConferenceSeries> "+
"<http://vivoweb.org/ontology/core#SeminarSeries> "+
"<http://vivoweb.org/ontology/core#WorkshopSeries> ";
boolean isShowRoleLabelField() {
return false;
}

/*
* Use the methods below to change the date/time precision in the
* custom form associated with this generator. When not used, the
* precision will be YEAR. The other precisons are MONTH, DAY, HOUR,
* MINUTE, TIME and NONE.
*/
/*
/*
* Use the methods below to change the date/time precision in the
* custom form associated with this generator. When not used, the
* precision will be YEAR. The other precisons are MONTH, DAY, HOUR,
* MINUTE, TIME and NONE.
*/
/*
public String getStartDatePrecision() {
String precision = VitroVocabulary.Precision.MONTH.uri();
return precision;
Expand All @@ -85,5 +86,6 @@ public String getEndDatePrecision() {
String precision = VitroVocabulary.Precision.DAY.uri();
return precision;
}
*/
*/
}

0 comments on commit 214bb4b

Please sign in to comment.