Skip to content

Commit 44f44f7

Browse files
committed
feat(networks): add projects domains
1 parent 168b51f commit 44f44f7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

client/src/api/networks/network/config.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,27 @@ export const CONFIG = {
290290
total_link_strength: "co-projects links",
291291
},
292292
},
293+
domains: {
294+
index: projectsIndex,
295+
field: "project_domains.code",
296+
topics: "project_domains.label.default.keyword",
297+
search_fields: projectsFields,
298+
source_fields: [...projectsSourceFields, "project_domains.code"],
299+
aggregation: "project_domains.code.keyword",
300+
co_aggregation: "co_domains.keyword",
301+
url_page: "https://www.wikidata.org/wiki",
302+
url_search: "/search/projects",
303+
terminology: {
304+
item: "topic",
305+
items: "topics",
306+
link: "co-topic link",
307+
links: "co-topic links",
308+
cluster: "community",
309+
clusters: "communities",
310+
link_strength: "co-projects",
311+
total_link_strength: "co-projects links",
312+
},
313+
},
293314
},
294315
}
295316

client/src/pages/networks/config/models.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ const NETWORK_MODELS_MAPPING = {
4848
},
4949
],
5050
projects: [
51+
{
52+
label: "domains",
53+
icon: "book-2-line",
54+
},
5155
{
5256
label: "institutions",
5357
icon: "building-line",

0 commit comments

Comments
 (0)