publications-and-topics #220
@@ -355,11 +355,13 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<app-data-table
|
||||
[columns]="workColumns"
|
||||
[data]="elements()"
|
||||
queryParamSortKey="sort_by"
|
||||
queryParamSortDirectionKey="sort_direction" />
|
||||
<div class="table-wrap">
|
||||
<app-data-table
|
||||
[columns]="workColumns"
|
||||
[data]="elements()"
|
||||
queryParamSortKey="sort_by"
|
||||
queryParamSortDirectionKey="sort_direction" />
|
||||
</div>
|
||||
<app-query-param-paginator
|
||||
[total]="totalElements()"
|
||||
queryParamPageKey="page"
|
||||
@@ -469,6 +471,12 @@
|
||||
institution.institution_country_code.toUpperCase()
|
||||
}}</span>
|
||||
}
|
||||
<mat-icon
|
||||
class="institution-open-icon"
|
||||
(click)="openInstitutionPage(institution.institution_id, $event)"
|
||||
aria-label="Institutionsseite öffnen"
|
||||
>open_in_new</mat-icon
|
||||
>
|
||||
</button>
|
||||
} @empty {
|
||||
<span class="empty-text">-</span>
|
||||
|
||||
@@ -494,23 +494,25 @@ table.is-hidden {
|
||||
}
|
||||
|
||||
.table-wrap ::ng-deep {
|
||||
.mat-column-type,
|
||||
.mat-column-year,
|
||||
.mat-column-language,
|
||||
.mat-column-citations,
|
||||
.mat-mdc-header-cell {
|
||||
text-align: center;
|
||||
}
|
||||
.mat-sort-header-container {
|
||||
justify-content: center;
|
||||
}
|
||||
.mat-mdc-cell:not(.mat-column-title) {
|
||||
text-align: center;
|
||||
}
|
||||
.mat-column-institutions .institution-tags,
|
||||
.mat-column-topics .topic-chips {
|
||||
justify-content: center;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.mat-mdc-cell:not(:last-child),
|
||||
.mat-mdc-header-cell:not(:last-child) {
|
||||
border-right: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.mat-column-institutions,
|
||||
.mat-column-topics {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
mat-paginator {
|
||||
|
||||
@@ -270,7 +270,6 @@ export class PersonPublicationsComponent implements OnInit {
|
||||
topicNames: 'publicationTopicName',
|
||||
topicFields: 'publicationTopicField',
|
||||
topicDomains: 'publicationTopicDomain',
|
||||
sort: 'publicationSort',
|
||||
} as const;
|
||||
|
||||
readonly typeOptions = [
|
||||
@@ -768,6 +767,19 @@ export class PersonPublicationsComponent implements OnInit {
|
||||
return id.split('/').filter(Boolean).pop() ?? null;
|
||||
}
|
||||
|
||||
openInstitutionPage(
|
||||
institutionId: string | null | undefined,
|
||||
event: Event,
|
||||
): void {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
const id = this.extractRawId(institutionId);
|
||||
if (!id) return;
|
||||
|
||||
void this.router.navigate(['/institution', id]);
|
||||
}
|
||||
|
||||
getWorkTopicColor(topic: WorkTopic): string {
|
||||
return topicHierarchyColor({
|
||||
id: topic.id,
|
||||
|
||||
Reference in New Issue
Block a user