diff --git a/app_data/communities.yaml b/app_data/communities.yaml index 01c6967c..8c380e5a 100644 --- a/app_data/communities.yaml +++ b/app_data/communities.yaml @@ -29,6 +29,37 @@ family: "Arial, sans-serif" weight: 600 logo: "ecfunded.png" +- slug: nih + metadata: + title: "National Institutes of Health (Pilot)" + description: "Open repository for NIH-funded research outputs." + website: "https://www.nih.gov/" + type: + id: "organization" + access: + visibility: "public" + members_visibility: "restricted" + member_policy: "open" + record_policy: "open" + review_policy: "closed" + children: + allow: true + theme: + brand: "nih" + enabled: true + style: + primaryColor: "#20558a" + tertiaryColor: "#3678b3" + secondaryColor: "#0a8484" + primaryTextColor: "#FFFFFF" + tertiaryTextColor: "#FFFFFF" + secondaryTextColor: "#FFFFFF" + mainHeaderBackgroundColor: "#FFFFFF" + font: + size: "16px" + family: "Arial, sans-serif" + weight: 600 + logo: "nih.png" - slug: horizon-zen metadata: title: "HORIZON-ZEN" diff --git a/app_data/img/nih.png b/app_data/img/nih.png new file mode 100644 index 00000000..a4928a3c Binary files /dev/null and b/app_data/img/nih.png differ diff --git a/templates/themes/nih/invenio_app_rdm/footer.html b/templates/themes/nih/invenio_app_rdm/footer.html new file mode 100644 index 00000000..15199cfa --- /dev/null +++ b/templates/themes/nih/invenio_app_rdm/footer.html @@ -0,0 +1,52 @@ +{# + + Copyright (C) 2024 CERN. + + Invenio App RDM is free software; you can redistribute it and/or modify it + under the terms of the MIT License; see LICENSE file for more details. +#} + + diff --git a/templates/themes/nih/invenio_app_rdm/site_footer.html b/templates/themes/nih/invenio_app_rdm/site_footer.html new file mode 100644 index 00000000..c550b463 --- /dev/null +++ b/templates/themes/nih/invenio_app_rdm/site_footer.html @@ -0,0 +1,50 @@ +{# + -*- coding: utf-8 -*- + Copyright (C) 2023-2024 CERN. + + Invenio App RDM is free software; you can redistribute it and/or modify it + under the terms of the MIT License; see LICENSE file for more details. +#} + + diff --git a/templates/themes/nih/invenio_communities/details/header.html b/templates/themes/nih/invenio_communities/details/header.html new file mode 100644 index 00000000..956dd0a3 --- /dev/null +++ b/templates/themes/nih/invenio_communities/details/header.html @@ -0,0 +1,138 @@ +{# -*- 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. +#} + +{%- from "invenio_theme/macros/truncate.html" import truncate_text %} +{%- from "invenio_communities/details/macros/access-status-label.html" import access_status_label -%} + +
+
+
+
+
+
+ + +
+
+ + +

+ {{ community.metadata.title }} +

+
+ + {% if community.access.visibility == 'restricted' %} +
+ {{ access_status_label() }} +
+ {% endif %} +
+ +
+ {% if community.access.visibility == 'restricted' %} +
+ {{ access_status_label() }} +
+ {% endif %} + + {% if community.metadata.organizations %} + {% for org in community.metadata.organizations %} + {% set ror_id = org.id %} + {% set name = org.name %} + +
+ {% if loop.index == 1 %} + by + {% endif %} + + {{ name }} + + + + + {{ ", " if not loop.last }} +
+ {% endfor %} + {% endif %} + + {% if community.metadata.website %} + + {% endif %} + +
+
+
+
+ + +
+
+
+
+
+ Turning discovery into health +
+
+ +
+
diff --git a/templates/themes/nih/invenio_communities/details/home/index.html b/templates/themes/nih/invenio_communities/details/home/index.html new file mode 100644 index 00000000..ec47afea --- /dev/null +++ b/templates/themes/nih/invenio_communities/details/home/index.html @@ -0,0 +1,271 @@ +{# -*- 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' %} + + + {%- block page_body %} + {{ super() }} +
+
+
+
+

{{ _("Open repository for NIH-funded research") }}

+

{{ _("Access research outputs from NIH-funded projects, advancing health discovery and innovation") }}

+
+
+
+
+ +
+
+
+
+
+ + + {% 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")} + } %} + +
+
+
+

{{ _("Summary") }}

+
+
+
+
+ {% for key, value in metrics.items() %} +
+
+

+ + {{ format_metric_value(key, value) }} +

+
+

{{ icon_map[key]['title'] }}

+
+ {% endfor %} +
+
+
+
+ + +
+
+
+

{{ _("Browse") }}

+
+
+
+
+
+

{{ _("Subject areas") }}

+ +
+
+
+
+

{{ _("Projects") }}

+
+ {%- set is_user_authenticated = current_user.is_authenticated %} +
+
+ +
+
+
+
+
+

{{ _("Funding programmes") }}

+ +
+
+
+
+
+ + + {% if records %} +
+
+
+

{{ _("Recent uploads") }}

+
+
+ +
+ {% for record in records %} +
    + {{ record_item(record=record, themed_community=community) }} +
+ {% endfor %} +
+
+
+ {% endif %} + +
+
+
+

{{ _("How it works") }}

+
+
+
+
+
+

{{ _("Submit your research") }}

+
+
    +
  • + {{ _("Eligibility") }} — {{ _("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.") }} +
  • +
  • + {{ _("Curation") }} — All submissions are curated. Submissions are NOT peer- reviewed (for papers please consider to publish through Open Research Europe platform). +
  • +
  • + {{ _("Compliance") }} — {{ _("the EU Open Research Repository makes it easy to comply with the related open science requirements of the Horizon Europe grant agreement.") }} +
  • +
  • + {{ _("Zenodo") }} — {{ _("EU Open Research Repository is community inside Zenodo which is managed and hosted by CERN.") }} +
  • +
+ +
+
+
+
+
+

{{ _("Get an EU project community") }}

+
+
    +
  • + {{ _("Manage your project's research outputs") }} — {{ _("An EU project community provides you with a common space to manage research outputs from your project and from all your partners.") }} +
  • +
  • + {{ _("Eligibility") }} — {{ _("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.") }} +
  • +
  • + {{ _("Members") }} — {{ _("Allows you to manage members from across all the project's partners and determine who can submit, who can review and who can manage.") }} +
  • +
  • + {{ _("200GB") }} — {{ _("EU project communities gets a quota per record of 200GB instead of the normal 50GB.") }} +
  • +
+ +
+
+
+
+
+

{{ _("About") }}

+
+
    +
  • + {{ _("European Commission & CERN") }} — {{ _("the EU Open Research Community is managed by CERN on behalf of the European Commission.") }} +
  • +
  • + {{ _("Become an early adopter") }} — do you manage an EU project and want to help test the new features of the repository? Reach out to us. +
  • +
  • + {{ _("Upcoming") }} — We're working on integrating automated basic curation checks and FAIR assistance directly into the submission workflow. Subscribe to the Zenodo newsletter to learn about the new features as soon as they are out. +
  • +
  • + {{ _("Funded by") }} — {{ _("the work is funded by the European Union under grant agreement no. 101122956 (HORIZON-ZEN).") }} +
  • +
+ +
+
+
+
+
+
+
+ {%- endblock page_body -%} + + {%- block javascript %} + {{ super() }} + {{ webpack['zenodo-rdm-horizon-frontpage.js'] }} + {%- endblock %} \ No newline at end of file