Skip to content

Commit d8b926c

Browse files
committed
Allow initial publications on Rodare
1 parent fbcd9aa commit d8b926c

1 file changed

Lines changed: 11 additions & 22 deletions

File tree

src/hermes/commands/deposit/rodare.py

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,39 +49,28 @@ class RodareDepositPlugin(InvenioDepositPlugin):
4949
robis_publication_url = "https://www.hzdr.de/publications/Publ-{pub_id}"
5050

5151
def prepare(self) -> None:
52-
"""Update the context with the Robis identifier from the config."""
52+
"""Update the context with the Robis identifier from the config.
53+
54+
All HZDR publications must be registered in Robis (https://www.hzdr.de/robis).
55+
The first release of a software may only be performed when the registration in
56+
Robis is finalized and approved, and a publication form was added.
57+
"""
5358
super().prepare()
5459

5560
if not self.config.robis_pub_id:
5661
raise MisconfigurationError(
5762
f"deposit.{self.platform_name}.robis_pub_id is not configured. "
58-
"You can get a robis_pub_id by publishing the software via Robis. "
59-
f"HERMES may be used for subsequent releases. {self.robis_url}"
63+
"You can get a robis_pub_id by registering the planned publication in "
64+
'Robis and adding a "Software Publication" as publication form. '
65+
"After approval of the publication, you may add the Robis Publ-Id to "
66+
"the HERMES config file and proceed with the publication. "
67+
f"{self.robis_url}"
6068
)
6169

6270
self.ctx.update(
6371
self.invenio_context_path["robis_pub_id"], self.config.robis_pub_id
6472
)
6573

66-
def create_initial_version(self) -> None:
67-
"""Disallow creation of initial versions using HERMES.
68-
69-
HZDR publications must all be registered in Robis (https://www.hzdr.de/robis).
70-
There is a workflow in place that guides users from Robis to Rodare and
71-
automatically transfers metadata for them. Starting the publication workflow in
72-
Rodare is discouraged.
73-
74-
Subsequent releases of the software may be published on Rodare directly as the
75-
connection to Robis is in place by then.
76-
77-
This code should never be reached. So, raising a ``RuntimeError`` is just a
78-
precaution.
79-
"""
80-
raise RuntimeError(
81-
"Please initiate the publication process in Robis. "
82-
f"HERMES may be used for subsequent releases. {self.robis_url}"
83-
)
84-
8574
def related_identifiers(self):
8675
"""Update the related identifiers with link to Robis.
8776

0 commit comments

Comments
 (0)