Skip to content

Commit

Permalink
Resolve #253
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life committed Apr 12, 2023
1 parent 8bb5188 commit c2014ca
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ class MetadataCollectionForm(AbstractEDRNForm):
('other', 'Other'),
)
)
reference_url_other = forms.CharField(
required=False, label='Other', max_length=280,
help_text='If you selected "Other" above, enter the description of the reference URL.'
)
pub_med_id = forms.CharField(required=False, label='PubMed ID', max_length=20)
doi = forms.CharField(required=False, label='DOI', max_length=150, help_text='Digital Object Identifier')
doi_url = forms.URLField(required=False, label='DOI URL', help_text='URL form of the DOI')
Expand Down Expand Up @@ -216,6 +220,9 @@ def render_email(self, form):
if data['results']: cp.set('Collection', 'ResultsAndConclusionSummary', data['results'])
if data['pub_med_id']: cp.set('Collection', 'PubMedID', data['pub_med_id'])
if data['reference_url']: cp.set('Collection', 'ReferenceURL', data['reference_url'])
if data['reference_url_description']:
cp.set('Collection', 'ReferenceURLDescription', data['reference_url_description'])
if data['reference_url_other']: cp.set('Collection', 'ReferenceURLOther', data['reference_url_other'])
cp.set('Collection', 'Consortium', 'EDRN')
cp.set('Collection', 'Species', data['species'])

Expand Down

0 comments on commit c2014ca

Please sign in to comment.