Skip to content

Commit

Permalink
Merge pull request #2126 from ORCID/fix/batch-fixes-dec-28
Browse files Browse the repository at this point in the history
fix/batch-fixes-dec-28
  • Loading branch information
leomendoza123 authored Dec 28, 2023
2 parents 8306ab7 + 8454a21 commit d86c014
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/app/core/title-service/title.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ export class TitleService {
}

setTitle(title: string) {
if (title) this._titleService.setTitle(title.replace(/-'/g, '−'))
// Use a replacement of the score for arabic titles to avoid the ORCID to be show in reverse
const arabic = /[\u0600-\u06FF]/
if (arabic.test(title)) {
title = title.replace(/-/g, '᭸')
}
this._titleService.setTitle(title)
}

setDisplayName(displayedNameWithId: string) {
Expand Down
2 changes: 0 additions & 2 deletions src/app/layout/user-menu/user-menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
width: 199px;
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
text-align: left;
white-space: initial;
word-break: break-word;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@
You are signed into
</ng-container>
<b>{{ entityDisplayName }}</b>
<ng-container i18n="@@linking.as"> as </ng-container>
<ng-container
i18n="@@linking.as"
*ngIf="
!signInData.email &&
!signInData.firstName &&
!signInData.lastName
"
>
as
</ng-container>
<b>
{{
signInData.email
Expand Down

0 comments on commit d86c014

Please sign in to comment.