|
20 | 20 | from .data.background_images import IDR_IMAGES, TISSUE_IMAGES, CELL_IMAGES |
21 | 21 | from .data.tabs import TABS |
22 | 22 | from .version import VERSION |
23 | | -from .utils import get_image_info, BIA_URL, parse_kvp_with_link, prefix_http |
| 23 | +from .utils import get_image_info, BIA_URL, parse_kvp_with_link, prefix_http, split_link |
24 | 24 |
|
25 | 25 | try: |
26 | 26 | from omero_mapr import mapr_settings |
@@ -165,7 +165,7 @@ def study_page(request, idrid, format="html", conn=None, **kwargs): |
165 | 165 | containers = [] |
166 | 166 | for obj in objs: |
167 | 167 | desc = obj.description |
168 | | - for token in ["Screen Description", "Project Description"]: |
| 168 | + for token in ["Screen Description", "Project Description", "Experiment Description"]: |
169 | 169 | if token in desc: |
170 | 170 | desc = desc.split(token, 1)[1] |
171 | 171 | containers.append({ |
@@ -202,7 +202,7 @@ def study_page(request, idrid, format="html", conn=None, **kwargs): |
202 | 202 | bia_id = img_path.split(BIA_URL, 1)[-1].split("/", 1)[0] |
203 | 203 |
|
204 | 204 | KNOWN_KEYS = ["Publication Authors", "Study Title", "Publication Title", "Publication DOI", "Data DOI", "License", |
205 | | - "PubMed ID", "PMC ID", "Release Date", "External URL"] |
| 205 | + "PubMed ID", "PMC ID", "Release Date", "External URL", "Annotation File"] |
206 | 206 | other_kvps = [] |
207 | 207 | for k, v in kvps.items(): |
208 | 208 | if k in KNOWN_KEYS: |
@@ -237,6 +237,7 @@ def study_page(request, idrid, format="html", conn=None, **kwargs): |
237 | 237 | "pmc_id": parse_kvp_with_link("PMC ID", kvps), |
238 | 238 | "release_date": kvps.get("Release Date")[0] if "Release Date" in kvps else None, |
239 | 239 | "external_urls": [prefix_http(url) for url in kvps.get("External URL", [])], |
| 240 | + "annotation_files": [split_link(link) for link in kvps.get("Annotation File", [])], |
240 | 241 | "other_kvps": other_kvps, |
241 | 242 | "jsonld": json.dumps(jsonld, indent=2), |
242 | 243 | } |
|
0 commit comments