Skip to content
Snippets Groups Projects
Commit d2c4c846 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

outlink also for DOI

parent 910e7b94
No related branches found
No related tags found
1 merge request!1Wizard form
......@@ -102,11 +102,13 @@ class Bibliography(AutoFillableModel):
Bibliography.validate_source_id(self.id_source, self.source)
def has_external_url(self):
return self.source == 'PM'
return self.source == 'PM' or self.source == 'DO'
def get_external_url(self):
if self.source == 'PM':
return "https://www.ncbi.nlm.nih.gov/pubmed/" + str(self.id_source)
if self.source == 'DO':
return "https://doi.org/" + str(self.id_source)
@staticmethod
def validate_source_id(id_source, source):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment