Skip to content

Commit ce07cf1

Browse files
committed
feat(record-deletion): disable record deletion requests
1 parent 76689b3 commit ce07cf1

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

invenio.cfg

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -437,31 +437,7 @@ RDM_RESOURCE_ACCESS_TOKEN_REQUEST_ARG = "resource-token"
437437
RDM_RESOURCE_ACCESS_TOKENS_SUBJECT_SCHEMA = RATSubjectSchema
438438

439439
RDM_IMMEDIATE_RECORD_DELETION_ENABLED = True
440-
RDM_REQUEST_RECORD_DELETION_ENABLED = True
441-
RDM_REQUEST_RECORD_DELETION_CHECKLIST = [
442-
{
443-
"label": _("I want to change the metadata (title, description, etc.)"),
444-
"message": _(
445-
"You can "
446-
'<a href="https://help.zenodo.org/docs/deposit/manage-records/#edit">edit the metadata of a published record</a> '
447-
"at any time."
448-
),
449-
},
450-
{
451-
"label": _("I forgot to submit to a community"),
452-
"message": _(
453-
"You can "
454-
'<a href="https://help.zenodo.org/docs/share/submit-to-community/">submit a published record to a community</a> '
455-
"at any time."
456-
),
457-
},
458-
{
459-
"label": _("I want to get a Zenodo DOI for this record"),
460-
"message": _(
461-
'<a href="/support">Contact the Zenodo support team</a> about this record.'
462-
),
463-
},
464-
]
440+
RDM_REQUEST_RECORD_DELETION_ENABLED = False
465441
RDM_IMMEDIATE_FILE_MODIFICATION_POLICIES = [
466442
FileModificationGracePeriodPolicy(),
467443
FileModificationAdminPolicy(),

site/zenodo_rdm/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@
7777
"description": (
7878
'<div class="ui warning visible message">'
7979
'<div class="header">You can delete your record</div>'
80-
'<p>Please follow the documentation on <a href="https://help.zenodo.org/docs/deposit/manage-records/#delete">how to delete records</a> instead of creating a support ticket here.</p>'
81-
"<p>Note: if you are not able to delete the record as you are not the uploader, choose <em>take-down notice</em> instead</p>"
80+
'<p>Please follow the documentation on <a href="https://help.zenodo.org/docs/deposit/manage-records/#delete">how to delete records</a> first. Requests for records within 30 days of publication will be automatically declined.</p>'
81+
"<p>Note: If over 30 days have passed since publication, please enquire below. If you are not the uploader, choose <em>take-down notice</em> instead.</p>"
8282
"</div>"
8383
),
84-
"form_disabled": True,
8584
},
8685
{
8786
"key": "user-deletion",

0 commit comments

Comments
 (0)