From 784aeb65458b0be7432cb411e34148a5ab2601a7 Mon Sep 17 00:00:00 2001 From: Carlin MacKenzie Date: Wed, 20 Nov 2024 11:36:15 +0100 Subject: [PATCH] subcommunities: send invitation notification and improve message --- site/zenodo_rdm/subcommunities/request.py | 41 +++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/site/zenodo_rdm/subcommunities/request.py b/site/zenodo_rdm/subcommunities/request.py index b6a303e5..025dafb0 100644 --- a/site/zenodo_rdm/subcommunities/request.py +++ b/site/zenodo_rdm/subcommunities/request.py @@ -162,13 +162,50 @@ def execute(self, identity, uow): # example: "May 11, 2024" expires_at = self.request.expires_at.strftime("%B %d, %Y") + NAME = "TODO" + ACRONYMS = "TODO" self.request["description"] = ( - "



If you do not perform any action by {expires_at}, the permission for " - "community curators, managers and owners to manage your records will be automatically granted.

" + "

We would like to invite you to join the " + "EU Open Research Repository because we have detected that your Zenodo community " + "is likely related to an EU-funded project:

The EU Open " + "Research Repository is a Zenodo community dedicated to fostering open science " + "and enhancing the visibility and accessibility of research outputs funded by " + "the European Union. The community is managed by CERN on behalf of the European " + "Commission.

What does it mean to join?

The EU Open Research Repository is gradually " + "being improved and by mid-2025 new submissions will automatically be checked " + "for compliance with the related open science requirements in the Horizon Europe " + "grant agreement. For more information see " + "https://zenodo.org/communities/eu/pages/join.

Which EU-funded projects " + "have already joined?
You can browse the " + "EU-funded projects " + "which have already already joined.

When should I decline the invitation " + "to join?
You should decline this invitation if your Zenodo community " + "is not related to the above mentioned EU-funded project, or if the community is used " + "for multiple purposes (e.g both an organisation and a project).

" + "Further questions?
Don't hesitate to get in " + "touch with us if you have any questions.

The request will be automatically " + f"accepted on {expires_at} in case you do not accept or decline the request by then." + "

Your sincerely,
The Zenodo team" ) super().execute(identity, uow) + uow.register( + NotificationOp( + notifications.SubComInvitationCreate.build( + identity=identity, request=self.request + ) + ) + ) + class SubcommunityInvitationExpireAction(actions.ExpireAction): """Expire action."""