diff --git a/webapp/src/app/api/model/rankedAuthor.ts b/webapp/src/app/api/model/rankedAuthor.ts index d06efd83..db044599 100644 --- a/webapp/src/app/api/model/rankedAuthor.ts +++ b/webapp/src/app/api/model/rankedAuthor.ts @@ -25,6 +25,10 @@ export interface RankedAuthor { * Total citations across this author\'s matching works. */ citations_count: number; + /** + * Number of Handelsregister company connections matched by the author\'s name (proxy for company foundations). + */ + companies_count?: number; /** * Normalized weighted score used for ranking. */ diff --git a/webapp/src/app/api/model/rankingWeights.ts b/webapp/src/app/api/model/rankingWeights.ts index 5b7bf84a..13ff0db8 100644 --- a/webapp/src/app/api/model/rankingWeights.ts +++ b/webapp/src/app/api/model/rankingWeights.ts @@ -17,4 +17,8 @@ export interface RankingWeights { * Weight for the works metric (0.0 - 1.0). */ works: number; + /** + * Weight for the company-foundations metric (0.0 - 1.0). + */ + companies?: number; } diff --git a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts index 87f5513a..24361675 100644 --- a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts +++ b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts @@ -82,10 +82,11 @@ export class KeywordsToPersonsResultsComponent implements OnInit { readonly selectedIds = signal([]); readonly canCompare = computed(() => this.selectedIds().length >= 1); - // for now only works and citations are used as metrics/weights + // works, citations and company foundations are used as metrics/weights readonly defaultWeights: WeightMap = { works: 0.5, citations: 0.5, + companies: 0.5, }; readonly weightOptions: WeightSliderOption[] = [ @@ -106,6 +107,15 @@ export class KeywordsToPersonsResultsComponent implements OnInit { defaultValue: 0.5, queryParamName: 'wCitations', }, + { + key: 'companies', + label: 'Unternehmensgründungen', + icon: 'business', + description: + 'Gewichtet die Anzahl der Unternehmensgründungen (Handelsregister-Verbindungen).', + defaultValue: 0.5, + queryParamName: 'wCompanies', + }, /*{ key: 'patents', label: 'Patente', @@ -134,8 +144,8 @@ export class KeywordsToPersonsResultsComponent implements OnInit { readonly currentWeights = signal({ raw: this.defaultWeights, - normalized: { works: 0.5, citations: 0.5 }, - rawSum: 1, + normalized: { works: 1 / 3, citations: 1 / 3, companies: 1 / 3 }, + rawSum: 1.5, normalizedSum: 1, valid: true, }); @@ -327,6 +337,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit { weights: { works: rawWeights['works'], citation: rawWeights['citations'], + companies: rawWeights['companies'], }, timespan: { from: this.timespanFrom(),