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" : "Contact us", "route" : "/contact-us", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":false,"bottom":false,"right":true,"left":false});
49
  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});
50

    
51
  db.page.save({"name" : "Curators", "route" : "/curators", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
52
  db.page.save({"name" : "Organizations", "route" : "/organizations", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false});
53
  db.page.save({"name" : "Invite", "route" : "/invite", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":true,"right":false,"left":false});
54
  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
55
    });
56
  // Testing Page for help contents (Connect)
57
  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});
58

    
59
  // Other Pages for Explore
60
  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});
61

    
62
  // Landing Pages
63
  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});
64
	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});
65
	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});
66
	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});
67
	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});
68
	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});
69
	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});
70
	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});
71

    
72
	// Search Pages
73
	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});
74

    
75
  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});
76

    
77
  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});
78
	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});
79
	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});
80
	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});
81

    
82
	// Advanced Search Pages
83
	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});
84
	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});
85
	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});
86
	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});
87

    
88
	// Search Content Providers Pages
89
	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});
90
	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});
91
	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});
92
	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});
93
	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});
94
	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});
95

    
96
  // Deposit Pages for Connect
97
  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});
98
  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});
99
  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});
100

    
101
  // Linking Pages
102
  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});
103
	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});
104
	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});
105
	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});
106
	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});
107

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

    
112

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

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

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

    
129
  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" +
130
                "<div class=\"uk-container uk-section\">\n" +
131
                "<div class=\"uk-flex uk-flex-middle uk-padding uk-grid\" uk-grid=\"\">\n" +
132
                "<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" +
133
                "\n" +
134
                "<div class=\"uk-width-expand\">\n" +
135
                "<div class=\"uk-text-bold uk-h4\">\n" +
136
                "<div>Let us help you develop a collaborative Open Science Gateway for your community. It is fast. It is reliable.</div>\n" +
137
                "</div>\n" +
138
                "\n" +
139
                "<div class=\"uk-margin-medium\">Get in touch with our team to find out how.</div>\n" +
140
                "\n" +
141
                "<div class=\"uk-inline\"><a class=\"uk-button portal-button\" href=\"/contact-us\">CONTACT US</a></div>\n" +
142
                "</div>\n" +
143
                "</div>\n" +
144
                "</div>\n" +
145
                "</div>\n";
146

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

    
157
  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" +
158
                "<div class=\"uk-padding-remove-bottom uk-section\">\n" +
159
                "<div class=\"uk-position-cover\">&nbsp;</div>\n" +
160
                "\n" +
161
                "<div class=\"uk-position-relative uk-panel\">\n" +
162
                "<div class=\"uk-container uk-container-large uk-margin-top\">\n" +
163
                "<div class=\"uk-grid\">\n" +
164
                "<div class=\"uk-width-2-3@m uk-width-1-1@s\">\n" +
165
                "<div class=\"uk-h1\">Build an Open Research <strong>Gateway</strong> for your <strong>Community</strong></div>\n" +
166
                "\n" +
167
                "<h4 class=\"uk-margin-remove-top\">Turn Open Science into practice</h4>\n" +
168
                "\n" +
169
                "<div class=\"uk-h5 uk-margin-top\">Share and link your research results.<br />\n" +
170
                "Across organizations, across borders.<br />\n" +
171
                "Customized to your needs.</div>\n" +
172
                "</div>\n" +
173
                "\n" +
174
                "<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" +
175
                "</div>\n" +
176
                "</div>\n" +
177
                "</div>\n" +
178
                "</div>\n" +
179
                "</div>\n";
180

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

    
191
  top_1_content = "<div class=\"uk-section uk-background-muted\">\n" +
192
                "<div class=\"uk-container uk-container\">\n" +
193
                "<div class=\"uk-text-center uk-h2\">Open and FAIR science is our mission</div>\n" +
194
                "\n" +
195
                "<div class=\"uk-margin-medium-top\">\n" +
196
                "<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" +
197
                "<div class=\"uk-first-column\">\n" +
198
                "<div class=\"uk-card uk-card-default uk-padding-small\">\n" +
199
                "<div class=\"uk-card-media-top uk-flex uk-flex-middle uk-flex-center uk-margin-small-top\">\n" +
200
                "<div class=\"target\" style=\"min-height: 108px;\"><img src=\"assets/connect-assets/home/1.png\" style=\"height:89px; width:100px\" /></div>\n" +
201
                "</div>\n" +
202
                "\n" +
203
                "<div class=\"uk-margin-small-top\">\n" +
