Skip to content

Commit

Permalink
doi: require a doi after the first minting
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Dec 11, 2024
1 parent 404339b commit 4420700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_rdm_records/services/components/pids.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def publish(self, identity, draft=None, record=None):
required_schemes = set(self.service.config.parent_pids_required)

# if parent DOI is not required in the config, but record DOI is created, we need to create parent DOI as well
if draft and draft.get("pids", {}).get("doi"):
if "doi" in draft.pids:
required_schemes.add("doi")

conditional_schemes = self.service.config.parent_pids_conditional
Expand Down

0 comments on commit 4420700

Please sign in to comment.