From 644de8dab7bb985276c2073717ed782c8b1204f8 Mon Sep 17 00:00:00 2001 From: Bluefox <19696935+rushirajnenuji@users.noreply.github.com> Date: Wed, 5 Jul 2023 09:54:37 -0700 Subject: [PATCH 1/3] Add missing choices to UI registration form Add missing choices to UI registration form --- impl/form_objects.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/impl/form_objects.py b/impl/form_objects.py index c0e62093..ac809e48 100644 --- a/impl/form_objects.py +++ b/impl/form_objects.py @@ -749,10 +749,13 @@ class DateForm(django.forms.Form): ("Submitted", _("Submitted")), ("Updated", _("Updated")), ("Valid", _("Valid")), + ("Withdrawn", _("Withdrawn")), + ("Other", _("Other")) ) dateType = django.forms.ChoiceField( required=False, label=_("Type"), choices=DATE_TYPES ) + dateInformation = django.forms.CharField(required=False, label=_("Date Information")) class AltIdForm(django.forms.Form): @@ -989,6 +992,7 @@ def __init__(self, *args, **kwargs): ("ISNI", "ISNI"), ("GRID", "GRID"), ("Crossref Funder ID", _("Crossref Funder")), + ("ROR", "ROR"), ("Other", "Other"), ) self.fields["funderIdentifier-funderIdentifierType"] = django.forms.ChoiceField( From 4890a76a5d8cb8f78417c9cad8cb4a672933bc00 Mon Sep 17 00:00:00 2001 From: Bluefox <19696935+rushirajnenuji@users.noreply.github.com> Date: Wed, 5 Jul 2023 10:08:21 -0700 Subject: [PATCH 2/3] Update mock form elements Update mock form elements --- impl/datacite_xml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/impl/datacite_xml.py b/impl/datacite_xml.py index 7de0527f..ab75c452 100644 --- a/impl/datacite_xml.py +++ b/impl/datacite_xml.py @@ -413,6 +413,7 @@ def temp_mockFormElements(): 'creators-creator-0-nameIdentifier_1-schemeURI': '', 'dates-date-0-date': '', 'dates-date-0-dateType': '', + 'dates-date-0-dateInformation': '', 'descriptions-description-0-description': '', 'descriptions-description-0-descriptionType': '', 'descriptions-description-0-{http://www.w3.org/XML/1998/namespace}lang': '', From 0a163f65eeebe7cb368afed7788594730fbb8679 Mon Sep 17 00:00:00 2001 From: Rushiraj Nenuji <19696935+rushirajnenuji@users.noreply.github.com> Date: Wed, 12 Jul 2023 10:28:04 -0700 Subject: [PATCH 3/3] Update _datacite_date.html --- templates/create/_datacite_date.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/create/_datacite_date.html b/templates/create/_datacite_date.html index 4a935739..88b604a9 100644 --- a/templates/create/_datacite_date.html +++ b/templates/create/_datacite_date.html @@ -21,6 +21,7 @@ {{ form.non_field_errors }} {% include "create/_datacite_inlinetext.html" with field=form.date %} {% include "create/_datacite_inlineselect.html" with field=form.dateType %} +{% include "create/_datacite_inlinetext.html" with field=form.dateInformation %} {% endfor %}