204
                "<div class=\"target\" style=\"min-height: 137.6px;\">\n" +
205
                "<h5 class=\"uk-text-center\">A Virtual Research Environment</h5>\n" +
206
                "\n" +
207
                "<div>An overlay platform making it easy to share, link, disseminate and monitor all your publications, data, software, methods. In one place.</div>\n" +
208
                "</div>\n" +
209
                "\n" +
210
                "<hr />\n" +
211
                "<div>\n" +
212
                "<div class=\"uk-text-uppercase text-center\">Features</div>\n" +
213
                "\n" +
214
                "<ul class=\"uk-list\">\n" +
215
                "\t<li>\n" +
216
                "\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" +
217
                "\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" +
218
                "\tAccess to OpenAIRE resources</li>\n" +
219
                "\t<li>\n" +
220
                "\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" +
221
                "\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" +
222
                "\tModerated, front-end linking</li>\n" +
223
                "\t<li>\n" +
224
                "\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" +
225
                "\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" +
226
                "\tCross-platform search</li>\n" +
227
                "</ul>\n" +
228
                "</div>\n" +
229
                "</div>\n" +
230
                "</div>\n" +
231
                "</div>\n" +
232
                "\n" +
233
                "<div>\n" +
234
                "<div class=\"uk-card uk-card-default uk-padding-small\">\n" +
235
                "<div class=\"uk-card-media-top uk-flex uk-flex-middle uk-flex-center uk-margin-small-top\">\n" +
236
                "<div class=\"target\"><img src=\"assets/connect-assets/home/2.png\" style=\"height:108px; width:100px\" /></div>\n" +
237
                "</div>\n" +
238
                "\n" +
239
                "<div class=\"uk-margin-small-top\">\n" +
240
                "<div class=\"target\" style=\"min-height: 137.6px;\">\n" +
241
                "<h5 class=\"uk-text-center\">Open Science in action</h5>\n" +
242
                "\n" +
243
                "<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" +
244
                "</div>\n" +
245
                "\n" +
246
                "<hr />\n" +
247
                "<div>\n" +
248
                "<div class=\"uk-text-uppercase text-center\">Features</div>\n" +
249
                "\n" +
250
                "<ul class=\"uk-list\">\n" +
251
                "\t<li>\n" +
252
                "\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" +
253
                "\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" +
254
                "\tUse of OpenAIRE Guidelines</li>\n" +
255
                "\t<li>\n" +
256
                "\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" +
257
                "\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" +
258
                "\tDOIs via Zenodo</li>\n" +
259
                "\t<li>\n" +
260
                "\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" +
261
                "\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" +
262
                "\tEOSC Single Sign-On</li>\n" +
263
                "</ul>\n" +
264
                "</div>\n" +
265
                "</div>\n" +
266
                "</div>\n" +
267
                "</div>\n" +
268
                "\n" +
269
                "<div>\n" +
270
                "<div class=\"uk-card uk-card-default uk-padding-small\">\n" +
271
                "<div class=\"uk-card-media-top uk-flex uk-flex-middle uk-flex-center uk-margin-small-top\">\n" +
272
                "<div class=\"target\" style=\"min-height: 108px;\"><img src=\"assets/connect-assets/home/3.png\" style=\"height:104px; width:120px\" /></div>\n" +
273
                "</div>\n" +
274
                "\n" +
275
                "<div class=\"uk-margin-small-top\">\n" +
276
                "<div class=\"target\">\n" +
277
                "<h5 class=\"uk-text-center\">Customized to your needs</h5>\n" +
278
                "\n" +
279
                "<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" +
280
                "</div>\n" +
281
                "\n" +
282
                "<hr />\n" +
283
                "<div>\n" +
284
                "<div class=\"uk-text-uppercase text-center\">Features</div>\n" +
285
                "\n" +
286
                "<ul class=\"uk-list\">\n" +
287
                "\t<li>\n" +
288
                "\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" +
289
                "\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" +
290
                "\tAccess control</li>\n" +
291
                "\t<li>\n" +
292
                "\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" +
293
                "\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" +
294
                "\tAnalytics: rich set of indicators</li>\n" +
295
                "\t<li>\n" +
296
                "\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" +
297
                "\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" +
298
                "\tLook &amp; feel to match your brand</li>\n" +
299
                "</ul>\n" +
300
                "</div>\n" +
301
                "</div>\n" +
302
                "</div>\n" +
303
                "</div>\n" +
304
                "</div>\n" +
305
                "</div>\n" +
306
                "</div>\n" +
307
                "</div>\n";
308

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

    
319
  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" +
320
                "<div class=\"uk-container uk-container-large\">\n" +
321
                "<div class=\"uk-slider\" uk-slider=\"velocity: 0;autoplay: true;autoplay-interval: 4000;pause-on-hover: false;center: true\">\n" +
322
                "<div class=\"uk-slider-container\">\n" +
323
                "<ul class=\"uk-slider-items uk-child-width-1-1\" style=\"transform: translateX(0px);\">\n" +
324
                "\t<li class=\"ng-star-inserted uk-active\" tabindex=\"-1\">\n" +
325
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
326
                "\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" +
327
                "\n" +
328
                "\t<div class=\"uk-margin-top\">\n" +
329
                "\t<div>\n" +
330
                "\t<div class=\"uk-text-bold uk-h4\">Find a repository to deposit your research outcome</div>\n" +
331
                "\n" +
332
                "\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" +
333
                "\n" +
334
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
335
                "\t</div>\n" +
336
                "\t</div>\n" +
337
                "\t</div>\n" +
338
                "\t</li>\n" +
339
                "\t<li tabindex=\"-1\">\n" +
340
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
341
                "\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" +
342
                "\n" +
343
                "\t<div class=\"uk-margin-top\">\n" +
344
                "\t<div>\n" +
345
                "\t<div class=\"uk-text-bold uk-h4\">Link your research output with your community, funding, and other research products</div>\n" +
346
                "\n" +
347
                "\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" +
348
                "\n" +
349
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
350
                "\t</div>\n" +
351
                "\t</div>\n" +
352
                "\t</div>\n" +
353
                "\t</li>\n" +
354
                "\t<li tabindex=\"-1\">\n" +
355
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
356
                "\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" +
357
                "\n" +
358
                "\t<div class=\"uk-margin-top\">\n" +
359
                "\t<div>\n" +
360
                "\t<div class=\"uk-text-bold uk-h4\">View community&#39;s overview at a glance</div>\n" +
361
                "\n" +
362
                "\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" +
363
                "\n" +
364
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
365
                "\t</div>\n" +
366
                "\t</div>\n" +
367
                "\t</div>\n" +
368
                "\t</li>\n" +
369
                "\t<li tabindex=\"-1\">\n" +
370
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
371
                "\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" +
372
                "\n" +
373
                "\t<div class=\"uk-margin-top\">\n" +
374
                "\t<div>\n" +
375
                "\t<div class=\"uk-text-bold uk-h4\">Search &amp; browse your community&#39;s research products.</div>\n" +
376
                "\n" +
377
                "\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" +
378
                "\n" +
379
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
380
                "\t</div>\n" +
381
                "\t</div>\n" +
382
                "\t</div>\n" +
383
                "\t</li>\n" +
384
                "\t<li tabindex=\"-1\">\n" +
385
                "\t<div class=\"uk-flex uk-padding uk-child-width-1-2@m uk-child-width-1-1@s uk-grid\" uk-grid=\"\">\n" +
386
                "\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" +
387
                "\n" +
388
                "\t<div class=\"uk-margin-top\">\n" +
389
                "\t<div>\n" +
390
                "\t<div class=\"uk-text-bold uk-h4\">View statistics for your community&#39;s research products.</div>\n" +
391
                "\n" +
392
                "\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" +
393
                "\n" +
394
                "\t<div class=\"uk-inline\"><a class=\"uk-button portal-button uk-text-uppercase\" href=\"/about/learn-how\">learn more</a></div>\n" +
395
                "\t</div>\n" +
396
                "\t</div>\n" +
397
                "\t</div>\n" +
398
                "\t</li>\n" +
399
                "</ul>\n" +
400
                "\n" +
401
                "<ul class=\"uk-slider-nav uk-dotnav uk-flex-center uk-margin\">\n" +
402
                "\t<li class=\"uk-active\" uk-slider-item=\"0\">&nbsp;</li>\n" +
403
                "\t<li uk-slider-item=\"1\">&nbsp;</li>\n" +
404
                "\t<li uk-slider-item=\"2\">&nbsp;</li>\n" +
405
                "\t<li uk-slider-item=\"3\">&nbsp;</li>\n" +
406
                "\t<li uk-slider-item=\"4\">&nbsp;</li>\n" +
407
                "</ul>\n" +
408
                "</div>\n" +
409
                "</div>\n" +
410
                "</div>\n" +
411
                "</div>\n";
