Project

General

Profile

1
//version compatibility: 2.0.0-SNAPSHOT
2
print("here");
3

    
4
function dropDB(){
5
print("\n\n Drop DB\n\n")
6
	db.dropDatabase()
7
}
8
function createCollections(){
9
print("\n\n Create Collections \n\n")
10
	db.createCollection("community")
11
	db.createCollection("layout")
12
	db.createCollection("divHelpContent")
13
	db.createCollection("divId")
14
	db.createCollection("entity")
15
	db.createCollection("page")
16
	db.createCollection("pageHelpContent")
17
	db.createCollection("statistics")
18
	db.createCollection("communitySubscribers")
19
	db.createCollection("htmlPageContent")
20
	db.createCollection("notifications")
21
	db.createCollection("subscriber")
22
	db.createCollection("curator")
23
}
24
function initializeEntitiesPages(){
25
print("\n\n Initialize entities and pages\n\n")
26
	db.entity.save({"pid" : "publication", "name" : "Publication"})
27
	db.entity.save({"pid" : "dataset", "name" : "Research Data"})
28
	db.entity.save({"pid" : "software", "name" : "Software"})
29
	db.entity.save({"pid" : "orp", "name" : "Other Research Products"});
30
	db.entity.save({"pid" : "project", "name" : "Project"})
31
	db.entity.save({"pid" : "organization", "name" : "Organization"})
32
	db.entity.save({"pid" : "datasource", "name" : "Content Provider"})
33

    
34
	publicationId = db.entity.find( { pid: "publication" }).map( function(entity) { return entity._id.str; } ).toString()
35
	datasetId = db.entity.find( { pid: "dataset" }).map( function(entity) { return entity._id.str; } ).toString()
36
	softwareId = db.entity.find( { pid: "software" }).map( function(entity) { return entity._id.str; } ).toString()
37
	orpId = db.entity.find( { pid: "orp" }).map( function(entity) { return entity._id.str; } ).toString();
38
	projectId = db.entity.find( { pid: "project" }).map( function(entity) { return entity._id.str; } ).toString()
39
	organizationId = db.entity.find( { pid: "organization" }).map( function(entity) { return entity._id.str; } ).toString()
40
	datasourceId = db.entity.find( { pid: "datasource" }).map( function(entity) { return entity._id.str; } ).toString()
41

    
42
  // Other Pages
43
  db.page.save({"name" : "Home", "route" : "/", "type" : "other", "connect":true,"communities":false,"openaire":true,"entities" : [], "top":true,"bottom":true,"right":true,"left":true});
44

    
45
  // Other Pages for Connect
46
  db.page.save({"name" : "About - Learn How", "route" : "/about/learn-how", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
47
  db.page.save({"name" : "About - Learn in depth", "route" : "/about/learn-in-depth", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
48
  db.page.save({"name" : "About - FAQs", "route" : "/about/faq", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
49
  db.page.save({"name" : "Contact us", "route" : "/contact-us", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":false,"bottom":false,"right":true,"left":false});
50
  db.page.save({"name" : "Content Policy", "route" : "/content", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
51

    
52
  db.page.save({"name" : "Curators", "route" : "/curators", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
53
  db.page.save({"name" : "Organizations", "route" : "/organizations", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
54
  db.page.save({"name" : "Invite", "route" : "/invite", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":true,"right":false,"left":false});
55
  db.page.save({"name" : "My Communities", "route": "/myCommunities", "type": "other", "connect": true, "communities": false, "openaire": false, "entities": [], "top": false, "bottom": false, "right": false, "left": false
56
    });
57
  // Testing Page for help contents (Connect)
58
  db.page.save({"name" : "Helper Test", "route" : "/helper-test", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
59

    
60
  // Other Pages for Explore
61
  db.page.save({"name" : "Mail Preferences", "route" : "/mail-preferences", "type" : "other", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":false,"bottom":false,"right":false,"left":false});
62

    
63
  // Landing Pages
64
  db.page.save({"name" : "Publication Landing", "route" : "/search/publication", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [publicationId],"top":true,"bottom":false,"right":false,"left":false});
65
	db.page.save({"name" : "Research Data Landing", "route" : "/search/dataset", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [datasetId],"top":true,"bottom":false,"right":false,"left":false});
66
	db.page.save({"name" : "Software Landing", "route" : "/search/software", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [softwareId], "top":true,"bottom":false,"right":false,"left":false});
67
	db.page.save({"name" : "Other Research Products Landing", "route" : "/search/other", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [orpId], "top":true,"bottom":false,"right":false,"left":false});
68
	db.page.save({"name" : "Project Landing", "route" : "/search/project", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false});
69
	db.page.save({"name" : "Organization Landing", "route" : "/search/organization", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [organizationId], "top":true,"bottom":false,"right":false,"left":false});
70
	db.page.save({"name" : "Content Provider Landing", "route" : "/search/dataprovider", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false});
71
	db.page.save({"name" : "Project Report", "route" : "/project-report", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false});
72

    
73
	// Search Pages
74
	db.page.save({"name" : "Search Find", "route" : "/search/find", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":false,"bottom":false,"right":false,"left":false});
75

    
76
  db.page.save({"name" : "Search Communities", "route" : "/search/find/communities", "type" : "search", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
77

    
78
  db.page.save({"name" : "Search Research Outcomes", "route" : "/search/find/research-outcomes", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [publicationId, datasetId, softwareId, orpId], "top":true,"bottom":false,"right":false,"left":false});
79
	db.page.save({"name" : "Search Projects", "route" : "/search/find/projects", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false});
80
	db.page.save({"name" : "Search Organizations", "route" : "/search/find/organizations", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [organizationId], "top":true,"bottom":false,"right":false,"left":false});
81
	db.page.save({"name" : "Search Content Providers", "route" : "/search/find/dataproviders", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false});
82

    
83
	// Advanced Search Pages
84
	db.page.save({"name" : "Advanced Search Research Outcomes", "route" : "/search/advanced/research-outcomes", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [publicationId, datasetId, softwareId, orpId], "top":true,"bottom":false,"right":false,"left":false});
85
	db.page.save({"name" : "Advanced Search Projects", "route" : "/search/advanced/projects", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false});
86
	db.page.save({"name" : "Advanced Search Organizations", "route" : "/search/advanced/organizations", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [organizationId], "top":true,"bottom":false,"right":false,"left":false});
87
	db.page.save({"name" : "Advanced Search Content Providers", "route" : "/search/advanced/dataproviders", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false});
88

    
89
	// Search Content Providers Pages
90
	db.page.save({"name" : "Search Journals", "route" : "/search/journals", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false});
91
	db.page.save({"name" : "Search Entity Registries", "route" : "/search/entity-registries", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false});
92
	db.page.save({"name" : "Search Compatible Content Providers", "route" : "/search/content-providers", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false});
93
	db.page.save({"name" : "Search Journals - Table view", "route" : "/search/journals-table", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":false,"bottom":false,"right":false,"left":false});
94
	db.page.save({"name" : "Search Entity Registries - Table view", "route" : "/search/entity-registries-table", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":false,"bottom":false,"right":false,"left":false});
95
	db.page.save({"name" : "Search Compatible Content Providers -Table view", "route" : "/search/content-providers-table", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":false,"bottom":false,"right":false,"left":false});
96

    
97
  // Deposit Pages for Connect
98
  db.page.save({"name" : "Share in Zenodo", "route" : "/participate/deposit/zenodo", "type" : "share", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
99
  db.page.save({"name" : "Deposit your research - Learn How", "route" : "/participate/deposit/learn-how", "type" : "share", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":false,"bottom":true,"right":false,"left":false});
100
  db.page.save({"name" : "Deposit Browse & Search repositories", "route" : "/participate/deposit/search", "type" : "share", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
101

    
102
  // Linking Pages
103
  db.page.save({"name" : "Link", "route" : "/participate/claim", "type" : "link", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":false,"bottom":true,"right":false,"left":false});
104
	db.page.save({"name" : "Direct Link", "route" : "/participate/direct-claim", "type" : "link", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":false,"bottom":true,"right":false,"left":false});
105
	db.page.save({"name" : "My claims", "route" : "/myclaims", "type" : "link", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":true,"bottom":true,"right":true,"left":false});
106
	db.page.save({"name" : "Administrator claims", "route" : "/claims", "type" : "link", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":true,"bottom":true,"right":true,"left":false});
107
	db.page.save({"name" : "Claims Project Manager", "route" : "/claims-project-manager", "type" : "link", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":false,"bottom":false,"right":false,"left":false});
108

    
109
  link = db.page.find( { route: "/participate/claim" }).map( function(page) { return page._id.str; } ).toString()
110
	directLink = db.page.find( { route: "/participate/direct-claim" }).map( function(page) { return page._id.str; } ).toString()
111
}
112

    
113

    
114
function addHelpTextsInHomePage_connect() {
115
  communityID = db.community.find( { pid: "connect" }).map( function(community) { return community._id.str; } ).toString();
116
  home_page = db.page.find( { route: "/" }).map( function(page) { return page._id.str; } ).toString();
117

    
118
  bottom_1_content = "<div>Home news section</div>";
119

    
120
  db.pageHelpContent.save({
121
    "page" : home_page,
122
    "community" : communityID,
123
    "placement" : "bottom",
124
    "order" : 1,
125
    "content" : bottom_1_content,
126
    "isActive" : false,
127
    "isPriorTo" : false
128
  });
129

    
130
  bottom_2_content = "<div class=\"uk-background-norepeat uk-background-cover uk-section-overlap uk-position-relative uk-preserve-color uk-margin-large-top\" style=\"background-color: #CFDEF1;\">\n" +
131
                "<div class=\"uk-container uk-section\">\n" +
132
                "<div class=\"uk-flex uk-flex-middle uk-padding uk-grid\" uk-grid=\"\">\n" +
133
                "<div class=\"uk-text-center uk-width-1-1@s uk-width-1-3@m uk-first-column\"><img src=\"assets/connect-assets/contact/1.png\" style=\"width:237px\" /></div>\n" +
134
                "\n" +
135
                "<div class=\"uk-width-expand\">\n" +
136
                "<div class=\"uk-text-bold uk-h4\">\n" +
137
                "<div>Let us help you develop a collaborative Open Science Gateway for your community. It is fast. It is reliable.</div>\n" +
138
                "</div>\n" +
139
                "\n" +
140
                "<div class=\"uk-margin-medium\">Get in touch with our team to find out how.</div>\n" +
141
                "\n" +
142
                "<div class=\"uk-inline\"><a class=\"uk-button portal-button\" href=\"/contact-us\">CONTACT US</a></div>\n" +
143
                "</div>\n" +
144
                "</div>\n" +
145
                "</div>\n" +
146
                "</div>\n";
147

    
148
  db.pageHelpContent.save({
149
    "page" : home_page,
150
    "community" : communityID,
151
    "placement" : "bottom",
152
    "order" : 2,
153
    "content" : bottom_2_content,
154
    "isActive" : true,
155
    "isPriorTo" : false
156
  });
157

    
158
  left_content = "<div class=\"uk-section uk-background-norepeat uk-background-bottom-center uk-background-cover uk-section-overlap uk-position-relative uk-preserve-color\" style=\"background-image: url('assets/connect-assets/home/banner.jpg') !important;\">\n" +
159
                "<div class=\"uk-padding-remove-bottom uk-section\">\n" +
160
                "<div class=\"uk-position-cover\">&nbsp;</div>\n" +
161
                "\n" +
162
                "<div class=\"uk-position-relative uk-panel\">\n" +
163
                "<div class=\"uk-container uk-container-large uk-margin-top\">\n" +
164
                "<div class=\"uk-grid\">\n" +
165
                "<div class=\"uk-width-2-3@m uk-width-1-1@s\">\n" +
166
                "<div class=\"uk-h1\">Build an Open Research <strong>Gateway</strong> for your <strong>Community</strong></div>\n" +
167
                "\n" +
168
                "<h4 class=\"uk-margin-remove-top\">Turn Open Science into practice</h4>\n" +
169
                "\n" +
170
                "<div class=\"uk-h5 uk-margin-top\">Share and link your research results.<br />\n" +
171
                "Across organizations, across borders.<br />\n" +
172
                "Customized to your needs.</div>\n" +
173
                "</div>\n" +
174
                "\n" +
175
                "<div class=\"uk-width-1-1 uk-inline uk-margin-top\"><a class=\"uk-button portal-button\" href=\"/about/learn-how\">LEARN HOW</a></div>\n" +
176
                "</div>\n" +
177
                "</div>\n" +
178
                "</div>\n" +
179
                "</div>\n" +
180
                "</div>\n";
181

    
182
  db.pageHelpContent.save({
183
    "page" : home_page,
184
    "community" : communityID,
185
    "placement" : "left",
186
    "order" : 1,
187
    "content" : left_content,
188
    "isActive" : true,
189
    "isPriorTo" : false
190
  });
191

    
192
  top_1_content = "<div class=\"uk-section uk-background-muted\">\n" +
193
                "<div class=\"uk-container uk-container\">\n" +
194
                "<div class=\"uk-text-center uk-h2\">Open and FAIR science is our mission</div>\n" +
195
                "\n" +
196
                "<div class=\"uk-margin-medium-top\">\n" +
197
                "<div class=\"uk-child-width-1-3@m uk-child-width-1-1@s uk-grid-match uk-grid-small uk-grid\" uk-grid=\"\" uk-height-match=\".target\">\n" +
198
                "<div class=\"uk-first-column\">\n" +
199
                "<div class=\"uk-card uk-card-default uk-padding-small\">\n" +
200
                "<div class=\"uk-card-media-top uk-flex uk-flex-middle uk-flex-center uk-margin-small-top\">\n" +
201
                "<div class=\"target\" style=\"min-height: 108px;\"><img src=\"assets/connect-assets/home/1.png\" style=\"height:89px; width:100px\" /></div>\n" +
202
                "</div>\n" +
203
                "\n" +
204
                "<div class=\"uk-margin-small-top\">\n" +
205
                "<div class=\"target\" style=\"min-height: 137.6px;\">\n" +
206
                "<h5 class=\"uk-text-center\">A Virtual Research Environment</h5>\n" +
207
                "\n" +
208
                "<div>An overlay platform making it easy to share, link, disseminate and monitor all your publications, data, software, methods. In one place.</div>\n" +
209
                "</div>\n" +
210
                "\n" +
211
                "<hr />\n" +
212
                "<div>\n" +
213
                "<div class=\"uk-text-uppercase text-center\">Features</div>\n" +
214
                "\n" +
215
                "<ul class=\"uk-list\">\n" +
216
                "\t<li>\n" +
217
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
218
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
219
                "\tAccess to OpenAIRE resources</li>\n" +
220
                "\t<li>\n" +
221
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
222
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
223
                "\tModerated, front-end linking</li>\n" +
224
                "\t<li>\n" +
225
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
226
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
227
                "\tCross-platform search</li>\n" +
228
                "</ul>\n" +
229
                "</div>\n" +
230
                "</div>\n" +
231
                "</div>\n" +
232
                "</div>\n" +
233
                "\n" +
234
                "<div>\n" +
235
                "<div class=\"uk-card uk-card-default uk-padding-small\">\n" +
236
                "<div class=\"uk-card-media-top uk-flex uk-flex-middle uk-flex-center uk-margin-small-top\">\n" +
237
                "<div class=\"target\"><img src=\"assets/connect-assets/home/2.png\" style=\"height:108px; width:100px\" /></div>\n" +
238
                "</div>\n" +
239
                "\n" +
240
                "<div class=\"uk-margin-small-top\">\n" +
241
                "<div class=\"target\" style=\"min-height: 137.6px;\">\n" +
242
                "<h5 class=\"uk-text-center\">Open Science in action</h5>\n" +
243
                "\n" +
244
                "<div>A time-saving bundle of services for researchers to effortlessly practice open science. An integral part of the European Open Science Cloud.</div>\n" +
245
                "</div>\n" +
246
                "\n" +
247
                "<hr />\n" +
248
                "<div>\n" +
249
                "<div class=\"uk-text-uppercase text-center\">Features</div>\n" +
250
                "\n" +
251
                "<ul class=\"uk-list\">\n" +
252
                "\t<li>\n" +
253
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"icon: check\"><br />\n" +
254
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
255
                "\tUse of OpenAIRE Guidelines</li>\n" +
256
                "\t<li>\n" +
257
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
258
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
259
                "\tDOIs via Zenodo</li>\n" +
260
                "\t<li>\n" +
261
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
262
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
263
                "\tEOSC Single Sign-On</li>\n" +
264
                "</ul>\n" +
265
                "</div>\n" +
266
                "</div>\n" +
267
                "</div>\n" +
268
                "</div>\n" +
269
                "\n" +
270
                "<div>\n" +
271
                "<div class=\"uk-card uk-card-default uk-padding-small\">\n" +
272
                "<div class=\"uk-card-media-top uk-flex uk-flex-middle uk-flex-center uk-margin-small-top\">\n" +
273
                "<div class=\"target\" style=\"min-height: 108px;\"><img src=\"assets/connect-assets/home/3.png\" style=\"height:104px; width:120px\" /></div>\n" +
274
                "</div>\n" +
275
                "\n" +
276
                "<div class=\"uk-margin-small-top\">\n" +
277
                "<div class=\"target\">\n" +
278
                "<h5 class=\"uk-text-center\">Customized to your needs</h5>\n" +
279
                "\n" +
280
                "<div>A Science Gateway with your own brand, rules for aggregation, text &amp; data mining, and presentation. Run by you via a simple, yet powerful backend administration tool.</div>\n" +
281
                "</div>\n" +
282
                "\n" +
283
                "<hr />\n" +
284
                "<div>\n" +
285
                "<div class=\"uk-text-uppercase text-center\">Features</div>\n" +
286
                "\n" +
287
                "<ul class=\"uk-list\">\n" +
288
                "\t<li>\n" +
289
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
290
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
291
                "\tAccess control</li>\n" +
292
                "\t<li>\n" +
293
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
294
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
295
                "\tAnalytics: rich set of indicators</li>\n" +
296
                "\t<li>\n" +
297
                "\t<div class=\"uk-border-circle uk-icon-button icon-button-small portal-icon-button uk-margin-small-right uk-icon\" uk-icon=\"check\"><br />\n" +
298
                "\t<svg data-svg=\"check\" height=\"20\" viewbox=\"0 0 20 20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" points=\"4,10 8,15 17,4\" stroke=\"#000\" stroke-width=\"1.1\"></polyline></svg></div>\n" +
299
                "\tLook &amp; feel to match your brand</li>\n" +
300
                "</ul>\n" +
301
                "</div>\n" +
302
                "</div>\n" +
303
                "</div>\n" +
304
                "</div>\n" +
305
                "</div>\n" +
306
                "</div>\n" +
307
                "</div>\n" +
308
                "</div>\n";
309

    
310
  db.pageHelpContent.save({
311
    "page" : home_page,
312
    "community" : communityID,
313
    "placement" : "top",
314
    "order" : 1,
315
    "content" : top_1_content,
316
    "isActive" : true,
317
    "isPriorTo" : false
318
  });
319

    
320
  top_2_content = "<div class=\"uk-section uk-section-large uk-padding-remove-top uk-margin-top uk-background-norepeat uk-background-bottom-center uk-section-overlap uk-position-relative uk-preserve-color\" style=\"background-image: url('assets/connect-assets/home/background.png') !important;\">\n" +
321
                "<div class=\"uk-container uk-container-large\">\n" +
322
                "<div class=\"uk-slider\" uk-slider=\"velocity: 0;autoplay: true;autoplay-interval: 4000;pause-on-hover: false;center: true\">\n" +
323
                "<div class=\"uk-slider-container\">\n" +
324
                "<ul class=\"uk-slider-items uk-child-width-1-1\" style=\"transform: translateX(0px);\">\n" +
325
                "\t<li class=\"ng-star-inserted uk-active\" tabindex=\"-1\">\n" +
326
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
327
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/home/gifs/deposit.gif\" /></div>\n" +
328
                "\n" +
329
                "\t<div class=\"uk-margin-top\">\n" +
330
                "\t<div>\n" +
331
                "\t<div class=\"uk-text-bold uk-h4\">Find a repository to deposit your research outcome</div>\n" +
332
                "\n" +
333
                "\t<div class=\"uk-margin-medium\">This is OpenAIRE&rsquo;s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.</div>\n" +
334
                "\n" +
335
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
336
                "\t</div>\n" +
337
                "\t</div>\n" +
338
                "\t</div>\n" +
339
                "\t</li>\n" +
340
                "\t<li tabindex=\"-1\">\n" +
341
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
342
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/home/gifs/link.gif\" /></div>\n" +
343
                "\n" +
344
                "\t<div class=\"uk-margin-top\">\n" +
345
                "\t<div>\n" +
346
                "\t<div class=\"uk-text-bold uk-h4\">Link your research output with your community, funding, and other research products</div>\n" +
347
                "\n" +
348
                "\t<div class=\"uk-margin-medium\">This is OpenAIRE&rsquo;s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.</div>\n" +
349
                "\n" +
350
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
351
                "\t</div>\n" +
352
                "\t</div>\n" +
353
                "\t</div>\n" +
354
                "\t</li>\n" +
355
                "\t<li tabindex=\"-1\">\n" +
356
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
357
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/home/gifs/overview.gif\" /></div>\n" +
358
                "\n" +
359
                "\t<div class=\"uk-margin-top\">\n" +
360
                "\t<div>\n" +
361
                "\t<div class=\"uk-text-bold uk-h4\">View community&#39;s overview at a glance</div>\n" +
362
                "\n" +
363
                "\t<div class=\"uk-margin-medium\">This is OpenAIRE&rsquo;s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.</div>\n" +
364
                "\n" +
365
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
366
                "\t</div>\n" +
367
                "\t</div>\n" +
368
                "\t</div>\n" +
369
                "\t</li>\n" +
370
                "\t<li tabindex=\"-1\">\n" +
371
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
372
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/home/gifs/results.gif\" /></div>\n" +
373
                "\n" +
374
                "\t<div class=\"uk-margin-top\">\n" +
375
                "\t<div>\n" +
376
                "\t<div class=\"uk-text-bold uk-h4\">Search &amp; browse your community&#39;s research products.</div>\n" +
377
                "\n" +
378
                "\t<div class=\"uk-margin-medium\">This is OpenAIRE&rsquo;s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.</div>\n" +
379
                "\n" +
380
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
381
                "\t</div>\n" +
382
                "\t</div>\n" +
383
                "\t</div>\n" +
384
                "\t</li>\n" +
385
                "\t<li tabindex=\"-1\">\n" +
386
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
387
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/home/gifs/graph-analysis.gif\" /></div>\n" +
388
                "\n" +
389
                "\t<div class=\"uk-margin-top\">\n" +
390
                "\t<div>\n" +
391
                "\t<div class=\"uk-text-bold uk-h4\">View statistics for your community&#39;s research products.</div>\n" +
392
                "\n" +
393
                "\t<div class=\"uk-margin-medium\">This is OpenAIRE&rsquo;s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.</div>\n" +
394
                "\n" +
395
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
396
                "\t</div>\n" +
397
                "\t</div>\n" +
398
                "\t</div>\n" +
399
                "\t</li>\n" +
400
                "</ul>\n" +
401
                "\n" +
402
                "<ul class=\"uk-slider-nav uk-dotnav uk-flex-center uk-margin\">\n" +
403
                "\t<li class=\"uk-active\" uk-slider-item=\"0\">&nbsp;</li>\n" +
404
                "\t<li uk-slider-item=\"1\">&nbsp;</li>\n" +
405
                "\t<li uk-slider-item=\"2\">&nbsp;</li>\n" +
406
                "\t<li uk-slider-item=\"3\">&nbsp;</li>\n" +
407
                "\t<li uk-slider-item=\"4\">&nbsp;</li>\n" +
408
                "</ul>\n" +
409
                "</div>\n" +
410
                "</div>\n" +
411
                "</div>\n" +
412
                "</div>\n";
413

    
414
  db.pageHelpContent.save({
415
    "page" : home_page,
416
    "community" : communityID,
417
    "placement" : "top",
418
    "order" : 2,
419
    "content" : top_2_content,
420
    "isActive" : true,
421
    "isPriorTo" : false
422
  });
423
}
424

    
425
function addHelpTextsInHomePage_explore() {
426
  communityID = db.community.find( { pid: "openaire" }).map( function(community) { return community._id.str; } ).toString();
427
  home_page = db.page.find( { route: "/" }).map( function(page) { return page._id.str; } ).toString();
428

    
429
  bottom_1_content = "<div class=\"uk-section uk-section-small\" style=\"background: #FAFAFA 0% 0% no-repeat padding-box;\">\n" +
430
                "<div class=\"uk-container uk-container-large uk-margin-bottom\">\n" +
431
                "<div class=\"uk-flex uk-flex-middle uk-child-width-1-1@s uk-child-width-1-2@m uk-grid\" uk-grid=\"\">\n" +
432
                "<div class=\"uk-first-column\">\n" +
433
                "<div class=\"uk-text-secondary uk-h2 uk-margin-bottom\"><strong>Contribute</strong> to improve the<br />\n" +
434
                "<strong>OpenAIRE Research Graph</strong></div>\n" +
435
                "\n" +
436
                "<p>The graph is currently under <strong>pre-release consultation process</strong> which will last two months. Help us making the graph ready for its 1st production release by providing your feedback!</p>\n" +
437
                "\n" +
438
                "<p>You can provide feedback via <a href=\"https://trello.com/b/o1tEJ3rN/openaire-research-graph\" target=\"_blank\">Trello</a> or via opening a ticket in the <a href=\"https://www.openaire.eu/support/helpdesk\" target=\"_blank\">OpenAIRE Helpdesk</a> under the category OpenAIRE Services with the subject &quot;OpenAIRE Research Graph: &rdquo;. The graph can be explore and tested via this portal or via data dumps made available in <a href=\"https://zenodo.org/communities/openaire-research-graph\" target=\"_blank\">Zenodo.org</a>.</p>\n" +
439
                "\n" +
440
                "<p>Find information about the OpenAIRE Research Graph, how to test it and contribute to improving it on our <a href=\"https://www.openaire.eu/blogs/the-openaire-research-graph\" target=\"_blank\">blog</a>. You can also write to <a href=\"mailto:paolo.manghi@isti.cnr.it\">Paolo Manghi</a>, the OpenAIRE Technical Director, for additional details.</p>\n" +
441
                "\n" +
442
                "<div class=\"uk-flex uk-flex-middle uk-grid uk-child-width-1-2@s\"><a class=\"uk-margin-top\" href=\"https://www.openaire.eu/blogs/the-openaire-research-graph\" target=\"_blank\"><u>Instructions on providing feedback</u> </a>\n" +
443
                "\n" +
444
                "<div class=\"uk-margin-top uk-text-right uk-visible@l\"><a class=\"uk-button trello-button trello-button-blue uk-button-large\" href=\"https://trello.com/b/o1tEJ3rN/openaire-research-graph\" target=\"_blank\"><img class=\"trello-image\" src=\"assets/explore-assets/trello.svg\" /> <span class=\"uk-margin-small-left uk-margin-small-right\">Go to <strong>Trello</strong></span> &rarr; </a></div>\n" +
445
                "\n" +
446
                "<div class=\"uk-margin-top uk-text-right uk-hidden@m\"><a class=\"uk-button trello-button trello-button-blue uk-button-large\" href=\"https://trello.com/b/o1tEJ3rN/openaire-research-graph\" target=\"_blank\"><img class=\"trello-image\" src=\"assets/explore-assets/trello.svg\" /><span class=\"uk-margin-small-left uk-margin-small-right\">Go to <strong>Trello</strong></span> &rarr; </a></div>\n" +
447
                "\n" +
448
                "<div class=\"uk-margin-top uk-text-right uk-visible@m uk-hidden@l\"><a class=\"uk-button trello-button trello-button-blue uk-button-large\" href=\"https://trello.com/b/o1tEJ3rN/openaire-research-graph\" target=\"_blank\"><img class=\"trello-image uk-margin-right\" src=\"assets/explore-assets/trello.svg\" /> &rarr;</a></div>\n" +
449
                "</div>\n" +
450
                "</div>\n" +
451
                "\n" +
452
                "<div><img src=\"assets/explore-assets/trello-sc.png\" /></div>\n" +
453
                "</div>\n" +
454
                "</div>\n" +
455
                "</div>\n";
456

    
457
  db.pageHelpContent.save({
458
    "page" : home_page,
459
    "community" : communityID,
460
    "placement" : "bottom",
461
    "order" : 1,
462
    "content" : bottom_1_content,
463
    "isActive" : true,
464
    "isPriorTo" : false
465
  });
466

    
467
  bottom_2_content = "<div class=\"uk-section\" style=\"background: linear-gradient(180deg, #FAFAFA 50%, #FFFFFF 50%);\">\n" +
468
                "<div class=\"uk-container uk-container-small\">\n" +
469
                "<div class=\"uk-grid-margin uk-grid uk-grid-stack\" uk-grid=\"\">\n" +
470
                "<div class=\"uk-width-1-1@m uk-first-column\">\n" +
471
                "<div class=\"uk-margin uk-text-center uk-child-width-1-1 uk-grid-match uk-child-width-1-1@s uk-child-width-1-2@m uk-child-width-1-2@l uk-grid\" id=\"page#8\" uk-grid=\"\" uk-height-match=\"target: &gt; div &gt; div &gt; .card-text; row: false;\">\n" +
472
                "<div class=\"uk-first-column\">\n" +
473
                "<div class=\"el-item uk-card uk-card-default uk-card-medium uk-card-body\"><img alt=\"Share\" src=\"assets/explore-assets/share.svg\" />\n" +
474
                "<div class=\"el-content uk-margin uk-text-large\"><span class=\"uk-text-bold\">Deposit</span> your research</div>\n" +
475
                "\n" +
476
                "<div class=\"uk-margin-small-top uk-text-left card-text uk-flex uk-flex-center\">\n" +
477
                "<div class=\"uk-margin-left uk-margin-right\">Deposit in a repository of your choice.<br />\n" +
478
                "Select an OpenAIRE compatible<br />\n" +
479
                "repository (2.0 +) so that your research is linked to your funding information. Use Zenodo, a catch-all repository hosted by CERN to deposit all your research results (publications, data, software, etc.)</div>\n" +
480
                "</div>\n" +
481
                "<a class=\"uk-button portal-button uk-padding uk-padding-remove-vertical uk-margin-small-left ng-star-inserted uk-margin uk-margin-bottom uk-width-1-2\" href=\"/participate/deposit/learn-how\" type=\"submit\"> Deposit </a></div>\n" +
482
                "</div>\n" +
483
                "\n" +
484
                "<div>\n" +
485
                "<div class=\"el-item uk-card uk-card-default uk-card-medium uk-card-body\"><img alt=\"Link\" src=\"assets/explore-assets/link.svg\" />\n" +
486
                "<div class=\"el-content uk-margin uk-text-large\"><span class=\"uk-text-bold\">Link</span> your work</div>\n" +
487
                "\n" +
488
                "<div class=\"uk-margin-small-top uk-text-left card-text uk-flex uk-flex-center\">\n" +
489
                "<div class=\"uk-margin-left uk-margin-right\">Connect all your research.<br />\n" +
490
                "If you can&#39;t find your research results in OpenAIRE, don&#39;t worry! Use our Link Out service , that reaches out to many<br />\n" +
491
                "external sources via APIs, to connect<br />\n" +
492
                "your research results and claim them to your project.</div>\n" +
493
                "</div>\n" +
494
                "<a class=\"uk-button portal-button uk-padding uk-padding-remove-vertical uk-margin-small-left ng-star-inserted uk-margin uk-margin-bottom uk-width-1-2\" href=\"/participate/claim\" type=\"submit\"> Link </a></div>\n" +
495
                "</div>\n" +
496
                "</div>\n" +
497
                "</div>\n" +
498
                "</div>\n" +
499
                "</div>\n" +
500
                "</div>\n";
501

    
502
  db.pageHelpContent.save({
503
    "page" : home_page,
504
    "community" : communityID,
505
    "placement" : "bottom",
506
    "order" : 2,
507
    "content" : bottom_2_content,
508
    "isActive" : true,
509
    "isPriorTo" : false
510
  });
511

    
512
  left_content = "<div class=\"uk-section-muted uk-section uk-section-small\">\n" +
513
                "<div class=\"uk-container uk-container-large\">\n" +
514
                "<div class=\"uk-grid-margin uk-grid uk-grid-stack\" uk-grid=\"\">\n" +
515
                "<div class=\"uk-width-1-1@m uk-first-column\">\n" +
516
                "<div class=\"uk-margin uk-child-width-1-1 uk-grid-match uk-child-width-1-1@s uk-child-width-1-2@m\n" +
517
                "             uk-child-width-1-2@l uk-grid-large uk-grid uk-grid-divider ask-explore\" uk-grid=\"\">\n" +
518
                "<div class=\"uk-first-column uk-text-center\">\n" +
519
                "<div class=\"el-item uk-card uk-card-small uk-card-body\"><img alt=\"\" class=\"el-image\" src=\"assets/explore-assets/ask-explore.svg\" uk-svg=\"\" />\n" +
520
                "<h3 class=\"el-title uk-margin uk-h3\">Have more questions?</h3>\n" +
521
                "</div>\n" +
522
                "</div>\n" +
523
                "\n" +
524
                "<div class=\"questions\">\n" +
525
                "<div class=\"el-item uk-card uk-card-small uk-card-body\">\n" +
526
                "<ul class=\"uk-list uk-list-divider\">\n" +
527
                "\t<li><a href=\"https://www.openaire.eu/os-primers\" target=\"_blank\">Learn about open science policies and how to align</a></li>\n" +
528
                "\t<li><a href=\"https://www.openaire.eu/rdm-handbook\" target=\"_blank\">Learn more on how to manage your data in the open science era</a></li>\n" +
529
                "\t<li><a href=\"https://www.openaire.eu/guides\" target=\"_blank\">Find out how to use OpenAIRE to best serve your needs</a></li>\n" +
530
                "\t<li><a href=\"https://www.openaire.eu/webinars/\" target=\"_blank\">View our training material on a variety of related topics</a></li>\n" +
531
                "\t<li><a href=\"https://www.openaire.eu/contact-us/\" target=\"_blank\">Contact us</a></li>\n" +
532
                "</ul>\n" +
533
                "</div>\n" +
534
                "</div>\n" +
535
                "</div>\n" +
536
                "</div>\n" +
537
                "</div>\n" +
538
                "</div>\n" +
539
                "</div>\n";
540

    
541
  db.pageHelpContent.save({
542
    "page" : home_page,
543
    "community" : communityID,
544
    "placement" : "left",
545
    "order" : 1,
546
    "content" : left_content,
547
    "isActive" : true,
548
    "isPriorTo" : false
549
  });
550

    
551
  right_content = "<div class=\"uk-h2\" style=\"color: white !important;\">Extracted <strong>Metadata Combined.</strong></div>\n" +
552
                "\n" +
553
                "<p>The OpenAIRE Research Graph is one of the largest open scholarly record collections worldwide, key in fostering Open Science and establishing its practices in the daily research activities. Conceived as a public and transparent good, populated out of data sources trusted by scientists, the Graph aims at bringing discovery, monitoring, and assessment of science back in the hands of the scientific community.<br />\n" +
554
                "<br />\n" +
555
                "Imagine a vast collection of research products all linked together, contextualised and openly available. For the past ten years OpenAIRE has been working to gather this valuable record. OpenAIRE is pleased to announce the beta release of its Research Graph, a massive collection of metadata and links between scientific products such as articles, datasets, software, and other research products, entities like organisations, funders, funding streams, projects, communities, and data sources.<br />\n" +
556
                "<br />\n" +
557
                "As of today, the OpenAIRE Research Graph aggregates around 450Mi metadata records with links collecting from 10,000 data sources trusted by scientists! After cleaning, deduplication, and fine-grained classification processes, they narrow down to ~100Mi publications, ~8Mi datasets, ~200K software research products, 8Mi other products linked together with semantic relations.<br />\n" +
558
                "<br />\n" +
559
                "More than 10Mi full-texts of Open Access publications are mined by algorithms to enrich metadata records with additional properties and links among research products, funders, projects, communities, and organizations. Thanks to the mining algorithm, the graph is completed with 480Mi semantic relations.</p>\n";
560

    
561
  db.pageHelpContent.save({
562
    "page" : home_page,
563
    "community" : communityID,
564
    "placement" : "right",
565
    "order" : 1,
566
    "content" : right_content,
567
    "isActive" : true,
568
    "isPriorTo" : false
569
  });
570

    
571
  top_content = "<div class=\"uk-text-right uk-padding-small uk-padding-remove-vertical uk-margin-medium-top\"><a class=\"uk-button uk-button-large trello-button trello-button-white\" href=\"https://trello.com/b/o1tEJ3rN/openaire-research-graph\" target=\"_blank\"><img class=\"trello-image\" src=\"assets/explore-assets/trello-2.svg\" /> <span class=\"uk-margin-small-left\">Give us <strong>feedback</strong></span> </a></div>\n";
572

    
573
  db.pageHelpContent.save({
574
    "page" : home_page,
575
    "community" : communityID,
576
    "placement" : "top",
577
    "order" : 1,
578
    "content" : top_content,
579
    "isActive" : true,
580
    "isPriorTo" : false
581
  });
582
}
583

    
584
function addHelpTextsInAboutLearnHowPage() {
585
  communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString();
586
  about_page = db.page.find( { route: "/about/learn-how" }).map( function(page) { return page._id.str; } ).toString()
587

    
588
  top_1_content = "<div class=\"uk-section uk-section-large uk-padding-remove-top uk-background-norepeat uk-background-bottom-center uk-section-overlap uk-position-relative uk-preserve-color\" style=\" min-height: calc(7.89999px + 60vh);  background-image: url('assets/connect-assets/about/background.png') !important;\">\n" +
589
                "<div class=\"uk-container uk-container-large uk-section uk-margin-top\">\n" +
590
                "<div class=\"uk-margin-large-top uk-grid\">\n" +
591
                "<h1 class=\"uk-width-1-1 font-41 uk-text-bold\">Learn the process</h1>\n" +
592
                "\n" +
593
                "<div class=\"uk-width-1-2@l uk-width-1-1@s uk-h5 uk-margin-top\">Build a <strong>Gateway to your community&#39;s</strong> open and linked research outcomes. Customized to your needs.</div>\n" +
594
                "</div>\n" +
595
                "\n" +
596
                "<div class=\"uk-margin-large-top uk-flex uk-child-width-1-3@m uk-child-width-1-1@s uk-flex-center uk-grid\" uk-grid=\"\">\n" +
597
                "<div class=\"uk-flex uk-child-width-1-1@m uk-child-width-1-2@s uk-grid uk-first-column uk-grid-stack\" uk-grid=\"\">\n" +
598
                "<div class=\"uk-first-column\">\n" +
599
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">1. Understanding your needs</h5>\n" +
600
                "\n" +
601
                "<div>First, we learn about your requirements and challenges. We help you understand Open Science practices within EOSC and together we&rsquo;ll talk about how OpenAIRE RCD fits as a solution.</div>\n" +
602
                "</div>\n" +
603
                "\n" +
604
                "<div class=\"uk-visible@m uk-grid-margin uk-first-column\">\n" +
605
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">4. Roll out the service</h5>\n" +
606
                "\n" +
607
                "<div>We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.</div>\n" +
608
                "</div>\n" +
609
                "\n" +
610
                "<div class=\"uk-hidden@m\">\n" +
611
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">2. Develop a pilot</h5>\n" +
612
                "\n" +
613
                "<div>How do you work today, and how would you like to work tomorrow? We translate your needs into rules and processes and we configure operational OpenAIRE services. By the end of this phase, we&rsquo;ll have defined the basic configuration of your Community Gateway.</div>\n" +
614
                "</div>\n" +
615
                "</div>\n" +
616
                "\n" +
617
                "<div class=\"uk-text-center\"><img src=\"assets/connect-assets/about/cycle.png\" /></div>\n" +
618
                "\n" +
619
                "<div class=\"uk-flex uk-child-width-1-1@m uk-child-width-1-2@s uk-grid uk-grid-stack\" uk-grid=\"\">\n" +
620
                "<div class=\"uk-visible@m uk-first-column\">\n" +
621
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">2. Develop a pilot</h5>\n" +
622
                "\n" +
623
                "<div>How do you work today, and how would you like to work tomorrow? We translate your needs into rules and processes and we configure operational OpenAIRE services. By the end of this phase, we&rsquo;ll have defined the basic configuration of your Community Gateway.</div>\n" +
624
                "</div>\n" +
625
                "\n" +
626
                "<div class=\"uk-hidden@m uk-visible@s\">\n" +
627
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">4. Roll out the service</h5>\n" +
628
                "\n" +
629
                "<div>We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.</div>\n" +
630
                "</div>\n" +
631
                "\n" +
632
                "<div class=\"uk-grid-margin uk-first-column\">\n" +
633
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">3. Test and Validate</h5>\n" +
634
                "\n" +
635
                "<div>You validate and test your new Community Gateway (portal) with your experts and community to ensure all workflows are in place and quality of data meets your standards. If needed, we work together in another iteration to further refine and adapt to your needs.</div>\n" +
636
                "</div>\n" +
637
                "\n" +
638
                "<div class=\"uk-hidden@s uk-visible@xs\">\n" +
639
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">4. Roll out the service</h5>\n" +
640
                "\n" +
641
                "<div>We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.</div>\n" +
642
                "</div>\n" +
643
                "</div>\n" +
644
                "</div>\n" +
645
                "\n" +
646
                "<div class=\"uk-width-1-1 uk-text-center uk-text-large uk-margin-large-top\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-in-depth\">Learn more details</a></div>\n" +
647
                "</div>\n" +
648
                "</div>\n";
649

    
650
  db.pageHelpContent.save({
651
    "page": about_page,
652
    "community": communityID,
653
    "placement": "top",
654
    "order": 1,
655
    "content": top_1_content,
656
    "isActive": true,
657
    "isPriorTo": false
658
  });
659

    
660
  top_2_content = "<div class=\"uk-background-norepeat uk-section uk-background-bottom-center uk-section-overlap uk-position-relative uk-preserve-color\">\n" +
661
                "<div class=\"uk-container uk-container-large\">\n" +
662
                "<div class=\"uk-slider\" uk-slider=\"velocity: 0;autoplay: true;autoplay-interval: 4000;pause-on-hover: false;center: true\">\n" +
663
                "<div class=\"uk-slider-container\">\n" +
664
                "<ul class=\"uk-slider-items uk-child-width-1-1\" style=\"transform: translateX(0px);\">\n" +
665
                "\t<li class=\"ng-star-inserted uk-active\" tabindex=\"-1\">\n" +
666
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
667
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/about/gifs/profile.gif\" /></div>\n" +
668
                "\n" +
669
                "\t<div class=\"uk-margin-top\">\n" +
670
                "\t<div>\n" +
671
                "\t<div class=\"uk-text-bold uk-h4\">Profile</div>\n" +
672
                "\n" +
673
                "\t<div class=\"uk-margin-medium\">Edit community information, change logo url, add community managers or organizations related to community.</div>\n" +
674
                "\t</div>\n" +
675
                "\t</div>\n" +
676
                "\t</div>\n" +
677
                "\t</li>\n" +
678
                "\t<li tabindex=\"-1\">\n" +
679
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
680
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/about/gifs/content.gif\" /></div>\n" +
681
                "\n" +
682
                "\t<div class=\"uk-margin-top\">\n" +
683
                "\t<div>\n" +
684
                "\t<div class=\"uk-text-bold uk-h4\">Content</div>\n" +
685
                "\n" +
686
                "\t<div class=\"uk-margin-medium\">Manage projects, content providers, subjects and zenodo communities that are related to the research community.</div>\n" +
687
                "\t</div>\n" +
688
                "\t</div>\n" +
689
                "\t</div>\n" +
690
                "\t</li>\n" +
691
                "\t<li tabindex=\"-1\">\n" +
692
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
693
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/about/gifs/statistics.gif\" /></div>\n" +
694
                "\n" +
695
                "\t<div class=\"uk-margin-top\">\n" +
696
                "\t<div>\n" +
697
                "\t<div class=\"uk-text-bold uk-h4\">Statistics &amp; Charts</div>\n" +
698
                "\n" +
699
                "\t<div class=\"uk-margin-medium\">Manage statistical numbers &amp; charts that will be displayed in the community overview and graph analysis views.</div>\n" +
700
                "\t</div>\n" +
701
                "\t</div>\n" +
702
                "\t</div>\n" +
703
                "\t</li>\n" +
704
                "\t<li tabindex=\"-1\">\n" +
705
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
706
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/about/gifs/links.gif\" /></div>\n" +
707
                "\n" +
708
                "\t<div class=\"uk-margin-top\">\n" +
709
                "\t<div>\n" +
710
                "\t<div class=\"uk-text-bold uk-h4\">Links</div>\n" +
711
                "\n" +
712
                "\t<div class=\"uk-margin-medium\">Manage user claims related to the research community.</div>\n" +
713
                "\t</div>\n" +
714
                "\t</div>\n" +
715
                "\t</div>\n" +
716
                "\t</li>\n" +
717
                "\t<li tabindex=\"-1\">\n" +
718
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
719
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/about/gifs/help.gif\" /></div>\n" +
720
                "\n" +
721
                "\t<div class=\"uk-margin-top\">\n" +
722
                "\t<div>\n" +
723
                "\t<div class=\"uk-text-bold uk-h4\">Help texts</div>\n" +
724
                "\n" +
725
                "\t<div class=\"uk-margin-medium\">Add or edit help text in research community pages.</div>\n" +
726
                "\t</div>\n" +
727
                "\t</div>\n" +
728
                "\t</div>\n" +
729
                "\t</li>\n" +
730
                "\t<li tabindex=\"-1\">\n" +
731
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
732
                "\t<div class=\"uk-first-column\"><img class=\"uk-border-rounded uk-box-shadow-large\" src=\"assets/connect-assets/about/gifs/users.gif\" /></div>\n" +
733
                "\n" +
734
                "\t<div class=\"uk-margin-top\">\n" +
735
                "\t<div>\n" +
736
                "\t<div class=\"uk-text-bold uk-h4\">Users</div>\n" +
737
                "\n" +
738
                "\t<div class=\"uk-margin-medium\">Invite more users to subscribe, manage community subscribers, your personal info and notification settings.</div>\n" +
739
                "\t</div>\n" +
740
                "\t</div>\n" +
741
                "\t</div>\n" +
742
                "\t</li>\n" +
743
                "</ul>\n" +
744
                "\n" +
745
                "<ul class=\"uk-slider-nav uk-dotnav uk-flex-center uk-margin\">\n" +
746
                "\t<li class=\"uk-active\" uk-slider-item=\"0\">&nbsp;</li>\n" +
747
                "\t<li uk-slider-item=\"1\">&nbsp;</li>\n" +
748
                "\t<li uk-slider-item=\"2\">&nbsp;</li>\n" +
749
                "\t<li uk-slider-item=\"3\">&nbsp;</li>\n" +
750
                "\t<li uk-slider-item=\"4\">&nbsp;</li>\n" +
751
                "\t<li uk-slider-item=\"5\">&nbsp;</li>\n" +
752
                "</ul>\n" +
753
                "</div>\n" +
754
                "</div>\n" +
755
                "</div>\n" +
756
                "</div>\n";
757

    
758
  db.pageHelpContent.save({
759
    "page": about_page,
760
    "community": communityID,
761
    "placement": "top",
762
    "order": 2,
763
    "content": top_2_content,
764
    "isActive": true,
765
    "isPriorTo": false
766
  });
767

    
768
  top_3_content = "<div class=\"uk-background-norepeat uk-background-cover uk-section-overlap uk-position-relative uk-preserve-color\" style=\"background-color: #CFDEF1;\">\n" +
769
                "<div class=\"uk-container uk-section\">\n" +
770
                "<div class=\"uk-flex uk-flex-middle uk-padding uk-grid\" uk-grid=\"\">\n" +
771
                "<div class=\"uk-width-expand uk-first-column\">\n" +
772
                "<div class=\"uk-text-bold uk-h4\">We look forward to working together and helping you unlock the full potential of your research community through open science.</div>\n" +
773
                "\n" +
774
                "<div class=\"uk-margin-medium\">Get in touch with our team to find out how.</div>\n" +
775
                "\n" +
776
                "<div class=\"uk-inline\"><a class=\"uk-button portal-button\" href=\"/contact-us\">CONTACT US</a></div>\n" +
777
                "</div>\n" +
778
                "\n" +
779
                "<div class=\"uk-text-center uk-width-1-1@s uk-width-1-3@m\"><img src=\"assets/connect-assets/contact/3.png\" style=\"width:263px\" /></div>\n" +
780
                "</div>\n" +
781
                "</div>\n" +
782
                "</div>\n";
783

    
784
  db.pageHelpContent.save({
785
    "page": about_page,
786
    "community": communityID,
787
    "placement": "top",
788
    "order": 3,
789
    "content": top_3_content,
790
    "isActive": true,
791
    "isPriorTo": false
792
  });
793

    
794
  top_4_content = "<div class=\"uk-container uk-section-small\">\n" +
795
                "<div class=\"uk-margin-medium-bottom uk-text-bold uk-h4\">Frequently Asked Questions</div>\n" +
796
                "\n" +
797
                "<ul class=\"uk-accordion\" uk-accordion=\"\">\n" +
798
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What is a &quot;Research community&quot;?</a>\n" +
799
                "\n" +
800
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
801
                "\t<p>A research community is a community of practice that gathers together researchers and practitioners with common research interests (e.g. a research discipline or a specific research topic) and, possibly, a decisional board. In some cases, a community builds and grows in the context of a research infrastructure that provides services and tools supporting the research activities of the members of a community. In other cases, a community builds and grows in the context of one or more research projects, forming what we call a &ldquo;research initiative&rdquo;.</p>\n" +
802
                "\t</div>\n" +
803
                "\t</li>\n" +
804
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What is the difference between a Community Gateway and the Research Community Dashboard (RCD)?</a>\n" +
805
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
806
                "\t<p>The RCD offers on demand Community Gateways that communities can customize to fit their sharing, publishing and discovery needs. Through the RCD, gateway managers can configure the respective Community Gateway by providing (i) the criteria identifying the subset of the OpenAIRE Research Graph that pertains to the community, and (ii) the community statistics to be made public or private.</p>\n" +
807
                "\t</div>\n" +
808
                "\t</li>\n" +
809
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">How can Research Community thematic services integrate with the Research Community Dashboard (RCD)?</a>\n" +
810
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
811
                "\t<p>Once a Community Gateway has been created, several thematic service integration patterns are possible:</p>\n" +
812
                "\n" +
813
                "\t<ol>\n" +
814
                "\t\t<li><span class=\"uk-text-bold\">Community-specific repository:</span> OpenAIRE can guide your repository managers on how to make the repository &ldquo;OpenAIRE-compliant&rdquo; [LINK to proper page in the OpenAIRE portal]. The gateway managers can configure the gateway, so that all metadata records collected from the repository are available in the gateway. If the repository manager wants to get the enrichments OpenAIRE applies to the records, he/she can activate the Broker service [link to the proper page in the portal] using the Content Provider Dashboard [link to provide].</li>\n" +
815
                "\t\t<li><span class=\"uk-text-bold\">Continuous publishing:</span> thematic services can, once authorised by the user, publish their outputs (e.g. datasets, digital experiments) on behalf of the user. Thematic services and digital experiment platforms can be easily enhanced with a publishing step by integrating the Zenodo API[link to zenodo]. To know more, <a class=\"uk-link\" href=\"https://doi.org/10.5281/zenodo.1314672\" target=\"_blank\"> check out the pilot we have designed with the EPOS-IT infrastructure. </a></li>\n" +
816
                "\t\t<li><span class=\"uk-text-bold\">Community web site:</span> you can use the OpenAIRE Search API [link to api doc] to show the research products relevant to your community in your own website.</li>\n" +
817
                "\t</ol>\n" +
818
                "\t</div>\n" +
819
                "\t</li>\n" +
820
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What does my Research Community gain in terms of Open Science?</a>\n" +
821
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content uk-grid\" hidden=\"\" uk-grid=\"\">\n" +
822
                "\t<div class=\"uk-width-1-1 uk-first-column\"><span class=\"uk-text-bold\">Discovery and reproducibility:</span> Your community will have a single entry point where all research products, of any type (literature, datasets, software, workflows, protocols), are gathered together and linked with semantic relationships. Researchers can find a research product in the gateway (e.g. a research dataset) and easily find out everything related to it and that is needed to re-use it, but also to replicate and reproduce a research activity (e.g. software used to process the dataset, the journal article where the research is described).</div>\n" +
823
                "\n" +
824
                "\t<div class=\"uk-width-1-1 uk-grid-margin uk-first-column\"><span class=\"uk-text-bold\">Sharing:</span> scientific literature is only the tip of the iceberg. With a Community Gateway you say to the members of your community that everything they produce is relevant and that they should get credit for it.</div>\n" +
825
                "\n" +
826
                "\t<div class=\"uk-width-1-1 uk-grid-margin uk-first-column\"><span class=\"uk-text-bold\">Credit for all:</span> Making research data, software, methods and scientific workflows available &ldquo;as soon as possible&rdquo; is one of the &ldquo;mantra&rdquo; of Open Science. If your community has integrated Zenodo into a digital experiment platform, researchers no longer bear the burden of manually publishing their research products, while it is also easier for them to publish different versions, which reflect different stages of their activities.</div>\n" +
827
                "\n" +
828
                "\t<div class=\"uk-width-1-1 uk-grid-margin uk-first-column\"><span class=\"uk-text-bold\">Awareness:</span> Thanks to dedicated pages of the Community Gateway you can suggest best practices to the researchers of the community. Open Science experts of OpenAIRE will be available to assist you.</div>\n" +
829
                "\t</div>\n" +
830
                "\t</li>\n" +
831
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">How is the service part of the European Open Science Cloud?</a>\n" +
832
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
833
                "\t<p>OpenAIRE has onboarded in the EOSC Market Place both the RCD, as a service that offers on-demand Community Gateways, and the Gateways as services openly accessible by researchers to explore specific domains of interest.</p>\n" +
834
                "\t</div>\n" +
835
                "\t</li>\n" +
836
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">Who owns the gateway?</a>\n" +
837
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
838
                "\t<p>The community owns the portal, OpenAIRE operates it.</p>\n" +
839
                "\t</div>\n" +
840
                "\t</li>\n" +
841
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">How is the gateway operated?</a>\n" +
842
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
843
                "\t<p>The gateway is hosted on a virtual machine operated by OpenAIRE and hosted at the ICM data centre [link to ICM data centre web site]. The Gateway is built with Angular and uses RESTful APIs, built with Java and the Spring Framework, to access the OpenAIRE Research Graph. OpenAIRE is responsible to keep the back-end and front-end services up-to-date and monitors the uptime and usage of the gateway, via the matomo web analytics platform. Aggregated usage data is used by the OpenAIRE team for reporting purposes and does not include any personal data.</p>\n" +
844
                "\t</div>\n" +
845
                "\t</li>\n" +
846
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What is the SLA of the service?</a>\n" +
847
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
848
                "\t<p>The RCD and the gateways are subject to the generic <a class=\"uk-link\" href=\"https://www.openaire.eu/service-level-agreement\" target=\"_blank\">OpenAIRE services SLA</a>.</p>\n" +
849
                "\t</div>\n" +
850
                "\t</li>\n" +
851
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What are the costs?</a>\n" +
852
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
853
                "\t<div>Costs include hardware, hardware management, application administration, software maintenance, and text mining.</div>\n" +
854
                "\n" +
855
                "\t<div>Rates will be applied depending on the kind of functionality required, which may be limited to out-of-the-box text mining services or include custom text-mining services. For 2019-2020 the predicted cost is 17,000EUR per year for the basic implementation and 20,000EUR per year to include customized text mining.</div>\n" +
856
                "\n" +
857
                "\t<div>Researchers of the community shall not pay to access the Community Gateway.</div>\n" +
858
                "\t</div>\n" +
859
                "\t</li>\n" +
860
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">In what other areas can my Research community collaborate with OpenAIRE?</a>\n" +
861
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content uk-grid uk-grid-stack\" hidden=\"\" uk-grid=\"\">\n" +
862
                "\t<div class=\"uk-width-1-1\">\n" +
863
                "\t<div style=\"font-style: italic\">Open Science training</div>\n" +
864
                "\tHelp us training on Open Science students and researchers of your community by organising a workshop. <a class=\"uk-link\" href=\"https://www.openaire.eu/workshops-page\" target=\"_blank\">Check for ideas and materials</a>.</div>\n" +
865
                "\n" +
866
                "\t<div class=\"uk-width-1-1\">\n" +
867
                "\t<div style=\"font-style: italic\">Train the trainer</div>\n" +
868
                "\tJoin the <a class=\"uk-link\" href=\"https://www.openaire.eu/cop-training\" target=\"_blank\">OpenAIRE Community of Practice</a>, an informal network to share training experience on Open Science, research and e-infrastructures.</div>\n" +
869
                "\n" +
870
                "\t<div class=\"uk-width-1-1\">\n" +
871
                "\t<div style=\"font-style: italic\">Citizen Science</div>\n" +
872
                "\tDo you collaborate with schools? Learn more about the <a class=\"uk-link\" href=\"https://www.openaire.eu/citizen-science-activities-in-openaire\" target=\"_blank\">OpenAIRE activities for Citizen Science</a>.</div>\n" +
873
                "\n" +
874
                "\t<div class=\"uk-width-1-1\">\n" +
875
                "\t<div style=\"font-style: italic\">Open Innovation Programme</div>\n" +
876
                "\tSpread the word about the OpenAIRE <a class=\"uk-link\" href=\"https://www.openaire.eu/open-innovation-in-openaire\" target=\"_blank\">Open Innovation programme</a> for SMEs, start-ups and research labs. The programme&rsquo;s goal is to discover, support and fund innovative ideas and implementations of software in the Open Science domain.</div>\n" +
877
                "\t</div>\n" +
878
                "\t</li>\n" +
879
                "</ul>\n" +
880
                "</div>\n";
881

    
882
  db.pageHelpContent.save({
883
    "page": about_page,
884
    "community": communityID,
885
    "placement": "top",
886
    "order": 4,
887
    "content": top_4_content,
888
    "isActive": true,
889
    "isPriorTo": false
890
  });
891
}
892

    
893
function addHelpTextsInAboutLearnInDepthPage() {
894
  communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString();
895
  aboutLearnInDepth_page = db.page.find({route: "/about/learn-in-depth"}).map(function (page) { return page._id.str; }).toString();
896

    
897
  top_1_content = "<div class=\"uk-background-norepeat uk-background-cover uk-section uk-padding-remove-bottom uk-section-overlap uk-position-relative uk-preserve-color\" style=\"min-height: calc(7.89999px + 60vh); background-image: url('assets/connect-assets/cloud/background.png') !important;\">\n" +
898
                "<div class=\"uk-container uk-container-large uk-section uk-margin-top uk-padding-remove-top\">\n" +
899
                "<div class=\"uk-grid\" uk-grid=\"\">\n" +
900
                "<div class=\"uk-margin-large-top uk-width-3-4@m uk-width-1-1@s uk-first-column\">\n" +
901
                "<h1 class=\"uk-width-3-4  uk-margin-medium-bottom\">Let&rsquo;s set up a Gateway for your Community <strong>Together</strong></h1>\n" +
902
                "\n" +
903
                "<div class=\"uk-width-4-5@m uk-width-1-1@s uk-h5\">\n" +
904
                "<div class=\"uk-margin-bottom\">You don&rsquo;t have to go alone.</div>\n" +
905
                "\n" +
906
                "<div>We work with you in <strong>4 collaborative steps</strong> to identify your needs, putting in practice our expertise on open science so you get the most out of OpenAIRE&rsquo;s operational services.</div>\n" +
907
                "</div>\n" +
908
                "</div>\n" +
909
                "\n" +
910
                "<div class=\"uk-margin-large-top uk-width-expand\"><img src=\"assets/connect-assets/banner/together.png\" style=\"height:285px; width:308px\" /></div>\n" +
911
                "</div>\n" +
912
                "</div>\n" +
913
                "</div>\n";
914

    
915
  db.pageHelpContent.save({
916
    "page": aboutLearnInDepth_page,
917
    "community": communityID,
918
    "placement": "top",
919
    "order": 1,
920
    "content": top_1_content,
921
    "isActive": true,
922
    "isPriorTo": false
923
  });
924

    
925
  top_2_content = "<div class=\"uk-container uk-container-large uk-section uk-padding-remove-top\">\n" +
926
                "<ul class=\"uk-breadcrumb\">\n" +
927
                "\t<li><a class=\"router-link-active\" href=\"/about/learn-how\">About</a></li>\n" +
928
                "\t<li><span class=\"active\">Learn in-depth</span></li>\n" +
929
                "</ul>\n" +
930
                "\n" +
931
                "<div class=\"uk-grid\" uk-grid=\"\">\n" +
932
                "<div class=\"uk-width-1-6 uk-position-relative uk-flex uk-flex-column uk-first-column\"><img class=\"uk-align-center\" src=\"assets/connect-assets/about/1.png\" style=\"width:100px\" /><img class=\"uk-align-center\" src=\"assets/connect-assets/sketch_line_arrow.svg\" /></div>\n" +
933
                "\n" +
934
                "<div class=\"uk-width-expand\">\n" +
935
                "<div class=\"uk-margin-medium uk-text-bold uk-h4\">1. Analyse your needs</div>\n" +
936
                "\n" +
937
                "<div style=\"font-style: italic;\">Identify the scope and goals. Understand open science practices within EOSC and the OpenAIRE services</div>\n" +
938
                "\n" +
939
                "<p>In this stage, you get to talk to the OpenAIRE team. Share your expectations with us and let us give you all the details about the operational OpenAIRE services, which will be integrated into the Gateway for your community.</p>\n" +
940
                "\n" +
941
                "<p>Here are the most important questions that the OpenAIRE team will ask you, in order to understand your scope and goals:</p>\n" +
942
                "\n" +
943
                "<ul class=\"uk-list uk-list-bullet\">\n" +
944
                "\t<li>Do you want a gateway, where researchers can have access to all research products of a discipline? Do you want a gateway that gathers any research outcome, produced thanks to the funding and services of a given research infrastructure?</li>\n" +
945
                "\t<li>Is your community (in)formally organized in sub-communities? Would you like to browse research products and get statistics also for these sub-communities? For example, the European Grid Infrastructure (EGI) features &ldquo;virtual organizations&rdquo; that represent discipline-specific communities and/or specific research projects. The research infrastructure DARIAH, on the other hand, is organised in national nodes (e.g. DARIAH-IT, DARIAH-DE).</li>\n" +
946
                "\t<li>How can the OpenAIRE team identify the research products of your community, among all those available in the OpenAIRE Graph? Through a series of steps: set of keywords, acknowledgment statements, set of projects, set of repositories, etc. This can be partial and provisional information that will serve as a starting point to the OpenAIRE team. You will be able to refine and update this information, in the second phase &ldquo;Develop a pilot&rdquo;.</li>\n" +
947
                "</ul>\n" +
948
                "</div>\n" +
949
                "</div>\n" +
950
                "\n" +
951
                "<div class=\"uk-grid\" uk-grid=\"\" uk-height-match=\"\">\n" +
952
                "<div class=\"uk-width-1-6 uk-position-relative uk-flex uk-flex-column uk-first-column\"><img class=\"uk-align-center\" src=\"assets/connect-assets/about/2.png\" style=\"width:100px\" /><img class=\"uk-align-center\" src=\"assets/connect-assets/sketch_line_arrow.svg\" /></div>\n" +
953
                "\n" +
954
                "<div class=\"uk-width-expand\">\n" +
955
                "<div class=\"uk-margin-medium uk-text-bold uk-h4\">2. Develop a pilot</div>\n" +
956
                "\n" +
957
                "<div style=\"font-style: italic;\">We translate your needs into rules and processes and we configure operational OpenAIRE services.</div>\n" +
958
                "\n" +
959
                "<p>Based on the information gathered in phase 1 &ldquo;Analyse your needs&rdquo;, the OpenAIRE team will set up a pilot Gateway. We will configure the OpenAIRE mining algorithms to identify research products of the OpenAIRE Graph that are relevant to your community. Those, together with some basic statistics, will be available in the pilot version of the Community Gateway that will be deployed on the OpenAIRE BETA infrastructure.</p>\n" +
960
                "\n" +
961
                "<p>The OpenAIRE team will give you a demo of the Community Gateway, with details on how to refine and update the configuration of the Community Gateway, both in terms of criteria for including research products and in terms of logo and visible portal pages.</p>\n" +
962
                "</div>\n" +
963
                "</div>\n" +
964
                "\n" +
965
                "<div class=\"uk-grid\" uk-grid=\"\" uk-height-match=\"\">\n" +
966
                "<div class=\"uk-width-1-6 uk-position-relative uk-flex uk-flex-column uk-first-column\"><img class=\"uk-align-center\" src=\"assets/connect-assets/about/3.png\" style=\"width:100px\" /><img class=\"uk-align-center\" src=\"assets/connect-assets/sketch_line_arrow_large.svg\" /></div>\n" +
967
                "\n" +
968
                "<div class=\"uk-width-expand\">\n" +
969
                "<div class=\"uk-margin-medium uk-text-bold uk-h4\">3. Test and Validate</div>\n" +
970
                "\n" +
971
                "<div style=\"font-style: italic;\">You validate and test your new Community Gateway (portal). If needed, we further refine and adapt to your needs</div>\n" +
972
                "\n" +
973
                "<p>Upon the completion of phase 2, take the time you need to test all its features, from search and browse for research products, to addition/removal of statistics from the portal. You can report any issue you might find and ask questions directly to the dedicated OpenAIRE team, via a specially designed collaboration tool.</p>\n" +
974
                "\n" +
975
                "<p>Typically, this phase takes some months, as you will have to go through certain procedures. Change the configuration of the criteria to include research products, wait for the new configuration to be applied on the OpenAIRE graph and validate the results, before you actually decide that the coverage of research products for your community is adequate.</p>\n" +
976
                "\n" +
977
                "<p>For some communities, the OpenAIRE team may also be able to implement dedicated mining algorithms (e.g. to find acknowledgement statements to your community/infrastructure in the full-texts of research articles) that may require several rounds of application, validation, and fine-tuning, before it reaches a high precision and recall. Your feedback is very important to minimize the effort and time needed for this process to complete.</p>\n" +
978
                "\n" +
979
                "<div class=\"uk-width-1-1 uk-text-center uk-margin-medium \"><img src=\"assets/connect-assets/OpenAIRE-RCD_howtos.png\" style=\"height:auto; width:auto\" /></div>\n" +
980
                "</div>\n" +
981
                "</div>\n" +
982
                "\n" +
983
                "<div class=\"uk-grid\" uk-grid=\"\" uk-height-match=\"\">\n" +
984
                "<div class=\"uk-width-1-6 uk-position-relative uk-first-column\"><img class=\"uk-align-center\" src=\"assets/connect-assets/about/4.png\" style=\"width:100px\" /></div>\n" +
985
                "\n" +
986
                "<div class=\"uk-width-expand\">\n" +
987
                "<div class=\"uk-margin-medium  uk-text-bold uk-h4\">4. Roll out the service</div>\n" +
988
                "\n" +
989
                "<div style=\"font-style: italic;\">We jointly roll out your new portal. You take over the business operations and start engaging your researchers</div>\n" +
990
                "\n" +
991
                "<p>Here we are: the coverage of research products is good, interesting statistics and charts have been selected, and the portal pages available for end-users are ready. We can roll out the Community Gateway and make it available to all the researchers of the community!</p>\n" +
992
                "\n" +
993
                "<p>You, as a Community manager, become the main &ldquo;promoter&rdquo; of the Community Gateway. Engage the researchers of your community and, when applicable, inform the managers of the research infrastructure about the availability of tools for impact monitoring.</p>\n" +
994
                "\n" +
995
                "<p>Remember that you will still be able to change the configuration of the Community Gateway in order to address any issue that may arise and to follow the evolution of the community (e.g. a new project or a new content provider that was not previously available in OpenAIRE).</p>\n" +
996
                "\n" +
997
                "<p>Remember that you don&rsquo;t have to go alone: the dedicated issue tracker you used in the &ldquo;Test and Validate&rdquo; phase is always available for you to contact the OpenAIRE team and ask for support.</p>\n" +
998
                "</div>\n" +
999
                "</div>\n" +
1000
                "</div>\n";
1001

    
1002
  db.pageHelpContent.save({
1003
    "page": aboutLearnInDepth_page,
1004
    "community": communityID,
1005
    "placement": "top",
1006
    "order": 2,
1007
    "content": top_2_content,
1008
    "isActive": true,
1009
    "isPriorTo": false
1010
  });
1011

    
1012
  top_3_content = "<div class=\"uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color\" style=\"background-color: #CFDEF1;\">\n" +
1013
                "<div class=\"uk-container uk-section\">\n" +
1014
                "<div class=\"uk-flex uk-flex-middle uk-padding uk-grid\" uk-grid=\"\">\n" +
1015
                "<div class=\"uk-text-center uk-width-1-1@s uk-width-1-3@m uk-first-column\"><img src=\"assets/connect-assets/contact/2.png\" style=\"width:329px\" /></div>\n" +
1016
                "\n" +
1017
                "<div class=\"uk-width-expand\">\n" +
1018
                "<div class=\"uk-text-bold uk-h4\">\n" +
1019
                "<div>Let us help you develop a collaborative Open Science Gateway for your community. It is fast. It is reliable.</div>\n" +
1020
                "</div>\n" +
1021
                "\n" +
1022
                "<div class=\"uk-margin-medium\">Get in touch with our team to find out how.</div>\n" +
1023
                "\n" +
1024
                "<div class=\"uk-inline\"><a class=\"uk-button portal-button\" href=\"/contact-us\">CONTACT US</a></div>\n" +
1025
                "</div>\n" +
1026
                "</div>\n" +
1027
                "</div>\n" +
1028
                "</div>\n";
1029

    
1030
  db.pageHelpContent.save({
1031
    "page": aboutLearnInDepth_page,
1032
    "community": communityID,
1033
    "placement": "top",
1034
    "order": 3,
1035
    "content": top_3_content,
1036
    "isActive": true,
1037
    "isPriorTo": false
1038
  });
1039
}
1040

    
1041
function addHelpTextsInContactUsPage() {
1042
  communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString();
1043
  contactUs_page = db.page.find({route: "/contact-us"}).map(function (page) { return page._id.str; }).toString();
1044

    
1045
  right_content = "<div class=\"uk-margin-auto-top uk-margin-remove-bottom  uk-text-bold uk-h4\">OpenAIRE gives you the virtual environment and services designed for your community to:</div>\n" +
1046
                "\n" +
1047
                "<ul class=\"uk-list uk-list-divider uk-padding uk-padding-remove-left uk-margin-auto-top\">\n" +
1048
                "\t<li>\n" +
1049
                "\t<h5><span class=\"uk-text-bold\">Create and Manage</span> your Community Gateway</h5>\n" +
1050
                "\t</li>\n" +
1051
                "\t<li>\n" +
1052
                "\t<h5><span class=\"uk-text-bold\">Access, share and link</span> together all your research</h5>\n" +
1053
                "\t</li>\n" +
1054
                "\t<li>\n" +
1055
                "\t<h5><span class=\"uk-text-bold\">Monitor and report</span> your community&#39;s progress</h5>\n" +
1056
                "\t</li>\n" +
1057
                "</ul>\n";
1058

    
1059
  db.pageHelpContent.save({
1060
    "page": contactUs_page,
1061
    "community": communityID,
1062
    "placement": "right",
1063
    "order": 1,
1064
    "content": right_content,
1065
    "isActive": true,
1066
    "isPriorTo": false
1067
  });
1068
}
1069

    
1070
function addHelpTextsInContentPolicyPage() {
1071
  print("add help contents in Content Policy Page for community connect\n");
1072

    
1073
  communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString();
1074
  content_page = db.page.find({route: "/content"}).map(function (page) { return page._id.str; }).toString();
1075

    
1076
  top_content = "<div class=\"uk-margin-top tm-middle uk-container\" id=\"tm-main\">\n" +
1077
                "<div class=\"uk-container  uk-margin-bottom\">\n" +
1078
                "<div class=\"uk-article-title custom-article-title\">Content policy</div>\n" +
1079
                "\n" +
1080
                "<div>\n" +
1081
                "<p>OpenAIRE builds an open scholarly graph of research products (publications, datasets, software and other types of research products), linked to each other and to fundings, projects and organizations. The information used to build the graph is collected from the OpenAIRE network of content providers and is inferred by OpenAIRE algorithms. OpenAIRE algorithms are capable of detecting duplicates and mining information from the full-texts of Open Access publications. For more details about the construction of the graph, please check <a href=\"https://beta.openaire.eu/aggregation-and-content-provision-workflows\" target=\"_blank\">here</a>.</p>\n" +
1082
                "\n" +
1083
                "<p>Thanks to the Research Community Dashboard (RCD), researchers have a dedicated view of the OpenAIRE graph where only the research products relevant to the community are searchable and browsable.<br />\n" +
1084
                "There are several ways to decide if a research product is relevant to a given community:</p>\n" +
1085
                "\n" +
1086
                "<p class=\"uk-margin-left\"><strong>Links:</strong> Users can &quot;claim&quot; that a research result is relevant to a community via the <a href=\"/participate/claim\">Link</a> functionality of the Research community dashboard.<br />\n" +
1087
                "For more details about linking functionality, please check <a href=\"https://beta.openaire.eu/linking\" target=\"_blank\">here</a>.</p>\n" +
1088
                "\n" +
1089
                "<div class=\"uk-margin-left uk-margin-top\"><strong>OpenAIRE algorithms:</strong> Community managers can configure the OpenAIRE algorithms, in order to automatically assign research products to a community based on:\n" +
1090
                "\n" +
1091
                "<div class=\"uk-margin-left\">\n" +
1092
                "<ul class=\"uk-list uk-list-bullet  \">\n" +
1093
                "\t<li>The content providers they have been collected from.<br />\n" +
1094
                "\tExamples: all research products collected from &quot;NeuroVault&quot; are relevant to the Neuroinformatics community; all research products collected from the LINDAT/CLARIN repository are relevant to the CLARIN research initiative.</li>\n" +
1095
                "\t<li>The projects they have been produced in.<br />\n" +
1096
                "\tExamples: all research products of the project &quot;Tara Mediterranee&quot; are relevant to the European Marine Science community; all research products of the project &quot;ARIADNE&quot; are relevant to the Digital Humanities and Cultural Heritage community.</li>\n" +
1097
                "\t<li>The subjects and keywords (only for RCD serving research communities).<br />\n" +
1098
                "\tExamples: all research products having &quot;SDG11 - Sustainable cities and communities&quot; among the subjects are relevant to the Greek Sustainable Development Solutions Network community; all research products with subject &quot;agriculture&quot; are relevant to the AgInfra community</li>\n" +
1099
                "</ul>\n" +
1100
                "</div>\n" +
1101
                "</div>\n" +
1102
                "\n" +
1103
                "<div class=\"uk-margin-left uk-margin-top\"><strong>Acknowledgement statements:</strong> Acknowledgement statements found in full-texts (only for RCDs serving research infrastructures/initiatives)</div>\n" +
1104
                "</div>\n" +
1105
                "</div>\n" +
1106
                "</div>\n";
1107

    
1108
  db.pageHelpContent.save({
1109
    "page": content_page,
1110
    "community": communityID,
1111
    "placement": "top",
1112
    "order": 1,
1113
    "content": top_content,
1114
    "isActive": true,
1115
    "isPriorTo": false
1116
  });
1117
}
1118

    
1119

    
1120

    
1121
function createCommunity(name,communityPid){
1122
  var communitySaved =  db.community.find( { pid: communityPid }).map( function(community) { return community._id.str; } ).toString()
1123
  if(communitySaved){
1124
    print("\n\n Community \'"+name +"\' exists\n\n");
1125
    return ;
1126
  }
1127
  print("\n\n Create community \n\n");
1128
  print("Name:"+name);
1129
  print("communityPid:"+communityPid);
1130

    
1131
  // Other Pages
1132
  home = db.page.find( { route: "/" }).map( function(page) { return page._id.str; } ).toString()
1133

    
1134
  // Other Pages for Connect
1135
  about = db.page.find( { route: "/about/learn-how" }).map( function(page) { return page._id.str; } ).toString()
1136
  aboutLearnInDepth = db.page.find( { route: "/about/learn-in-depth" }).map( function(page) { return page._id.str; } ).toString()
1137
  contactUs = db.page.find( { route: "/contact-us" }).map( function(page) { return page._id.str; } ).toString()
1138
  contentPolicy = db.page.find( { route: "/content" }).map( function(page) { return page._id.str; } ).toString()
1139

    
1140
  curators = db.page.find( { route: "/curators" }).map( function(page) { return page._id.str; } ).toString()
1141
  organizations = db.page.find( { route: "/organizations" }).map( function(page) { return page._id.str; } ).toString()
1142
  invite = db.page.find( { route: "/invite" }).map( function(page) { return page._id.str; } ).toString()
1143
  myCommunities = db.page.find( { route: "/myCommunities" }).map( function(page) { return page._id.str; } ).toString();
1144

    
1145
  // Testing Page for help contents (Connect)
1146
  helperTest = db.page.find( { route: "/helper-test" }).map( function(page) { return page._id.str; } ).toString()
1147

    
1148
  // Other Pages for Explore
1149
  mailPreferences = db.page.find( { route: "/mail-preferences" }).map( function(page) { return page._id.str; } ).toString()
1150

    
1151
  // Landing Pages
1152
  publicationLanding = db.page.find( { route: "/search/publication" }).map( function(page) { return page._id.str; } ).toString()
1153
  datasetLanding = db.page.find( { route: "/search/dataset" }).map( function(page) { return page._id.str; } ).toString()
1154
  softwareLanding = db.page.find( { route: "/search/software" }).map( function(page) { return page._id.str; } ).toString()
1155
  orpLanding = db.page.find( { route: "/search/other" }).map( function(page) { return page._id.str; } ).toString();
1156
  projectLanding = db.page.find( { route: "/search/project" }).map( function(page) { return page._id.str; } ).toString()
1157
  organizationLanding = db.page.find( { route: "/search/organization" }).map( function(page) { return page._id.str; } ).toString()
1158
  dataproviderLanding = db.page.find( { route: "/search/dataprovider" }).map( function(page) { return page._id.str; } ).toString()
1159
  projectReport = db.page.find( { route: "/project-report" }).map( function(page) { return page._id.str; } ).toString()
1160

    
1161
  // Search Pages
1162
  searchFind = db.page.find( { route: "/search/find" }).map( function(page) { return page._id.str; } ).toString()
1163

    
1164
  searchCommunities = db.page.find( { route: "/search/find/communities" }).map( function(page) { return page._id.str; } ).toString()
1165

    
1166
  searchResearchOutcomes = db.page.find( { route: "/search/find/research-outcomes" }).map( function(page) { return page._id.str; } ).toString()
1167
  searchProject = db.page.find( { route: "/search/find/projects" }).map( function(page) { return page._id.str; } ).toString()
1168
  searchOrganization = db.page.find( { route: "/search/find/organizations" }).map( function(page) { return page._id.str; } ).toString()
1169
  searchDataprovider = db.page.find( { route: "/search/find/dataproviders" }).map( function(page) { return page._id.str; } ).toString()
1170

    
1171
  // Advanced Search Pages
1172
  advancedSearchResearchOutcomes = db.page.find( { route: "/search/advanced/research-outcomes" }).map( function(page) { return page._id.str; } ).toString()
1173
  advancedSearchProject = db.page.find( { route: "/search/advanced/projects" }).map( function(page) { return page._id.str; } ).toString()
1174
  advancedSearchOrganization = db.page.find( { route: "/search/advanced/organizations" }).map( function(page) { return page._id.str; } ).toString()
1175
  advancedSearchDataprovider = db.page.find( { route: "/search/advanced/dataproviders" }).map( function(page) { return page._id.str; } ).toString()
1176

    
1177
  // Search Content Providers Pages
1178
  searchJournals = db.page.find( { route: "/search/journals" }).map( function(page) { return page._id.str; } ).toString()
1179
  searchEntityRegistries = db.page.find( { route: "/search/entity-registries" }).map( function(page) { return page._id.str; } ).toString()
1180
  searchContentProviders = db.page.find( { route: "/search/content-providers" }).map( function(page) { return page._id.str; } ).toString()
1181
  searchJournalsTable = db.page.find( { route: "/search/journals-table" }).map( function(page) { return page._id.str; } ).toString()
1182
  searchEntityRegistriesTable = db.page.find( { route: "/search/entity-registries-table" }).map( function(page) { return page._id.str; } ).toString()
1183
  searchContentProvidersTable = db.page.find( { route: "/search/content-providers-table" }).map( function(page) { return page._id.str; } ).toString()
1184

    
1185
  // Deposit Pages
1186
  shareInZenodo = db.page.find( { route: "/participate/deposit/zenodo" }).map( function(page) { return page._id.str; } ).toString();
1187
  depositLearnHow = db.page.find( { route: "/participate/deposit/learn-how" }).map( function(page) { return page._id.str; } ).toString();
1188
  depositSearch = db.page.find( { route: "/participate/deposit/search" }).map( function(page) { return page._id.str; } ).toString();
1189

    
1190
  // Linking Pages
1191
  link = db.page.find( { route: "/participate/claim" }).map( function(page) { return page._id.str; } ).toString()
1192
  directLink = db.page.find( { route: "/participate/direct-claim" }).map( function(page) { return page._id.str; } ).toString()
1193
  myClaims = db.page.find( { route: "/myclaims" }).map( function(page) { return page._id.str; } ).toString()
1194
  administratorClaims = db.page.find( { route: "/claims" }).map( function(page) { return page._id.str; } ).toString()
1195
  claimsProjectManager = db.page.find( { route: "/claims-project-manager" }).map( function(page) { return page._id.str; } ).toString()
1196

    
1197
  //monitor = db.page.find( { route: "/monitor" }).map( function(page) { return page._id.str; } ).toString()
1198

    
1199
  var community_pages = {};
1200
  community_pages[home] = true;
1201

    
1202
  community_pages[about] = true;
1203
  community_pages[aboutLearnInDepth] = true;
1204
  community_pages[contactUs] = true;
1205
  community_pages[contentPolicy] = true;
1206
  community_pages[myCommunities] = true;
1207

    
1208
  community_pages[curators] = false;
1209
  community_pages[organizations] = false;
1210
  community_pages[invite] = true;
1211
  community_pages[helperTest] = true;
1212
  community_pages[mailPreferences] = true;
1213

    
1214
  community_pages[publicationLanding] = true;
1215
  community_pages[datasetLanding] = true;
1216
  community_pages[softwareLanding] = true;
1217
  community_pages[orpLanding] = true;
1218
  community_pages[projectLanding] = true;
1219
  community_pages[organizationLanding] = true;
1220
  community_pages[dataproviderLanding] = true;
1221
  community_pages[projectReport] = true;
1222

    
1223
  community_pages[searchFind] = true;
1224
  community_pages[searchCommunities] = true;
1225
  community_pages[searchResearchOutcomes] = true;
1226
  community_pages[searchProject] = true;
1227
  community_pages[searchOrganization] = true;
1228
  community_pages[searchDataprovider] = true;
1229

    
1230
  community_pages[advancedSearchResearchOutcomes] = true;
1231
  community_pages[advancedSearchProject] = true;
1232
  community_pages[advancedSearchOrganization] = true;
1233
  community_pages[advancedSearchDataprovider] = true;
1234

    
1235
  community_pages[searchJournals] = true;
1236
  community_pages[searchEntityRegistries] = true;
1237
  community_pages[searchContentProviders] = true;
1238
  community_pages[searchJournalsTable] = true;
1239
  community_pages[searchEntityRegistriesTable] = true;
1240
  community_pages[searchContentProvidersTable] = true;
1241

    
1242
  community_pages[shareInZenodo] = true;
1243
  community_pages[depositLearnHow] = true;
1244
  community_pages[depositSearch] = true;
1245

    
1246
  community_pages[link] = true;
1247
  community_pages[directLink] = true;
1248
  community_pages[myClaims] = true;
1249
  community_pages[administratorClaims] = true;
1250
  community_pages[claimsProjectManager] = true;
1251

    
1252
  // community_pages[monitor] = true;
1253

    
1254
  publicationId = db.entity.find( { pid: "publication" }).map( function(entity) { return entity._id.str; } ).toString()
1255
  datasetId = db.entity.find( { pid: "dataset" }).map( function(entity) { return entity._id.str; } ).toString()
1256
  softwareId = db.entity.find( { pid: "software" }).map( function(entity) { return entity._id.str; } ).toString()
1257
  orpId = db.entity.find( { pid: "orp" }).map( function(entity) { return entity._id.str; } ).toString();
1258
  projectId = db.entity.find( { pid: "project" }).map( function(entity) { return entity._id.str; } ).toString()
1259
  organizationId = db.entity.find( { pid: "organization" }).map( function(entity) { return entity._id.str; } ).toString()
1260
  datasourceId = db.entity.find( { pid: "datasource" }).map( function(entity) { return entity._id.str; } ).toString();
1261
  print("Pages:"+publicationId);
1262
  var community_entities = {}
1263
  community_entities[publicationId] = true;
1264
  community_entities[datasetId] = true;
1265
  community_entities[softwareId] = true;
1266
  community_entities[orpId] = true;
1267
  community_entities[projectId] = true;
1268
  community_entities[organizationId] = true;
1269
  community_entities[datasourceId] = true;
1270
  db.community.save({	"name" : name,
1271
    "pid" : communityPid, "pages" : community_pages, "entities" : community_entities})
1272

    
1273
  openaireCommunity = db.community.find( { pid: communityPid }).map( function(community) { return community._id.str; } ).toString()
1274

    
1275
  var numbers_map = {};
1276
  numbers_map["total"] = { "showInMonitor" : true, "showInDashboard" : false };
1277
  numbers_map["project"] = { "showInMonitor" : true, "showInDashboard" : false };
1278
  numbers_map["open"] = { "showInMonitor" : true, "showInDashboard" : false };
1279
  numbers_map["closed"] = { "showInMonitor" : true, "showInDashboard" : false };
1280
  numbers_map["embargo"] = { "showInMonitor" : true, "showInDashboard" : false };
1281
  numbers_map["restricted"] = { "showInMonitor" : true, "showInDashboard" : false };
1282
  var numbers = {"map":numbers_map};
1283
  var charts_map = {};
1284
  charts_map["timeline"] = { "showInMonitor" : true, "showInDashboard" : false };
1285
  charts_map["graph"] = { "showInMonitor" : true, "showInDashboard" : false };
1286
  charts_map["projectTable"] = { "showInMonitor" : true, "showInDashboard" : false };
1287
  charts_map["projectColumn"] = { "showInMonitor" : true, "showInDashboard" : false };
1288
  charts_map["projectPie"] = { "showInMonitor" : true, "showInDashboard" : false };
1289
  var charts = {"map":charts_map};
1290

    
1291
  var statistics_entities = {"charts":charts,"numbers":numbers}
1292
  var entities = {};
1293
  entities["publication"]=statistics_entities;
1294
  entities["dataset"]=statistics_entities;
1295
  entities["software"]=statistics_entities;
1296
  entities["orp"]=statistics_entities;
1297
  var statistics = {"pid" : communityPid, "entities" : entities};
1298

    
1299
  db.statistics.save(statistics);
1300

    
1301
  var subscribers = [];
1302
  db.communitySubscribers.save({ "pid" : communityPid, "subscribers" : subscribers})
1303

    
1304
  depositLearnHow_community_content = "<div class=\"uk-width-3-5 uk-align-center\">\n" +
1305
    "<div class=\"uk-text-bold\">How to comply with funder Open Access policies</div>\n" +
1306
    "\n" +
1307
    "<ul class=\"uk-list uk-list-bullet\">\n" +
1308
    "\t<li>Read the <a class=\"custom-external\" href=\"https://www.openaire.eu/how-to-comply-to-h2020-mandates-for-publications\" target=\"_blank\"> OpenAIRE guide to learn how to comply with EC H2020 Open Access policy on publications </a></li>\n" +
1309
    "\t<li>Read the <a class=\"custom-external\" href=\"https://www.openaire.eu/how-to-comply-to-h2020-mandates-for-data\" target=\"_blank\"> OpenAIRE guide to learn how to comply with EC H2020 Open Access policy on research data </a></li>\n" +
1310
    "\t<li>If you want to know about National Open Access policies, please check them out <a class=\"custom-external\" href=\"https://www.openaire.eu/frontpage/country-pages\" target=\"_blank\">here</a></li>\n" +
1311
    "\t<li>All OpenAIRE guides can be found <a class=\"custom-external\" href=\"https://www.openaire.eu/guides\" target=\"_blank\">here</a></li>\n" +
1312
    "</ul>\n" +
1313
    "</div>\n";
1314

    
1315
  depositLearnHow_explore_content = "<div class=\"uk-margin-top\" style=\"background: #EFEFEF 0% 0% no-repeat padding-box;\">\n" +
1316
    "<div class=\"uk-width-3-5 uk-align-center uk-padding uk-padding-remove-horizontal uk-margin-remove-bottom\">\n" +
1317
    "<div class=\"uk-text-bold\">How to comply with funder Open Access policies</div>\n" +
1318
    "\n" +
1319
    "<ul class=\"uk-list uk-list-bullet\">\n" +
1320
    "\t<li>Read the <a class=\"custom-external\" href=\"https://www.openaire.eu/how-to-comply-to-h2020-mandates-for-publications\" target=\"_blank\"> OpenAIRE guide to learn how to comply with EC H2020 Open Access policy on publications </a></li>\n" +
1321
    "\t<li>Read the <a class=\"custom-external\" href=\"https://www.openaire.eu/how-to-comply-to-h2020-mandates-for-data\" target=\"_blank\"> OpenAIRE guide to learn how to comply with EC H2020 Open Access policy on research data </a></li>\n" +
1322
    "\t<li>If you want to know about National Open Access policies, please check them out <a class=\"custom-external\" href=\"https://www.openaire.eu/frontpage/country-pages\" target=\"_blank\">here</a></li>\n" +
1323
    "\t<li>All OpenAIRE guides can be found <a class=\"custom-external\" href=\"https://www.openaire.eu/guides\" target=\"_blank\">here</a></li>\n" +
1324
    "</ul>\n" +
1325
    "</div>\n" +
1326
    "</div>\n";
1327

    
1328
  organizations_content = '<div> <p>Here you can write more details about the organizations related to your community.</p> </div>';
1329

    
1330
  communityID = db.community.find({pid: communityPid}).map(function (community) { return community._id.str; }).toString();
1331

    
1332
  if (communityPid == "openaire") {
1333
    db.pageHelpContent.save({
1334
      "page" : depositLearnHow,
1335
      "community" : communityID,
1336
      "placement" : "bottom",
1337
      "order" : 1,
1338
      "content" : depositLearnHow_explore_content,
1339
      "isActive" : true,
1340
      "isPriorTo" : false
1341
    });
1342

    
1343
    addHelpTextsInHomePage_explore();
1344
  }
1345
  print("openaire help texts added");
1346

    
1347
  if (communityPid == "connect") {
1348
    addHelpTextsInHomePage_connect();
1349
    addHelpTextsInAboutLearnHowPage();
1350
    addHelpTextsInAboutLearnInDepthPage();
1351
    addHelpTextsInContactUsPage();
1352
    addHelpTextsInContentPolicyPage();
1353
  }
1354
  print("connect help texts added");
1355

    
1356
  if (communityPid != "connect" && communityPid != "openaire") {
1357
    db.pageHelpContent.save({
1358
      "page" : depositLearnHow,
1359
      "community" : communityID,
1360
      "placement" : "bottom",
1361
      "order" : 1,
1362
      "content" : depositLearnHow_community_content,
1363
      "isActive" : true,
1364
      "isPriorTo" : false
1365
    });
1366

    
1367
    db.pageHelpContent.save({
1368
      "page" : organizations,
1369
      "community" : communityID,
1370
      "placement" : "top",
1371
      "order" : 1,
1372
      "content" : organizations_content,
1373
      "isActive" : false,
1374
      "isPriorTo" : false
1375
    });
1376
  }
1377
  print("community help texts added");
1378
  print("\n\n Done \n\n");
1379
}
1380

    
1381
function createAllCommunities(){
1382
  createCommunity("OpenAIRE","openaire");
1383
  createCommunity("Connect","connect");
1384
  createCommunity("EGI Federation","egi");
1385
  createCommunity("Environment and Economy ","ee");
1386
  createCommunity("Fisheries and Aquaculture Management","fam");
1387
  createCommunity("Instruct-ERIC","instruct");
1388
  createCommunity("Elixir","elixir-gr");
1389
  createCommunity("Marine Environmental Science","mes");
1390
  createCommunity("EC post-grant Open Access Pilot","oa-pg");
1391
  createCommunity("Neuroinformatics","ni");
1392
  createCommunity("Research Data Alliance","rda");
1393
  createCommunity("Digital Humanities and Cultural Heritage","dh-ch");
1394
  createCommunity("AGINFRA+","aginfra");
1395
  createCommunity("Clarin","clarin");
1396
  createCommunity("DARIAH EU","dariah");
1397
  createCommunity("Transport Research","beopen");
1398
  createCommunity("European Plate Observing System","epos");
1399
  createCommunity("RISIS","risis");
1400
}
1401

    
1402
use openaire_admin;
1403

    
1404
dropDB();
1405
createCollections();
1406
initializeEntitiesPages();
1407
createAllCommunities();
1408
//addHelpTextsInHomePage();
1409
//addHelpTextsInAboutLearnHowPage();
1410
//addHelpTextsInAboutLearnInDepthPage();
1411
//addHelpTextsInContactUsPage();
1412
//addHelpTextsInContentPolicyPage();
(3-3/7)