[Library | Trunk]: Fix invite message for covid-19 community

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60256 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-01-15 13:35:32 +00:00
parent 2600f89b77
commit c63b03402e
1 changed files with 4 additions and 5 deletions

View File

@ -195,16 +195,15 @@ export class Composer {
// TODO remove this after adding this on admin // TODO remove this after adding this on admin
public static initializeInvitationsBody(communityId: string, communityTitle: string, fullname: string): Body { public static initializeInvitationsBody(communityId: string, communityTitle: string, fullname: string): Body {
let body: Body = new Body(); let body: Body = new Body();
let defaultMainBody; let defaultMainBody = '<p>You are invited to subscribe to <a href="https://' + (properties.environment == "production"?'':'beta.') + communityId + '.openaire.eu/">'
+ communityTitle + '</a> dashboard.<br>';
if(communityId !== 'covid-19') { if(communityId !== 'covid-19') {
defaultMainBody ='<p>You are invited to subscribe to <a href="https://' + (properties.environment == "production"?'':'beta.') + communityId + '.openaire.eu/">' defaultMainBody += 'The purpose of this dashboard is to gather, link &amp; monitor the research results related to your community.</p>'
+ communityTitle + '</a> dashboard.<br>'
+ 'The purpose of this dashboard is to gather, link &amp; monitor the research results related to your community.</p>'
+ '<p>The community dashboard is part of the <a href="https://connect.openaire.eu/">OpenAIRE-Connect</a> ' + '<p>The community dashboard is part of the <a href="https://connect.openaire.eu/">OpenAIRE-Connect</a> '
+ 'project.' + 'project.'
+ '</p>'; + '</p>';
} else { } else {
defaultMainBody = '<p>This is a dashboard that gathers, links &amp; monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' + defaultMainBody += 'This is a dashboard that gathers, links &amp; monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' +
'We have a community of experts moderating and curating the content.</p> ' + 'We have a community of experts moderating and curating the content.</p> ' +
'<p>What you can do:</p>' + '<p>What you can do:</p>' +
'<ul>' + '<ul>' +