diff --git a/physionet-django/project/forms.py b/physionet-django/project/forms.py index ca37de0ee1..7e16433819 100644 --- a/physionet-django/project/forms.py +++ b/physionet-django/project/forms.py @@ -1089,14 +1089,19 @@ class Meta: class DataAccessRequestForm(forms.ModelForm): class Meta: model = DataAccessRequest - fields = ('data_use_title', 'data_use_purpose', 'agree_dua') + fields = ('data_use_title', 'data_use_purpose', 'publications_link', 'collaborators', 'agree_dua') help_texts = { 'data_use_title': """Title of the project you would like to use the data for""", 'data_use_purpose': """Detailed description of the data use.""", + 'publications_link': """Link to relevant publications related to this research project""", + 'collaborators': """List of collaborators (Name, email addresses) who will be working """ + """with you on this project""", } labels = { 'data_use_title': 'Research Project Title', - 'data_use_purpose': 'Research Project Details' + 'data_use_purpose': 'Research Project Details', + 'publications_link': 'Link to Relevant Publications', + 'collaborators': 'List of Collaborators' } agree_dua = forms.BooleanField(required=True) diff --git a/physionet-django/project/migrations/0079_dataaccessrequest_collaborators_and_more.py b/physionet-django/project/migrations/0079_dataaccessrequest_collaborators_and_more.py new file mode 100644 index 0000000000..051876aa36 --- /dev/null +++ b/physionet-django/project/migrations/0079_dataaccessrequest_collaborators_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.18 on 2025-03-12 14:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('project', '0078_delete_archivedproject'), + ] + + operations = [ + migrations.AddField( + model_name='dataaccessrequest', + name='collaborators', + field=models.TextField(blank=True, help_text='List of collaborators (Name, email addresses)', null=True), + ), + migrations.AddField( + model_name='dataaccessrequest', + name='publications_link', + field=models.URLField(blank=True, null=True), + ), + ] diff --git a/physionet-django/project/modelcomponents/access.py b/physionet-django/project/modelcomponents/access.py index 82e16b821f..a9e71120bf 100644 --- a/physionet-django/project/modelcomponents/access.py +++ b/physionet-django/project/modelcomponents/access.py @@ -75,6 +75,8 @@ class DataAccessRequest(models.Model): data_use_title = models.CharField(max_length=200, default='') data_use_purpose = SafeHTMLField(blank=False, max_length=10000) + publications_link = models.URLField(blank=True, null=True) + collaborators = models.TextField(blank=True, null=True, help_text="List of collaborators (Name, email addresses)") status = models.PositiveSmallIntegerField(default=0, choices=REJECT_ACCEPT) diff --git a/physionet-django/project/templates/project/data_access_request_status_detail.html b/physionet-django/project/templates/project/data_access_request_status_detail.html index 4eff0321dd..5bda10c5d6 100644 --- a/physionet-django/project/templates/project/data_access_request_status_detail.html +++ b/physionet-django/project/templates/project/data_access_request_status_detail.html @@ -8,5 +8,15 @@
{{ access_request.data_use_purpose|safe }}
+ + {% if access_request.publications_link %} +{{ access_request.publications_link }}
+ {% endif %} + + {% if access_request.collaborators %} +{{ access_request.collaborators }}
+ {% endif %} {% endblock %} diff --git a/physionet-django/project/templates/project/data_access_request_table_snippet.html b/physionet-django/project/templates/project/data_access_request_table_snippet.html index f737e0421a..25d646d286 100644 --- a/physionet-django/project/templates/project/data_access_request_table_snippet.html +++ b/physionet-django/project/templates/project/data_access_request_table_snippet.html @@ -10,6 +10,8 @@{{ access_request.publications_link }}
+ {% endif %} + + {% if access_request.collaborators %} +{{ access_request.collaborators }}
+ {% endif %}