-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.html
280 lines (265 loc) · 13.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{# -*- coding: utf-8 -*-
This file is part of Invenio.
Copyright (C) 2024 CERN.
Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
#}
{% extends "invenio_communities/details/base.html" %}
{% from "zenodo_rdm/macros/record_item.html" import record_item %}
{%- set title = community.metadata.title -%}
{% set active_community_header_menu_item = 'home' %}
{% from "invenio_communities/collections/macros.html" import render_depth_one_collection %}
{%- block page_body %}
{{ super() }}
<div class="ui rel-m-2 rel-pt-1">
<div class="ui centered stackable theme-font grid container rel-mt-4 rel-mb-4">
<div class="thirteen centered wide column">
<div class=" rel-mt-2 rel-mb-2">
<h1 class="ui large header">{{ _("Open repository for EU-funded research") }}</h1>
<p class="text-muted ui small header">{{ _("Research outputs from Horizon Europe, Euratom and earlier Framework Programmes") }}</p>
</div>
<div class="ui grid centered rel-mt-2 rel-mb-4">
<div class="row">
<div class="column eight wide">
<form action="{{ url_for('invenio_app_rdm_communities.communities_detail', pid_value=community.slug) }}" class="ui form" role="search">
<div class="ui fluid action input">
<input
type="text"
name="q"
class="form-control"
placeholder="{{ _('Search...') }}"
aria-label="{{ _('Search') }}"
>
<button
type="submit"
class="ui icon search button"
aria-label="{{ _('Search') }}"
>
{{ _('Search') }}
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!--SUMMARY SECTION-->
{% macro format_metric_value(key, value) %}
{% if key in ("total_records", "total_grants") %}
{{ value | compact_number(max_value=1_000_000) }}
{% elif key == "total_data" %}
{{ value | filesizeformat }}
{% else %}
{{ value }}
{% endif %}
{% endmacro %}
{% set icon_map = {
"total_records": {"icon": "file", "title": _("RECORDS")},
"total_grants": {"icon": "money", "title": _("GRANTS")},
"total_data": {"icon": "database", "title": _("DATA VOLUME")}
} %}
<div class="ui stackable theme-font grid container rel-mt-4">
<div class="column">
<div class="row item">
<h1 class="ui large header inline">{{ _("Summary") }}</h1>
</div>
<div class="ui divider ml-0"></div>
<div class="center aligned ui equal width stackable grid rel-mt-4 rel-mb-2">
<div class="row rel-mb-4">
{% for key, value in metrics.items() %}
<div class="column">
<div class="theme-primary-text">
<h1 class="ui header header huge">
<i class="{{ icon_map[key]['icon'] }} icon" aria-hidden="true"></i>
{{ format_metric_value(key, value) }}
</h1>
</div>
<h1 class="text-muted ui header medium">{{ icon_map[key]['title'] }}</h1>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<!--BROWSE SECTION-->
<div class="ui stackable theme-font one column grid container rel-mt-2 rel-mb-4">
<div class="column">
<div class="row item">
<h1 class="ui large header">{{ _("Browse") }}</h1>
</div>
<div class="ui divider ml-0"></div>
<div class="ui wide stretched stackable three column grid rel-mt-3">
<div class="sixteen wide mobile sixteen wide tablet five wide computer column">
<div class="segment-container rel-p-1 rel-pl-2 rel-pr-2">
<h1 class="center aligned ui medium header rel-m-1">{{ _("Subject areas") }} </h1>
<div class="ui bottom attached">
{% set subjects = collections.values() | selectattr('slug', 'equalto', 'subjects') | first %}
{% for collection in subjects.collections %}
{{ render_depth_one_collection(community, subjects, collection) }}
{% endfor %}
<div class="ui container center aligned rel-mb-1">
<a href="{{ url_for('invenio_app_rdm_communities.communities_browse', pid_value=community.slug) }}"
class=" theme-primary-text-direct rel-mt-2">
{{ _("Browse all") }}
</a>
</div>
</div>
</div>
</div>
<div class="sixteen wide mobile sixteen wide tablet six wide computer column">
<div class="segment-container rel-p-1">
<h1 class="center aligned ui medium header rel-m-1">{{ _("Projects") }} </h1>
<div class="ui bottom attached">
{%- set is_user_authenticated = current_user.is_authenticated %}
<div
id="project-search-menu"
data-is-authenticated='{{ is_user_authenticated | tojson }}'
class="rel-p-1">
</div>
<div class="ui container center aligned rel-mb-1">
<a href="{{ url_for('invenio_communities.communities_subcommunities', pid_value=community.slug) }}"
class="rel-mt-1 theme-primary-text-direct">
{{ _("See all") }}
</a>
</div>
</div>
</div>
</div>
<div class="sixteen wide mobile sixteen wide tablet five wide computer column">
<div class="segment-container rel-p-1 rel-pl-2 rel-pr-2">
<h1 class="center aligned ui medium header rel-m-1">{{ _("Funding programmes") }} </h1>
<div class="ui bottom attached">
{% set programs = collections.values() | selectattr('slug', 'equalto', 'programs') | first %}
{% for collection in programs.collections %}
{{ render_depth_one_collection(community, programs, collection) }}
{% endfor %}
<div class="ui container center aligned rel-mb-1">
<a href="{{ url_for('invenio_app_rdm_communities.communities_browse', pid_value=community.slug) }}"
class="ui rel-mt-1 theme-primary-text-direct ">
{{ _("Browse all") }}
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% if records %}
<div class="ui stackable theme-font grid container rel-mt-4">
<div class="column rel-mb-4">
<div class="row item">
<h1 class="ui large header">{{ _("Recent uploads") }}</h1>
</div>
<div class="ui divider ml-0"></div>
<div class="ui fluid stackable three column grid">
{% for record in records %}
<ul class="ui column items m-0">
{{ record_item(record=record, themed_community=community) }}
</ul>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class="ui stackable theme-font one column grid container rel-mt-2">
<div class="column">
<div class="row item">
<h1 class="ui large header">{{ _("How it works") }}</h1>
</div>
<div class="ui divider ml-0"></div>
<div class="ui wide stretched stackable three column grid rel-mt-3">
<div class="column">
<div class="segment-container rel-p-1">
<h1 class="center aligned ui medium header rel-m-1">{{ _("Submit your research") }} </h1>
<div class="ui bottom attached">
<ul class="rel-pr-2">
<li>
<strong>{{ _("Eligibility") }}</strong> — {{ _("Any research output (data, software, posters, presentation, deliverables, ...) stemming from Horizon Europe (including ERC and MCSA), as well as earlier Framework Programmes and Euratom across all subject areas.") }}
</li>
<li>
<strong>{{ _("Curation") }}</strong> — All submissions are <a href="/communities/eu/curation-policy">curated</a>. Submissions are NOT peer- reviewed (for papers please consider to publish through Open Research Europe platform).
</li>
<li>
<strong>{{ _("Compliance") }}</strong> — {{ _("the EU Open Research Repository makes it easy to comply with the related open science requirements of the Horizon Europe grant agreement.") }}
</li>
<li>
<strong>{{ _("Zenodo") }}</strong> — {{ _("EU Open Research Repository is community inside Zenodo which is managed and hosted by CERN.") }}
</li>
</ul>
<div class="ui container center aligned rel-mb-1">
<a href="/communities/{{ community.slug }}/pages/how-to-submit"
class="ui positive button labeled theme-secondary icon rel-mt-2">
<i class="upload icon" aria-hidden="true"></i>
{{ _("How to submit") }}
</a>
</div>
</div>
</div>
</div>
<div class="column">
<div class="segment-container rel-p-1">
<h1 class="center aligned ui medium header rel-m-1">{{ _("Get an EU project community") }} </h1>
<div class="ui bottom attached">
<ul class="rel-pr-2">
<li>
<strong>{{ _("Manage your project's research outputs") }}</strong> — {{ _("An EU project community provides you with a common space to manage research outputs from your project and from all your partners.") }}
</li>
<li>
<strong>{{ _("Eligibility") }}</strong> — {{ _("Any EU-funded project stemming from Horizon Europe and/or Euratom can get a project community. Request must be made by a beneficiary of a grant.") }}
</li>
<li>
<strong>{{ _("Members") }}</strong> — {{ _("Allows you to manage members from across all the project's partners and determine who can submit, who can review and who can manage.") }}
</li>
<li>
<strong>{{ _("200GB") }}</strong> — {{ _("EU project communities gets a quota per record of 200GB instead of the normal 50GB.") }}
</li>
</ul>
<div class="ui container center aligned rel-mb-1">
<a href="/communities/{{ community.slug }}/pages/join"
class="ui positive button labeled theme-primary icon rel-mt-2">
<i class="users icon" aria-hidden="true"></i>
{{ _("Join with your EU project") }}
</a>
</div>
</div>
</div>
</div>
<div class="column">
<div class="segment-container rel-p-1">
<h1 class="center aligned ui medium header rel-m-1">{{ _("About") }} </h1>
<div class="ui bottom attached">
<ul class="rel-pr-2">
<li>
<strong>{{ _("European Commission & CERN") }}</strong> — {{ _("the EU Open Research Community is managed by CERN on behalf of the European Commission.") }}
</li>
<li>
<strong>{{ _("Become an early adopter") }}</strong> — do you manage an EU project and want to help test the new features of the repository? <a href="/support">Reach out to us</a>.
</li>
<li>
<strong>{{ _("Upcoming") }}</strong> — We're working on integrating automated basic curation checks and FAIR assistance directly into the submission workflow. Subscribe to the <a href="https://newsletters.zenodo.org/subscription/form">Zenodo newsletter</a> to learn about the new features as soon as they are out.
</li>
<li>
<strong>{{ _("Funded by") }}</strong> — {{ _("the work is funded by the European Union under grant agreement no. 101122956 (HORIZON-ZEN).") }}
</li>
</ul>
<div class="ui container center aligned rel-mb-1">
<a href="about"
class="ui button labeled icon rel-mt-1">
<i class="info icon" aria-hidden="true"></i>
{{ _("Learn More") }}
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{%- endblock page_body -%}
{%- block javascript %}
{{ super() }}
{{ webpack['zenodo-rdm-horizon-frontpage.js'] }}
{%- endblock %}