Skip to content

Commit

Permalink
fix: statistical map doi reference
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Aug 27, 2024
1 parent bda5117 commit f7f181b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion new_api/v3/serialization/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit f7f181b

Please sign in to comment.