412

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

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

    
428
  bottom_1_content = "<div class=\"uk-section uk-section-small\" style=\"background: #FAFAFA 0% 0% no-repeat padding-box;\">\n" +
429
                "<div class=\"uk-container uk-container-large uk-margin-bottom\">\n" +
430
                "<div class=\"uk-flex uk-flex-middle uk-child-width-1-1@s uk-child-width-1-2@m uk-grid\" uk-grid=\"\">\n" +
431
                "<div class=\"uk-first-column\">\n" +
432
                "<div class=\"uk-text-secondary uk-h2 uk-margin-bottom\"><strong>Contribute</strong> to improve the<br />\n" +
433
                "<strong>OpenAIRE Research Graph</strong></div>\n" +
434
                "\n" +
435
                "<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" +
436
                "\n" +
437
                "<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" +
438
                "\n" +
439
                "<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" +
440
                "\n" +
441
                "<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" +
442
                "\n" +
443
                "<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" +
444
                "\n" +
445
                "<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" +
446
                "\n" +
447
                "<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" +
448
                "</div>\n" +
449
                "</div>\n" +
450
                "\n" +
451
                "<div><img src=\"assets/explore-assets/trello-sc.png\" /></div>\n" +
452
                "</div>\n" +
453
                "</div>\n" +
454
                "</div>\n";
455

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

    
466
  bottom_2_content = "<div class=\"uk-section\" style=\"background: linear-gradient(180deg, #FAFAFA 50%, #FFFFFF 50%);\">\n" +
467
                "<div class=\"uk-container uk-container-small\">\n" +
468
                "<div class=\"uk-grid-margin uk-grid uk-grid-stack\" uk-grid=\"\">\n" +
469
                "<div class=\"uk-width-1-1@m uk-first-column\">\n" +
470
                "<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" +
471
                "<div class=\"uk-first-column\">\n" +
472
                "<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" +
473
                "<div class=\"el-content uk-margin uk-text-large\"><span class=\"uk-text-bold\">Deposit</span> your research</div>\n" +
474
                "\n" +
475
                "<div class=\"uk-margin-small-top uk-text-left card-text uk-flex uk-flex-center\">\n" +
476
                "<div class=\"uk-margin-left uk-margin-right\">Deposit in a repository of your choice.<br />\n" +
477
                "Select an OpenAIRE compatible<br />\n" +
478
                "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" +
479
                "</div>\n" +
480
                "<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" +
481
                "</div>\n" +
482
                "\n" +
483
                "<div>\n" +
484
                "<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" +
485
                "<div class=\"el-content uk-margin uk-text-large\"><span class=\"uk-text-bold\">Link</span> your work</div>\n" +
486
                "\n" +
487
                "<div class=\"uk-margin-small-top uk-text-left card-text uk-flex uk-flex-center\">\n" +
488
                "<div class=\"uk-margin-left uk-margin-right\">Connect all your research.<br />\n" +
489
                "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" +
490
                "external sources via APIs, to connect<br />\n" +
491
                "your research results and claim them to your project.</div>\n" +
492
                "</div>\n" +
493
                "<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" +
494
                "</div>\n" +
495
                "</div>\n" +
496
                "</div>\n" +
497
                "</div>\n" +
498
                "</div>\n" +
499
                "</div>\n";
500

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

    
511
  left_content = "<div class=\"uk-section-muted uk-section uk-section-small\">\n" +
512
                "<div class=\"uk-container uk-container-large\">\n" +
513
                "<div class=\"uk-grid-margin uk-grid uk-grid-stack\" uk-grid=\"\">\n" +
514
                "<div class=\"uk-width-1-1@m uk-first-column\">\n" +
515
                "<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" +
516
                "             uk-child-width-1-2@l uk-grid-large uk-grid uk-grid-divider ask-explore\" uk-grid=\"\">\n" +
517
                "<div class=\"uk-first-column uk-text-center\">\n" +
518
                "<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" +
519
                "<h3 class=\"el-title uk-margin uk-h3\">Have more questions?</h3>\n" +
520
                "</div>\n" +
521
                "</div>\n" +
522
                "\n" +
523
                "<div class=\"questions\">\n" +
524
                "<div class=\"el-item uk-card uk-card-small uk-card-body\">\n" +
525
                "<ul class=\"uk-list uk-list-divider\">\n" +
526
                "\t<li><a href=\"https://www.openaire.eu/os-primers\" target=\"_blank\">Learn about open science policies and how to align</a></li>\n" +
527
                "\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" +
