diff --git a/impl/datacite_xml.py b/impl/datacite_xml.py index 7de0527ff..ab75c452f 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': '', diff --git a/impl/form_objects.py b/impl/form_objects.py index c0e62093e..ac809e48b 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( diff --git a/templates/create/_datacite_date.html b/templates/create/_datacite_date.html index 4a935739d..88b604a94 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 %}