File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export const HeaderDetailCard = memo((props: Props) => {
136
136
author . affiliations ?. length <=
137
137
0 ) ) ) && (
138
138
< a
139
- href = { author . url }
139
+ href = { author . url ?? author ?. identifiers ?. [ 0 ] . url ?. toString ( ) }
140
140
className = { classes . authorLink }
141
141
key = { author . name }
142
142
>
Original file line number Diff line number Diff line change @@ -80,9 +80,18 @@ export function AuthorCard(props: Props) {
80
80
</ >
81
81
) ;
82
82
} ) }
83
- < div className = { classes . externalLinkButtons } >
84
- < LogoURLButton url = { author . url } labelFromURL = { true } />
85
- </ div >
83
+ { author . url && (
84
+ < div className = { classes . externalLinkButtons } >
85
+ < LogoURLButton url = { author . url } label = "Personal website" />
86
+ </ div >
87
+ ) }
88
+ { author . identifiers ?. map ( identifier => {
89
+ return (
90
+ < div className = { classes . externalLinkButtons } >
91
+ < LogoURLButton url = { identifier . url } labelFromURL = { true } />
92
+ </ div >
93
+ )
94
+ } ) }
86
95
</ Card >
87
96
) ;
88
97
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ const resolveLogoFromType = (
74
74
case "Orcid" :
75
75
return {
76
76
URLlogo : new URL (
77
- "https://homepage-prod. orcid.org/assets/iD_icon_1-9cfee7d6c7.png "
77
+ "https://orcid.org/assets/vectors/orcid.logo.icon.svg "
78
78
) ,
79
79
textFromURL : "ORCID"
80
80
} ;
You can’t perform that action at this time.
0 commit comments