528
                "\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" +
529
                "\t<li><a href=\"https://www.openaire.eu/webinars/\" target=\"_blank\">View our training material on a variety of related topics</a></li>\n" +
530
                "\t<li><a href=\"https://www.openaire.eu/contact-us/\" target=\"_blank\">Contact us</a></li>\n" +
531
                "</ul>\n" +
532
                "</div>\n" +
533
                "</div>\n" +
534
                "</div>\n" +
535
                "</div>\n" +
536
                "</div>\n" +
537
                "</div>\n" +
538
                "</div>\n";
539

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

    
550
  right_content = "<div class=\"uk-h2\" style=\"color: white !important;\">Extracted <strong>Metadata Combined.</strong></div>\n" +
551
                "\n" +
552
                "<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" +
553
                "<br />\n" +
554
                "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" +
555
                "<br />\n" +
556
                "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" +
557
                "<br />\n" +
558
                "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";
559

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

    
570
  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";
571

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

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

    
587
  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" +
588
                "<div class=\"uk-container uk-container-large uk-section uk-margin-top\">\n" +
589
                "<div class=\"uk-margin-large-top uk-grid\">\n" +
590
                "<h1 class=\"uk-width-1-1 font-41 uk-text-bold\">Learn the process</h1>\n" +
591
                "\n" +
592
                "<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" +
593
                "</div>\n" +
594
                "\n" +
595
                "<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" +
596
                "<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" +
597
                "<div class=\"uk-first-column\">\n" +
598
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">1. Understanding your needs</h5>\n" +
599
                "\n" +
600
                "<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" +
601
                "</div>\n" +
602
                "\n" +
603
                "<div class=\"uk-visible@m uk-grid-margin uk-first-column\">\n" +
604
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">4. Roll out the service</h5>\n" +
605
                "\n" +
606
                "<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" +
607
                "</div>\n" +
608
                "\n" +
609
                "<div class=\"uk-hidden@m\">\n" +
610
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">2. Develop a pilot</h5>\n" +
611
                "\n" +
612
                "<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" +
613
                "</div>\n" +
614
                "</div>\n" +
615
                "\n" +
616
                "<div class=\"uk-text-center\"><img src=\"assets/connect-assets/about/cycle.png\" /></div>\n" +
617
                "\n" +
618
                "<div class=\"uk-flex uk-child-width-1-1@m uk-child-width-1-2@s uk-grid uk-grid-stack\" uk-grid=\"\">\n" +
619
                "<div class=\"uk-visible@m uk-first-column\">\n" +
620
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">2. Develop a pilot</h5>\n" +
621
                "\n" +
622
                "<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" +
623
                "</div>\n" +
624
                "\n" +
625
                "<div class=\"uk-hidden@m uk-visible@s\">\n" +
626
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">4. Roll out the service</h5>\n" +
627
                "\n" +
628
                "<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" +
629
                "</div>\n" +
630
                "\n" +
631
                "<div class=\"uk-grid-margin uk-first-column\">\n" +
632
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">3. Test and Validate</h5>\n" +
633
                "\n" +
634
                "<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" +
635
                "</div>\n" +
636
                "\n" +
637
                "<div class=\"uk-hidden@s uk-visible@xs\">\n" +
638
                "<h5 class=\"uk-text-bold uk-margin-small-bottom\">4. Roll out the service</h5>\n" +
639
                "\n" +
640
                "<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" +
641
                "</div>\n" +
642
                "</div>\n" +
643
                "</div>\n" +
644
                "\n" +
645
                "<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" +
646
                "</div>\n" +
647
                "</div>\n";
648

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

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

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

    
767
  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" +
768
                "<div class=\"uk-container uk-section\">\n" +
769
                "<div class=\"uk-flex uk-flex-middle uk-padding uk-grid\" uk-grid=\"\">\n" +
770
                "<div class=\"uk-width-expand uk-first-column\">\n" +
771
                "<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" +
772
                "\n" +
773
                "<div class=\"uk-margin-medium\">Get in touch with our team to find out how.</div>\n" +
774
                "\n" +
775
                "<div class=\"uk-inline\"><a class=\"uk-button portal-button\" href=\"/contact-us\">CONTACT US</a></div>\n" +
776
                "</div>\n" +
777
                "\n" +
778
                "<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" +
779
                "</div>\n" +
780
                "</div>\n" +
781
                "</div>\n";
782

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

    
793
  top_4_content = "<div class=\"uk-container uk-section-small\">\n" +
