diff --git a/dashboard/portal/portalHelper.ts b/dashboard/portal/portalHelper.ts index 580a8544..bc08cd2a 100644 --- a/dashboard/portal/portalHelper.ts +++ b/dashboard/portal/portalHelper.ts @@ -1,4 +1,5 @@ import {Option} from "../../sharedComponents/input/input.component"; +import {StakeholderEntities} from "../../monitor/entities/stakeholder"; export class PortalUtils{ @@ -7,10 +8,10 @@ export class PortalUtils{ {value: 'connect', label: 'Connect portal'}, {value: 'monitor', label: 'Monitor portal'}, {value: 'community', label: 'Community Gateway'}, - {value: 'funder', label: 'Funder Dashboard'}, - {value: 'ri', label: 'Research Initiative Dashboard'}, - {value: 'organization', label: 'Institution Dashboard'}, - {value: 'project', label: 'Project Dashboard'} + {value: 'funder', label: StakeholderEntities.FUNDER + ' Dashboard'}, + {value: 'ri', label: StakeholderEntities.RI + ' Dashboard'}, + {value: 'organization', label: StakeholderEntities.ORGANIZATION + ' Dashboard'}, + {value: 'project', label: StakeholderEntities.PROJECT + ' Dashboard'} ]; } diff --git a/monitor/entities/stakeholder.ts b/monitor/entities/stakeholder.ts index af47e5db..0e9cb0ec 100644 --- a/monitor/entities/stakeholder.ts +++ b/monitor/entities/stakeholder.ts @@ -285,13 +285,13 @@ export class IndicatorFilterUtils{ export enum StakeholderEntities { STAKEHOLDER = 'Dashboard', FUNDER = 'Funder', - RI = 'Research initiative', - ORGANIZATION = 'Research institution', + RI = 'Research Initiative', + ORGANIZATION = 'Research Institution', PROJECT = 'Project', STAKEHOLDERS = 'Dashboards', FUNDERS = 'Funders', - RIS = 'Research initiatives', - ORGANIZATIONS = 'Research institutions', + RIS = 'Research Initiatives', + ORGANIZATIONS = 'Research Institutions', PROJECTS = 'Projects' } diff --git a/utils/email/composer.ts b/utils/email/composer.ts index a80ba169..cd8e9f8c 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -227,10 +227,12 @@ export class Composer { } public static composeMessageForMonitorDashboard(name: string, role: "manager" | "member", user: string = null, invitation: any = null) { + let pdppLink = 'http://catalogue.openaire.eu/files/Personal%20Data%20Protection%20Policy%20for%20OpenAIRE%20Services%20April%202022.pdf'; let message = '

Dear ((__user__)),

' + '

You have been invited to be a ' + role +' of the OpenAIRE Monitor Dashboard for the ' + name + '.

' + '

Click this URL and use the verification code below to accept the invitation.

' + '

The verification code is ((__code__)).

' + + '

By logging in and using the service you accept and agree to the OpenAIRE personal data protection policy.

' + (role === "manager"? '

As a manager of the OpenAIRE Monitor Dashboard, you will have access to the administration part of the dashboard, ' + 'where you will be able to customize and manage the profile of the ' + name + '.

':