Skip to content

Commit b1eb34a

Browse files
author
Scott Straughan
committed
Removed research paper author affiliations from UI.
1 parent fc2a4fc commit b1eb34a

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

src/app/pages/ecosystem/research/shared/research-widget/research-widget.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ <h1 [innerHTML]="research.title"></h1>
1313
<ol>
1414
@for (author of research.authors; track author) {
1515
<li>
16-
<h1>{{ author.name }}</h1>
17-
<h2>{{ author.affiliation }}</h2>
16+
<h1>{{ author }}</h1>
1817
</li>
1918
}
2019
</ol>

src/app/pages/ecosystem/research/shared/research-widget/research-widget.component.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
font-size: 1rem;
5959
font-weight: normal;
6060

61-
h1, h2 {
61+
h1 {
6262
padding: 0;
6363
margin: 0;
6464
}
@@ -67,12 +67,6 @@
6767
font-size: 1rem;
6868
font-weight: normal;
6969
}
70-
71-
h2 {
72-
opacity: .4;
73-
font-size: .8rem;
74-
font-weight: normal;
75-
}
7670
}
7771
}
7872
}

src/app/shared/models/research.model.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,5 @@ export interface ResearchModel {
3030
description: string
3131
tags: string[]
3232
contributor: Observable<ContributorModel>
33-
authors: [{
34-
name: string
35-
affiliation: string
36-
}]
33+
authors: string[]
3734
}

src/app/shared/services/models/research.service.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ export class ResearchService extends JsonFeedService {
5353
tags: feedItem['tags'] ? feedItem['tags'] : [],
5454
contributor: of(ContributorService.convertFeedItem(
5555
feedItem['author'])),
56-
authors: feedItem['_authors'].map((author: any) => {
57-
return {
58-
name: author['name'],
59-
affiliation: author['affiliation']
60-
}
61-
})
56+
authors: feedItem['_authors']
6257
}
6358
}
6459

0 commit comments

Comments
 (0)