From f7f181b7ece5dcbbc60b9320ca30c72f92a73f71 Mon Sep 17 00:00:00 2001 From: Xiao Gui Date: Tue, 27 Aug 2024 12:10:48 +0200 Subject: [PATCH] fix: statistical map doi reference --- new_api/v3/serialization/map.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/new_api/v3/serialization/map.py b/new_api/v3/serialization/map.py index 859ccc0..da4dec7 100644 --- a/new_api/v3/serialization/map.py +++ b/new_api/v3/serialization/map.py @@ -111,9 +111,10 @@ def dsv_id_to_model(id: str): id = "https://kg.ebrains.eu/api/instances/" + id.replace("https://kg.ebrains.eu/api/instances/", "") assert id in dsv_dict, f"{id} not found in dsv_dict" dsv = dsv_dict[id] + urls = [{"url": doi["identifier"]} for doi in dsv.get("doi", [])] return EbrainsDatasetModel(id=id, name=dsv["fullName"] or "", - urls=[{"url": dsv["homepage"]}] if dsv["homepage"] else [], + urls=urls, description=get_description(dsv), contributors=[EbrainsDsPerson(id=author["id"], identifier=author["id"],