diff --git a/curation/imports/curation.py b/curation/imports/curation.py index 36f03519..3d743187 100644 --- a/curation/imports/curation.py +++ b/curation/imports/curation.py @@ -151,7 +151,7 @@ def run_curation_import(self): if curation_pub != None: if study_import.study_publication.curation_status == 'E': - curation_pub.curation_status = 'Embargo Imported - Awaiting Release' + curation_pub.curation_status = 'Embargo Imported - Awaiting Publication' else: curation_pub.curation_status = 'Imported - Awaiting Release' curation_pub.save() diff --git a/curation_tracker/admin.py b/curation_tracker/admin.py index 4803da1e..3e52924c 100644 --- a/curation_tracker/admin.py +++ b/curation_tracker/admin.py @@ -448,7 +448,7 @@ def save_model(self, request, obj, form, change): # Desembargo the study if obj.embargoed == False and (not db_obj or db_obj.embargoed == True): - if obj.curation_status == 'Embargo Imported - Awaiting Release': + if obj.curation_status == 'Embargo Imported - Awaiting Publication': if obj.doi or obj.PMID: obj.curation_status = 'Imported - Awaiting Release' elif obj.curation_status == 'Embargo Curated - Awaiting Import': @@ -465,7 +465,7 @@ def save_model(self, request, obj, form, change): if obj.curation_status == 'Curated - Awaiting Import': obj.curation_status = 'Embargo Curated - Awaiting Import' elif obj.curation_status == 'Imported - Awaiting Release': - obj.curation_status == 'Embargo Imported - Awaiting Release' + obj.curation_status = 'Embargo Imported - Awaiting Publication' # Eligibility - part 2 if obj.curation_status == 'Abandoned/Ineligible': diff --git a/curation_tracker/migrations/0005_alter_curationpublicationannotation_curation_status.py b/curation_tracker/migrations/0005_alter_curationpublicationannotation_curation_status.py new file mode 100644 index 00000000..38e0c181 --- /dev/null +++ b/curation_tracker/migrations/0005_alter_curationpublicationannotation_curation_status.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.10 on 2024-04-19 14:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('curation_tracker', '0004_emailtemplate'), + ] + + operations = [ + migrations.AlterField( + model_name='curationpublicationannotation', + name='curation_status', + field=models.CharField(blank=True, choices=[('Abandoned/Ineligible', 'Abandoned/Ineligible'), ('Pending author response', 'Pending author response'), ('Awaiting L1', 'Awaiting L1'), ('Awaiting L2', 'Awaiting L2'), ('Curated - Awaiting Import', 'Curated - Awaiting Import'), ('Imported - Awaiting Release', 'Imported - Awaiting Release'), ('Released', 'Released'), ('Embargo Curated - Awaiting Import', 'Embargo Curated - Awaiting Import'), ('Embargo Imported - Awaiting Publication', 'Embargo Imported - Awaiting Publication'), ('Embargo Lifted - Awaiting Release', 'Embargo Lifted - Awaiting Release'), ('Retired', 'Retired')], default='Awaiting L1', max_length=50, null=True, verbose_name='Curation Status'), + ), + ] diff --git a/curation_tracker/models.py b/curation_tracker/models.py index a3c6dfc0..ece0215c 100644 --- a/curation_tracker/models.py +++ b/curation_tracker/models.py @@ -83,7 +83,7 @@ class CurationPublicationAnnotation(models.Model): ('Imported - Awaiting Release','Imported - Awaiting Release'), ('Released','Released'), ('Embargo Curated - Awaiting Import','Embargo Curated - Awaiting Import'), - ('Embargo Imported - Awaiting Release','Embargo Imported - Awaiting Release'), + ('Embargo Imported - Awaiting Publication','Embargo Imported - Awaiting Publication'), ('Embargo Lifted - Awaiting Release','Embargo Lifted - Awaiting Release'), ('Retired','Retired') ] diff --git a/release/scripts/run_release_script.py b/release/scripts/run_release_script.py index 338bb393..4b11a7f2 100644 --- a/release/scripts/run_release_script.py +++ b/release/scripts/run_release_script.py @@ -205,7 +205,7 @@ def update_curation_tracker(): curation_pub.pgp_id = pgp_id print(' - Updating curation_status on the Curation Tracker') if publication.curation_status == 'E': - curation_pub.curation_status = 'Embargo Imported - Awaiting Release' + curation_pub.curation_status = 'Embargo Imported - Awaiting Publication' else: curation_pub.curation_status = 'Released' curation_pub.release_date = new_release_date