diff --git a/swh/search/journal_client.py b/swh/search/journal_client.py --- a/swh/search/journal_client.py +++ b/swh/search/journal_client.py @@ -70,7 +70,7 @@ logging.debug("processing origin intrinsic_metadata %r", origin_metadata) origin_metadata = [ - {"url": item["origin_url"], "intrinsic_metadata": item["metadata"],} + {"url": item["id"], "intrinsic_metadata": item["metadata"],} for item in origin_metadata ] diff --git a/swh/search/tests/test_cli.py b/swh/search/tests/test_cli.py --- a/swh/search/tests/test_cli.py +++ b/swh/search/tests/test_cli.py @@ -226,7 +226,6 @@ origin_intrinsic_metadata = { "id": origin_foobar["url"], - "origin_url": origin_foobar["url"], "metadata": { "name": "clojure", "type": "SoftwareSourceCode", diff --git a/swh/search/tests/test_journal_client.py b/swh/search/tests/test_journal_client.py --- a/swh/search/tests/test_journal_client.py +++ b/swh/search/tests/test_journal_client.py @@ -49,7 +49,7 @@ { "origin_intrinsic_metadata": [ { - "origin_url": "http://foobar.baz", + "id": "http://foobar.baz", "metadata": { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "description": "foo bar",