diff --git a/webapp/src/main/webapp/i18n/vivo_all.properties b/webapp/src/main/webapp/i18n/vivo_all.properties index 964a0eee..c33bf1a8 100644 --- a/webapp/src/main/webapp/i18n/vivo_all.properties +++ b/webapp/src/main/webapp/i18n/vivo_all.properties @@ -771,3 +771,42 @@ through_today = Publications through today's date doi_link=Digital Object Identifier (DOI) using_cache_time=Using information cached at + +# +#New Entries for i18n purposes +# +edit_entry_for_head_role=: Edit this "head of" role +edit_entry_for_member_role=: Edit this membership +edit_entry_for_clinical_role=: Edit this clinical activity +edit_entry_for_attendee_role=: Edit this participation +edit_entry_for_organizer_role=: Edit this organizer role +edit_entry_for_editor_role=: Edit this editor role +edit_entry_for_service_provider_role=: Edit this service provider role +edit_entry_for_outreach_provider_role=: Edit this outreach provider role +edit_entry_for_researcher_role=: Edit this researcher role +edit_entry_for_reviewer_role=: Edit this reviewer role +edit_entry_for_teacher_role=: Edit this teaching role + +create_entry_for_head_role=: Add a new "head of" role +create_entry_for_member_role=: Add a new membership +create_entry_for_clinical_role=: Add a new clinical activity +create_entry_for_attendee_role=: Add a new participation +create_entry_for_organizer_role=: Add a new Organizer role +create_entry_for_editor_role=: Add a new editor role +create_entry_for_service_provider_role=: Add a new service provider role +create_entry_for_outreach_provider_role=: Add a new outreach provider role +create_entry_for_researcher_role=: Add a new researcher role +create_entry_for_reviewer_role=: Add a new reviewer role +create_entry_for_teacher_role=: Add a new teaching role + + +save_changes=Save +start_capitalized = Start +end_capitalized = End +institution_name=Name of Institution +role_in_institution=Role in Institution +presentation_name_capitalized=Title of Presentation +role_in_presentation_capitalized=Role in Presentation +advisee_capitalized_first_name=First Name +advisee_capitalized_lastname=Last Name + diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl index 66c57af3..9fb2ad22 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl @@ -24,5 +24,9 @@ roleExamples--> <#assign acMultipleTypes = "'true'" /> <#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#EventSeries,http://purl.org/NET/c4dm/event.owl#Event'}" /> -<#--Each of the two stage forms will include the form below--> -<#include "addRoleToPersonTwoStage.ftl"> +<#assign editTitle = "${i18n().edit_entry_for_attendee_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_attendee_role}"/> + +<#include "addRoleToPersonTwoStage.ftl"> + diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addClinicalRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addClinicalRoleToPerson.ftl index fb3e0bee..c5a137c6 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addClinicalRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addClinicalRoleToPerson.ftl @@ -28,8 +28,12 @@ RoleToActivityPredicate <#assign genericLabel = "${i18n().clinical_activity?capitalize}" /> <#assign acMultipleTypes = "'true'" /> + <#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#Project,http://purl.obolibrary.org/obo/ERO_0000005'}" /> +<#assign editTitle = "${i18n().edit_entry_for_clinical_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_clinical_role}"/> <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl index 9ac29cd8..265823b1 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl @@ -24,5 +24,10 @@ roleExamples--> <#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Collection'}" /> + +<#assign editTitle = "${i18n().edit_entry_for_editor_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_editor_role}"/> + <#--Each of the two stage forms will include the form below--> -<#include "addRoleToPersonTwoStage.ftl"> +<#include "addRoleToPersonTwoStage.ftl"> \ No newline at end of file diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl index d1575822..2b67fa9f 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl @@ -17,12 +17,16 @@ showRoleLAbelField roleExamples--> -<#--Variable assignments for Add Clinical Role To Person--> +<#--Variable assignments for Add Head Role To Person--> <#assign roleDescriptor = "${i18n().leadership}" /> <#assign typeSelectorLabel = "${i18n().organization_type}" /> <#assign genericLabel = "${i18n().organization_capitalized}" /> <#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization'}" /> +<#assign editTitle = "${i18n().edit_entry_for_head_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_head_role}"/> + <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl index e4f18ecc..ff29b438 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl @@ -17,12 +17,17 @@ showRoleLAbelField roleExamples--> -<#--Variable assignments for Add Clinical Role To Person--> +<#--Variable assignments for Add Member Role To Person--> <#assign roleDescriptor = "${i18n().membership}" /> <#assign typeSelectorLabel = "${i18n().membership_in}" /> <#assign roleActivityVClass = "${i18n().organizations}" /> <#assign genericLabel = "${i18n().organization_capitalized}" /> <#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'}" /> + +<#assign editTitle = "${i18n().edit_entry_for_member_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_member_role}"/> + <#--Each of the two stage forms will include the form below--> -<#include "addRoleToPersonTwoStage.ftl"> +<#include "addRoleToPersonTwoStage.ftl"> \ No newline at end of file diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addOrganizerRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addOrganizerRoleToPerson.ftl index ae938994..32bed964 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addOrganizerRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addOrganizerRoleToPerson.ftl @@ -24,5 +24,9 @@ roleExamples--> <#assign acMultipleTypes = "'true'" /> <#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#EventSeries,http://purl.org/NET/c4dm/event.owl#Event'}"> +<#assign editTitle = "${i18n().edit_entry_for_head_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_organizer_role}"/> + <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl index eaaf197c..5221796b 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl @@ -25,6 +25,9 @@ roleExamples--> <#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,http://purl.org/NET/c4dm/event.owl#Event'}" /> +<#assign editTitle = "${i18n().edit_entry_for_outreach_provider_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_outreach_provider_role}"/> <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl index 47fed204..06b8a287 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl @@ -110,7 +110,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o

