Skip to content

Commit

Permalink
Merge pull request #443 from CDLUC3/feature-432-433-DOI-registration
Browse files Browse the repository at this point in the history
Feature 432 433 doi registration
  • Loading branch information
rushirajnenuji authored Jul 12, 2023
2 parents c5f1e5d + 0a163f6 commit 931f673
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions impl/datacite_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': '',
Expand Down
4 changes: 4 additions & 0 deletions impl/form_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions templates/create/_datacite_date.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
</div>
{% endfor %}
</div>
Expand Down

0 comments on commit 931f673

Please sign in to comment.