794
                "<div class=\"uk-margin-medium-bottom uk-text-bold uk-h4\">Frequently Asked Questions</div>\n" +
795
                "\n" +
796
                "<ul class=\"uk-accordion\" uk-accordion=\"\">\n" +
797
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What is a &quot;Research community&quot;?</a>\n" +
798
                "\n" +
799
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
800
                "\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" +
801
                "\t</div>\n" +
802
                "\t</li>\n" +
803
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What is the difference between a Community Gateway and the Research Community Dashboard (RCD)?</a>\n" +
804
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
805
                "\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" +
806
                "\t</div>\n" +
807
                "\t</li>\n" +
808
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">How can Research Community thematic services integrate with the Research Community Dashboard (RCD)?</a>\n" +
809
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
810
                "\t<p>Once a Community Gateway has been created, several thematic service integration patterns are possible:</p>\n" +
811
                "\n" +
812
                "\t<ol>\n" +
813
                "\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" +
814
                "\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" +
815
                "\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" +
816
                "\t</ol>\n" +
817
                "\t</div>\n" +
818
                "\t</li>\n" +
819
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What does my Research Community gain in terms of Open Science?</a>\n" +
820
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content uk-grid\" hidden=\"\" uk-grid=\"\">\n" +
821
                "\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" +
822
                "\n" +
823
                "\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" +
824
                "\n" +
825
                "\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" +
826
                "\n" +
827
                "\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" +
828
                "\t</div>\n" +
829
                "\t</li>\n" +
830
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">How is the service part of the European Open Science Cloud?</a>\n" +
831
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
832
                "\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" +
833
                "\t</div>\n" +
834
                "\t</li>\n" +
835
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">Who owns the gateway?</a>\n" +
836
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
837
                "\t<p>The community owns the portal, OpenAIRE operates it.</p>\n" +
838
                "\t</div>\n" +
839
                "\t</li>\n" +
840
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">How is the gateway operated?</a>\n" +
841
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
842
                "\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" +
843
                "\t</div>\n" +
844
                "\t</li>\n" +
845
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What is the SLA of the service?</a>\n" +
846
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
847
                "\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" +
848
                "\t</div>\n" +
849
                "\t</li>\n" +
850
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">What are the costs?</a>\n" +
851
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content\" hidden=\"\">\n" +
852
                "\t<div>Costs include hardware, hardware management, application administration, software maintenance, and text mining.</div>\n" +
853
                "\n" +
854
                "\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" +
855
                "\n" +
856
                "\t<div>Researchers of the community shall not pay to access the Community Gateway.</div>\n" +
857
                "\t</div>\n" +
858
                "\t</li>\n" +
859
                "\t<li><a class=\"uk-accordion-title\" href=\"#\">In what other areas can my Research community collaborate with OpenAIRE?</a>\n" +
860
                "\t<div aria-hidden=\"true\" class=\"uk-accordion-content uk-grid uk-grid-stack\" hidden=\"\" uk-grid=\"\">\n" +
861
                "\t<div class=\"uk-width-1-1\">\n" +
862
                "\t<div style=\"font-style: italic\">Open Science training</div>\n" +
863
                "\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" +
864
                "\n" +
865
                "\t<div class=\"uk-width-1-1\">\n" +
866
                "\t<div style=\"font-style: italic\">Train the trainer</div>\n" +
867
                "\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" +
868
                "\n" +
869
                "\t<div class=\"uk-width-1-1\">\n" +
870
                "\t<div style=\"font-style: italic\">Citizen Science</div>\n" +
871
                "\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" +
872
                "\n" +
873
                "\t<div class=\"uk-width-1-1\">\n" +
874
                "\t<div style=\"font-style: italic\">Open Innovation Programme</div>\n" +
875
                "\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" +
876
                "\t</div>\n" +
877
                "\t</li>\n" +
878
                "</ul>\n" +
879
                "</div>\n";
880

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

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

    
896
  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" +
897
                "<div class=\"uk-container uk-container-large uk-section uk-margin-top uk-padding-remove-top\">\n" +
898
                "<div class=\"uk-grid\" uk-grid=\"\">\n" +
899
                "<div class=\"uk-margin-large-top uk-width-3-4@m uk-width-1-1@s uk-first-column\">\n" +
900
                "<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" +
901
                "\n" +
902
                "<div class=\"uk-width-4-5@m uk-width-1-1@s uk-h5\">\n" +
903
                "<div class=\"uk-margin-bottom\">You don&rsquo;t have to go alone.</div>\n" +