- +

@@ -125,7 +125,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o -

+

diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addResearcherRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addResearcherRoleToPerson.ftl index 0b3bd28f..c757616b 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addResearcherRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addResearcherRoleToPerson.ftl @@ -23,7 +23,13 @@ roleExamples--> <#assign genericLabel = "${i18n().research_activity?capitalize}" /> <#assign acMultipleTypes = "'true'" /> + <#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#Project,http://vivoweb.org/ontology/core#Grant'}" /> + +<#assign editTitle = "${i18n().edit_entry_for_researcher_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_researcher_role}"/> + <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addReviewerRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addReviewerRoleToPerson.ftl index f74b214a..086f2600 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addReviewerRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addReviewerRoleToPerson.ftl @@ -25,6 +25,10 @@ roleExamples--> <#assign acMultipleTypes = "'true'" /> <#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Document,http://purl.org/ontology/bibo/Collection'}" /> +<#assign editTitle = "${i18n().edit_entry_for_reviewer_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_reviewer_role}"/> + <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl index aa52fa0c..65f39cb2 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl @@ -43,6 +43,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#--Setting values for titleVerb, submitButonText, and disabled Value--> <#if editConfiguration.objectUri?has_content> <#assign titleVerb = "${i18n().edit_capitalized}"/> + <#assign title= editTitle/> <#assign submitButtonText>${i18n().save_changes} <#if editMode = "repair"> <#assign disabledVal = ""/> @@ -50,6 +51,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#assign disabledVal = "disabled"/> <#else> + <#assign title= createTitle/> <#assign titleVerb = "${i18n().create_capitalized}"/> <#assign submitButtonText>${i18n().create_entry} <#assign disabledVal = ""/> @@ -77,8 +79,8 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#assign requiredHint = " *" /> <#assign yearHint = "(${i18n().year_hint_format})" /> -

${titleVerb} ${roleDescriptor} ${i18n().entry_for} ${editConfiguration.subjectName}

+

${editConfiguration.subjectName}${title}

<#--Display error messages if any--> <#if activityLabelDisplayValue?has_content > <#assign activityLabelValue = activityLabelDisplayValue /> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addTeacherRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addTeacherRoleToPerson.ftl index 42bc4487..d35b10d0 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addTeacherRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addTeacherRoleToPerson.ftl @@ -25,7 +25,12 @@ roleExamples--> <#assign genericLabel = "${i18n().teaching_activity?capitalize}" /> <#assign acMultipleTypes = "'true'" /> + <#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Conference,http://vivoweb.org/ontology/core#Course,http://purl.org/ontology/bibo/Workshop'}" /> +<#assign editTitle = "${i18n().edit_entry_for_teacher_role}"/> + +<#assign createTitle = "${i18n().create_entry_for_teacher_role}"/> + <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> diff --git a/webapp/src/main/webapp/themes/wilma/i18n/all.properties b/webapp/src/main/webapp/themes/wilma/i18n/all.properties index 4b717269..e791cd8a 100644 --- a/webapp/src/main/webapp/themes/wilma/i18n/all.properties +++ b/webapp/src/main/webapp/themes/wilma/i18n/all.properties @@ -106,3 +106,4 @@ organizer_role = Organizer Role faculty_memberships = Faculty Memberships edit_mailing_address = Edit Mailing Address add_capitalized = Add +