@@ -193,7 +193,7 @@ def study_page(request, idrid, format="html", conn=None, **kwargs):
193193 download_url = None
194194 bia_id = None
195195 idrid_name = containers [0 ]["name" ].split ("/" )[0 ]
196- if data_location == "IDR" :
196+ if data_location == "IDR" or data_location == "Github" :
197197 # then link to Download e.g. https://ftp.ebi.ac.uk/pub/databases/IDR/idr0002-heriche-condensation/
198198 # e.g. idr0002-heriche-condensation
199199 download_url = f"https://ftp.ebi.ac.uk/pub/databases/IDR/{ idrid_name } "
@@ -202,7 +202,7 @@ def study_page(request, idrid, format="html", conn=None, **kwargs):
202202 bia_id = img_path .split (BIA_URL , 1 )[- 1 ].split ("/" , 1 )[0 ]
203203
204204 KNOWN_KEYS = ["Publication Authors" , "Study Title" , "Publication Title" , "Publication DOI" , "Data DOI" , "License" ,
205- "PubMed ID" , "PMC ID" , "Release Date" ,]
205+ "PubMed ID" , "PMC ID" , "Release Date" , "External URL" ]
206206 other_kvps = []
207207 for k , v in kvps .items ():
208208 if k in KNOWN_KEYS :
@@ -236,6 +236,7 @@ def study_page(request, idrid, format="html", conn=None, **kwargs):
236236 "pubmed_id" : parse_kvp_with_link ("PubMed ID" , kvps ),
237237 "pmc_id" : parse_kvp_with_link ("PMC ID" , kvps ),
238238 "release_date" : kvps .get ("Release Date" )[0 ] if "Release Date" in kvps else None ,
239+ "external_urls" : [prefix_http (url ) for url in kvps .get ("External URL" , [])],
239240 "other_kvps" : other_kvps ,
240241 "jsonld" : json .dumps (jsonld , indent = 2 ),
241242 }
0 commit comments