904
                "\n" +
905
                "<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" +
906
                "</div>\n" +
907
                "</div>\n" +
908
                "\n" +
909
                "<div class=\"uk-margin-large-top uk-width-expand\"><img src=\"assets/connect-assets/banner/together.png\" style=\"height:285px; width:308px\" /></div>\n" +
910
                "</div>\n" +
911
                "</div>\n" +
912
                "</div>\n";
913

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

    
924
  top_2_content = "<div class=\"uk-container uk-container-large uk-section uk-padding-remove-top\">\n" +
925
                "<ul class=\"uk-breadcrumb\">\n" +
926
                "\t<li><a class=\"router-link-active\" href=\"/about/learn-how\">About</a></li>\n" +
927
                "\t<li><span class=\"active\">Learn in-depth</span></li>\n" +
928
                "</ul>\n" +
929
                "\n" +
930
                "<div class=\"uk-grid\" uk-grid=\"\">\n" +
931
                "<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" +
932
                "\n" +
933
                "<div class=\"uk-width-expand\">\n" +
934
                "<div class=\"uk-margin-medium uk-text-bold uk-h4\">1. Analyse your needs</div>\n" +
935
                "\n" +
936
                "<div style=\"font-style: italic;\">Identify the scope and goals. Understand open science practices within EOSC and the OpenAIRE services</div>\n" +
937
                "\n" +
938
                "<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" +
939
                "\n" +
940
                "<p>Here are the most important questions that the OpenAIRE team will ask you, in order to understand your scope and goals:</p>\n" +
941
                "\n" +
942
                "<ul class=\"uk-list uk-list-bullet\">\n" +
943
                "\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" +
944
                "\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" +
945
                "\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" +
946
                "</ul>\n" +
947
                "</div>\n" +
948
                "</div>\n" +
949
                "\n" +
950
                "<div class=\"uk-grid\" uk-grid=\"\" uk-height-match=\"\">\n" +
951
                "<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" +
952
                "\n" +
953
                "<div class=\"uk-width-expand\">\n" +
954
                "<div class=\"uk-margin-medium uk-text-bold uk-h4\">2. Develop a pilot</div>\n" +
955
                "\n" +
956
                "<div style=\"font-style: italic;\">We translate your needs into rules and processes and we configure operational OpenAIRE services.</div>\n" +
957
                "\n" +
958
                "<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" +
959
                "\n" +
960
                "<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" +
961
                "</div>\n" +
962
                "</div>\n" +
963
                "\n" +
964
                "<div class=\"uk-grid\" uk-grid=\"\" uk-height-match=\"\">\n" +
965
                "<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" +
966
                "\n" +
967
                "<div class=\"uk-width-expand\">\n" +
968
                "<div class=\"uk-margin-medium uk-text-bold uk-h4\">3. Test and Validate</div>\n" +
969
                "\n" +
970
                "<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" +
971
                "\n" +
972
                "<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" +
973
                "\n" +
974
                "<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" +
975
                "\n" +
976
                "<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" +
977
                "\n" +
978
                "<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" +
979
                "</div>\n" +
980
                "</div>\n" +
981
                "\n" +
982
                "<div class=\"uk-grid\" uk-grid=\"\" uk-height-match=\"\">\n" +
983
                "<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" +
984
                "\n" +
985
                "<div class=\"uk-width-expand\">\n" +
986
                "<div class=\"uk-margin-medium  uk-text-bold uk-h4\">4. Roll out the service</div>\n" +
987
                "\n" +
988
                "<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" +
989
                "\n" +
990
                "<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" +
991
                "\n" +
992
                "<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" +
993
                "\n" +
994
                "<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" +
995
                "\n" +
996
                "<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" +
997
                "</div>\n" +
998
                "</div>\n" +
999
                "</div>\n";
1000

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

    
1011
  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" +
1012
                "<div class=\"uk-container uk-section\">\n" +
1013
                "<div class=\"uk-flex uk-flex-middle uk-padding uk-grid\" uk-grid=\"\">\n" +
1014
                "<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" +
1015
                "\n" +
1016
                "<div class=\"uk-width-expand\">\n" +
1017
                "<div class=\"uk-text-bold uk-h4\">\n" +
1018
                "<div>Let us help you develop a collaborative Open Science Gateway for your community. It is fast. It is reliable.</div>\n" +
1019
                "</div>\n" +
1020
                "\n" +
1021
                "<div class=\"uk-margin-medium\">Get in touch with our team to find out how.</div>\n" +
1022
                "\n" +
1023
                "<div class=\"uk-inline\"><a class=\"uk-button portal-button\" href=\"/contact-us\">CONTACT US</a></div>\n" +
1024
                "</div>\n" +
1025
                "</div>\n" +
1026
                "</div>\n" +
1027
                "</div>\n";
1028

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

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

    
1044
  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" +
1045
                "\n" +
1046
                "<ul class=\"uk-list uk-list-divider uk-padding uk-padding-remove-left uk-margin-auto-top\">\n" +
1047
                "\t<li>\n" +
1048
                "\t<h5><span class=\"uk-text-bold\">Create and Manage</span> your Community Gateway</h5>\n" +
1049
                "\t</li>\n" +
1050
                "\t<li>\n" +
1051
                "\t<h5><span class=\"uk-text-bold\">Access, share and link</span> together all your research</h5>\n" +
1052
                "\t</li>\n" +
1053
                "\t<li>\n" +
1054
                "\t<h5><span class=\"uk-text-bold\">Monitor and report</span> your community&#39;s progress</h5>\n" +
1055
                "\t</li>\n" +
1056
                "</ul>\n";
1057

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

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

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

    
1075
  top_content = "<div class=\"uk-margin-top tm-middle uk-container\" id=\"tm-main\">\n" +
1076
                "<div class=\"uk-container  uk-margin-bottom\">\n" +
1077
                "<div class=\"uk-article-title custom-article-title\">Content policy</div>\n" +
1078
                "\n" +
1079
                "<div>\n" +
1080
                "<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" +
1081
                "\n" +
1082
                "<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" +
1083
                "There are several ways to decide if a research product is relevant to a given community:</p>\n" +
1084
                "\n" +
1085
                "<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" +
1086
                "For more details about linking functionality, please check <a href=\"https://beta.openaire.eu/linking\" target=\"_blank\">here</a>.</p>\n" +
1087
                "\n" +
1088
                "<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" +
1089
                "\n" +
1090
                "<div class=\"uk-margin-left\">\n" +
1091
                "<ul class=\"uk-list uk-list-bullet  \">\n" +
1092
                "\t<li>The content providers they have been collected from.<br />\n" +
1093
                "\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" +
1094
                "\t<li>The projects they have been produced in.<br />\n" +
1095
                "\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" +
1096
                "\t<li>The subjects and keywords (only for RCD serving research communities).<br />\n" +
1097
                "\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" +
1098
                "</ul>\n" +
1099
                "</div>\n" +
1100
                "</div>\n" +
1101
                "\n" +
1102
                "<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" +
1103
                "</div>\n" +
1104
                "</div>\n" +
1105
                "</div>\n";
1106

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

    
1118

    
1119

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
1251
  // community_pages[monitor] = true;
1252

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

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

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

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

    
1298
  db.statistics.save(statistics);
1299

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

    
1303
  depositLearnHow_community_content = "<div class=\"uk-width-3-5 uk-align-center\">\n" +
1304
    "<div class=\"uk-text-bold\">How to comply with funder Open Access policies</div>\n" +
1305
    "\n" +
1306
    "<ul class=\"uk-list uk-list-bullet\">\n" +
1307
    "\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" +
1308
    "\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" +
1309
    "\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" +
1310
    "\t<li>All OpenAIRE guides can be found <a class=\"custom-external\" href=\"https://www.openaire.eu/guides\" target=\"_blank\">here</a></li>\n" +
1311
    "</ul>\n" +
1312
    "</div>\n";
1313

    
1314
  depositLearnHow_explore_content = "<div class=\"uk-margin-top\" style=\"background: #EFEFEF 0% 0% no-repeat padding-box;\">\n" +
1315
    "<div class=\"uk-width-3-5 uk-align-center uk-padding uk-padding-remove-horizontal uk-margin-remove-bottom\">\n" +
1316
    "<div class=\"uk-text-bold\">How to comply with funder Open Access policies</div>\n" +
1317
    "\n" +
1318
    "<ul class=\"uk-list uk-list-bullet\">\n" +
1319
    "\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" +
1320
    "\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" +
1321
    "\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" +
1322
    "\t<li>All OpenAIRE guides can be found <a class=\"custom-external\" href=\"https://www.openaire.eu/guides\" target=\"_blank\">here</a></li>\n" +
1323
    "</ul>\n" +
1324
    "</div>\n" +
1325
    "</div>\n";
1326

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

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

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

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

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

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

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

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

    
1401
use openaire_admin;
1402

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