regenerated dfg Project model + added keyword to topic id computed property to search results service
This commit is contained in:
@@ -20,8 +20,14 @@ export interface DfgProjectSummary {
|
||||
*/
|
||||
id: string;
|
||||
link?: string | null;
|
||||
title?: string | null;
|
||||
professional_classification?: string | null;
|
||||
title_de?: string | null;
|
||||
title_en?: string | null;
|
||||
/**
|
||||
* The subject classifications of the DFG project.
|
||||
*/
|
||||
subject_classifications_raw?: Array<string>;
|
||||
abstract_de?: string | null;
|
||||
abstract_en?: string | null;
|
||||
funding_start?: string | null;
|
||||
funding_end?: string | null;
|
||||
/**
|
||||
|
||||
+11
-1
@@ -127,7 +127,17 @@ export class SearchResultsStateService {
|
||||
});
|
||||
|
||||
readonly keywordsList = this.keywords;
|
||||
|
||||
readonly keywordTopicMap = computed(() => {
|
||||
const map = new Map<string, Topic>();
|
||||
for (const entry of this.selectedKeywordEntries()) {
|
||||
const keyword = entry.llm_keyword?.keyword?.trim().toLowerCase();
|
||||
const topic = entry.topic_mapping?.topic;
|
||||
if (keyword && topic) {
|
||||
map.set(keyword, topic);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
});
|
||||
// Parallel topic-name list for trend dashboard strategies. Entries
|
||||
// without a resolvable keyword are skipped when building the lookup map
|
||||
// so they can never collide on an `undefined` key and shadow a real one.
|
||||
|
||||
Reference in New Issue
Block a user