Skip to content

Commit 931f673

Browse files
Merge pull request #443 from CDLUC3/feature-432-433-DOI-registration
Feature 432 433 doi registration
2 parents c5f1e5d + 0a163f6 commit 931f673

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

impl/datacite_xml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ def temp_mockFormElements():
413413
'creators-creator-0-nameIdentifier_1-schemeURI': '',
414414
'dates-date-0-date': '',
415415
'dates-date-0-dateType': '',
416+
'dates-date-0-dateInformation': '',
416417
'descriptions-description-0-description': '',
417418
'descriptions-description-0-descriptionType': '',
418419
'descriptions-description-0-{http://www.w3.org/XML/1998/namespace}lang': '',

impl/form_objects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,13 @@ class DateForm(django.forms.Form):
749749
("Submitted", _("Submitted")),
750750
("Updated", _("Updated")),
751751
("Valid", _("Valid")),
752+
("Withdrawn", _("Withdrawn")),
753+
("Other", _("Other"))
752754
)
753755
dateType = django.forms.ChoiceField(
754756
required=False, label=_("Type"), choices=DATE_TYPES
755757
)
758+
dateInformation = django.forms.CharField(required=False, label=_("Date Information"))
756759

757760

758761
class AltIdForm(django.forms.Form):
@@ -989,6 +992,7 @@ def __init__(self, *args, **kwargs):
989992
("ISNI", "ISNI"),
990993
("GRID", "GRID"),
991994
("Crossref Funder ID", _("Crossref Funder")),
995+
("ROR", "ROR"),
992996
("Other", "Other"),
993997
)
994998
self.fields["funderIdentifier-funderIdentifierType"] = django.forms.ChoiceField(

templates/create/_datacite_date.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
{{ form.non_field_errors }}
2222
{% include "create/_datacite_inlinetext.html" with field=form.date %}
2323
{% include "create/_datacite_inlineselect.html" with field=form.dateType %}
24+
{% include "create/_datacite_inlinetext.html" with field=form.dateInformation %}
2425
</div>
2526
{% endfor %}
2627
</div>

0 commit comments

Comments
 (0)