Skip to content

Commit

Permalink
Merge branch 'main' into feature/9071-sign-in-oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox authored Feb 21, 2024
2 parents 1ac80f7 + 5306d39 commit fd71942
Show file tree
Hide file tree
Showing 20 changed files with 130 additions and 50 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## v2.56.2 - 2024-02-21

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.56.1...v2.56.2)

- [#2163](https://github.com/ORCID/orcid-angular/pull/2163): fix: Add new translations required

### Fix

- Add new translations required

## v2.56.1 - 2024-02-20

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.56.0...v2.56.1)

## v2.56.0 - 2024-02-19

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.55.12...v2.56.0)

## v2.55.12 - 2024-02-19

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.55.11...v2.55.12)

## v2.55.11 - 2024-02-16

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.55.10...v2.55.11)
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<app-header *ngIf="!headlessMode" currentRoute=""></app-header>
<div class="router-container">
<router-outlet> </router-outlet>
<app-footer></app-footer>
<app-footer *ngIf="!footerlessMode"></app-footer>
</div>
</div>
2 changes: 2 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { ERROR_REPORT } from './errors'
export class AppComponent {
currentlyDisplayingZendesk = true
headlessMode = false
footerlessMode = false
currentRouteIsHeadlessOnOauthPage = true
screenDirection
currentRoute
Expand Down Expand Up @@ -126,6 +127,7 @@ export class AppComponent {
(platformInfo.hasOauthParameters || oauthSessionFound) &&
this.currentRouteIsHeadlessOnOauthPage
this.headlessMode = isOauth || platformInfo.summaryScreen
this.footerlessMode = platformInfo.summaryScreen
this.ie = platformInfo.ie
this.edge = platformInfo.edge
this.tabletOrHandset = platformInfo.tabletOrHandset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,19 @@ export class AffiliationStacksGroupsComponent implements OnInit {
@Output()
expandedContentChange: EventEmitter<MainPanelsState> = new EventEmitter()
professionalActivitiesTogglz = false
sortTypes: SortOrderType[] = ['title', 'start', 'end']
sortTypes: SortOrderType[] = ['title', 'start', 'end', 'source']
professionalActivitiesSortTypes: SortOrderType[] = [
'title',
'type',
'start',
'end',
'source',
]
educationAndQualificationSortTypes: SortOrderType[] = [
'title',
'start',
'end',
'source',
]
constructor(
private _record: RecordService,
Expand All @@ -77,16 +79,6 @@ export class AffiliationStacksGroupsComponent implements OnInit {
.getStateOf('PROFESSIONAL_ACTIVITIES')
.pipe(take(1))
.subscribe((value) => (this.professionalActivitiesTogglz = value))
this._togglz
.getStateOf('SOURCE_SORTING')
.pipe(take(1))
.subscribe((sourceSortingTogglz: boolean) => {
if (sourceSortingTogglz) {
this.sortTypes.push('source')
this.professionalActivitiesSortTypes.push('source')
this.educationAndQualificationSortTypes.push('source')
}
})
this.$loading = this._recordAffiliationService.$loading
this._record
.getRecord({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[(expandedContent)]="expandedContent['FUNDING']"
(expandedContentChange)="expandedContentChange.emit(expandedContent)"
[sortTypes]="sortTypes"
[sortType]="'date'"
[sortType]="'end'"
(sort)="sortEvent($event)"
>
<ng-container *ngIf="fundings.length > 0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class FundingStacksGroupsComponent implements OnInit {
ngOrcidFunding = $localize`:@@shared.funding:Funding`
countryCodes: { key: string; value: string }[]
loading = true
sortTypes: SortOrderType[] = ['title', 'start', 'end']
sortTypes: SortOrderType[] = ['title', 'start', 'end', 'source']

constructor(
private _userSession: UserService,
Expand All @@ -52,14 +52,6 @@ export class FundingStacksGroupsComponent implements OnInit {
) {}

ngOnInit(): void {
this._togglz
.getStateOf('SOURCE_SORTING')
.pipe(take(1))
.subscribe((sourceSortingTogglz: boolean) => {
if (sourceSortingTogglz) {
this.sortTypes.push('source')
}
})
this.getRecord()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@
'orc-font-body-large': platform.columns12
}"
>
{{ orcidId }}
<ng-container *ngIf="!platform.columns12; else elseBlock">{{
isPublicRecord
}}</ng-container>
<ng-template #elseBlock>{{ orcidId }}</ng-template>
</h2>
<div
class="buttons-wrapper"
Expand Down
18 changes: 9 additions & 9 deletions src/app/record/components/record-info/record-info.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
[ngClass]="{ 'no-padding': displayBiography || displaySideBar }"
>
<ng-container
*ngIf="
userInfo.IS_LOCKED === 'true' &&
userInfo.IS_DEACTIVATED === 'false' &&
!userInfo.PRIMARY_RECORD
"
*ngIf="userInfo.IS_LOCKED === 'true' && !userInfo.PRIMARY_RECORD"
>
<p>
<ng-container i18n="@@topBar.weLockRecords">
Expand Down Expand Up @@ -37,7 +33,11 @@
</ng-container>

<ng-container
*ngIf="userInfo.IS_DEACTIVATED === 'true' && !userInfo.PRIMARY_RECORD"
*ngIf="
userInfo.IS_DEACTIVATED === 'true' &&
userInfo.IS_LOCKED === 'false' &&
!userInfo.PRIMARY_RECORD
"
>
<p>
<ng-container i18n="@@topBar.whenOrcidDeactivated">
Expand All @@ -61,11 +61,11 @@
<p>
<ng-container i18n="@@topBar.accountDeprecated">
This account has been deprecated, please see account </ng-container
>&nbsp;<a [href]="userInfo.PRIMARY_RECORD">{{
>&nbsp;<a class="underline" [href]="userInfo.PRIMARY_RECORD">{{
'https:' + baseUrl + userInfo.PRIMARY_RECORD
}}</a
>&nbsp;<ng-container i18n="@@topBar.accountDeprecated2"
>for the latest information
>&nbsp;<ng-container i18n="@@topBar.forTheLastInformation"
>for the latest information.
</ng-container>
</p>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class WorkStackGroupComponent implements OnInit {
platform: PlatformInfo
selectedWorks: string[] = []
selectAll: false
sortTypes: SortOrderType[] = ['title', 'start', 'end']
sortTypes: SortOrderType[] = ['title', 'date', 'type', 'source']

@ViewChildren('selectAllCheckbox') selectAllCheckbox: MatCheckbox
@ViewChildren('appWorkStacks') appWorkStacks: QueryList<WorkStackComponent>
Expand All @@ -151,14 +151,6 @@ export class WorkStackGroupComponent implements OnInit {
) {}

ngOnInit(): void {
this._togglz
.getStateOf('SOURCE_SORTING')
.pipe(take(1))
.subscribe((sourceSortingTogglz: boolean) => {
if (sourceSortingTogglz) {
this.sortTypes.push('source')
}
})
this.$loading = this._works.$loading
this._record
.getRecord({ publicRecordId: this.isPublicRecord })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h3 class="orc-font-body" i18n="@@register.termsOfUse">Terms of Use</h3>
<mat-error
*ngIf="
termsOfUseWasTouched &&
this.nextButtonWasClicked &&
(form.hasError('required', 'termsOfUse') ||
form.hasError('required', 'dataProcessed'))
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,4 @@ export class FormTermsComponent extends BaseForm implements OnInit, DoCheck {
this._errorStateMatcher.isErrorState(this.termsOfUse, null) ||
this._errorStateMatcher.isErrorState(this.dataProcessed, null)
}

get termsOfUseWasTouched() {
return this.form.controls.termsOfUse.touched || this.nextButtonWasClicked
}
}
11 changes: 11 additions & 0 deletions src/index.html

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/locale/properties/signin/signin.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,18 @@ ngOrcid.signin.invalidUserType1=Invalid ORCID iD, please
ngOrcid.signin.invalidUserType2=contact support
ngOrcid.signin.contactSupport=contact support
ngOrcid.signin.signInToOrcid=Sign in to ORCID
ngOrcid.signin.signInInstitution=Sign in through your institution
ngOrcid.signin.yourOrcidPassword=Your ORCID password
ngOrcid.signin.enterValidEmailOrOrcidForExample=Please enter a valid email address or ORCID iD, for example: [email protected] or 0000-1234-5678-9101
ngOrcid.signin.enterValidEmailOrOrcid=Please enter a valid email address or your ORCID iD
ngOrcid.signin.yourPasswordMoreThan=Your password is more than 256 characters long. You cannot sign in to this ORCID account until you have reset your password
ngOrcid.signin.resetYourPassword=Reset your password
ngOrcid.signin.somethingNotQuiteRight=Something's not quite right...
ngOrcid.signin.checkYourSignIn=Please check that your sign in details are correct and then try signing in again
ngOrcid.signin.almostDone=Almost done!
ngOrcid.signin.signInToComplete=Sign in to complete your email verification
ngOrcid.signin.theEmailAddress=The email address
ngOrcid.signin.isAssociatedWithDeactivate=is associated with a deactivated ORCID account. You will need to reactivate the account before you can sign in with this email address
ngOrcid.signin.cannotSignInToOrcid=You cannot sign in to ORCID with this email address until you have claimed the record.
ngOrcid.signin.claimYourOrcidRecord=Claim your ORCID record
ngOrcid.signin.orcidAccountHasBeenDeprecated=This ORCID account has been deprecated. The active account is
22 changes: 20 additions & 2 deletions src/locale/properties/signin/signin.lr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ngOrcid.signin.2fa.heading=LR
ngOrcid.signin.2fa.instructions=LR
ngOrcid.signin.2fa.label=LR
ngOrcid.signin.2fa.recoveryCode=LR
ngOrcid.signin.unclaimedExists1=LR
ngOrcid.signin.unclaimedELRists1=LR
ngOrcid.signin.invalidUserType1=LR
ngOrcid.signin.invalidUserType2=LR
ngOrcid.signin.username=LR
Expand All @@ -53,7 +53,7 @@ ngOrcid.signin.2fa.badRecoveryCodeLength=LR
ngOrcid.signin.2fa.badVerificationCodeLength=LR
ngOrcid.signin.2fa.instructionsPart1=LR
ngOrcid.signin.2fa.instructionsPart2=LR
ngOrcid.signin.unclaimedExists2=LR
ngOrcid.signin.unclaimedELRists2=LR
ngOrcid.signin.badCredentials=LR
ngOrcid.signin.deprecatedWithPrimary=LR
ngOrcid.signin.verify.reactivationSentError=LR
Expand All @@ -67,3 +67,21 @@ ngOrcid.signin.passwordTooLong=LR
ngOrcid.signin.needToReset=LR
ngOrcid.signin.toSignIn=LR
ngOrcid.signin.signInToOrcid=LR
ngOrcid.signin.signInInstitution=LR
ngOrcid.signin.yourOrcidPassword=LR
ngOrcid.signin.enterValidEmailOrOrcidForELRample=LR
ngOrcid.signin.enterValidEmailOrOrcid=LR
ngOrcid.signin.yourPasswordMoreThan=LR
ngOrcid.signin.resetYourPassword=LR
ngOrcid.signin.somethingNotQuiteRight=LR
ngOrcid.signin.checkYourSignIn=LR
ngOrcid.signin.almostDone=LR
ngOrcid.signin.signInToComplete=LR
ngOrcid.signin.theEmailAddress=LR
ngOrcid.signin.isAssociatedWithDeactivate=LR
ngOrcid.signin.cannotSignInToOrcid=LR
ngOrcid.signin.claimYourOrcidRecord=LR
ngOrcid.signin.orcidAccountHasBeenDeprecated=LR
ngOrcid.signin.unclaimedExists1=LR
ngOrcid.signin.unclaimedExists2=LR
ngOrcid.signin.enterValidEmailOrOrcidForExample=LR
22 changes: 20 additions & 2 deletions src/locale/properties/signin/signin.rl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ngOrcid.signin.2fa.heading=RL
ngOrcid.signin.2fa.instructions=RL
ngOrcid.signin.2fa.label=RL
ngOrcid.signin.2fa.recoveryCode=RL
ngOrcid.signin.unclaimedExists1=RL
ngOrcid.signin.unclaimedERLists1=RL
ngOrcid.signin.invalidUserType1=RL
ngOrcid.signin.invalidUserType2=RL
ngOrcid.signin.username=RL
Expand All @@ -53,7 +53,7 @@ ngOrcid.signin.2fa.badRecoveryCodeLength=RL
ngOrcid.signin.2fa.badVerificationCodeLength=RL
ngOrcid.signin.2fa.instructionsPart1=RL
ngOrcid.signin.2fa.instructionsPart2=RL
ngOrcid.signin.unclaimedExists2=RL
ngOrcid.signin.unclaimedERLists2=RL
ngOrcid.signin.badCredentials=RL
ngOrcid.signin.deprecatedWithPrimary=RL
ngOrcid.signin.or=RL
Expand All @@ -67,3 +67,21 @@ ngOrcid.signin.passwordTooLong=RL
ngOrcid.signin.needToReset=RL
ngOrcid.signin.toSignIn=RL
ngOrcid.signin.signInToOrcid=RL
ngOrcid.signin.signInInstitution=RL
ngOrcid.signin.yourOrcidPassword=RL
ngOrcid.signin.enterValidEmailOrOrcidForERLample=RL
ngOrcid.signin.enterValidEmailOrOrcid=RL
ngOrcid.signin.yourPasswordMoreThan=RL
ngOrcid.signin.resetYourPassword=RL
ngOrcid.signin.somethingNotQuiteRight=RL
ngOrcid.signin.checkYourSignIn=RL
ngOrcid.signin.almostDone=RL
ngOrcid.signin.signInToComplete=RL
ngOrcid.signin.theEmailAddress=RL
ngOrcid.signin.isAssociatedWithDeactivate=RL
ngOrcid.signin.cannotSignInToOrcid=RL
ngOrcid.signin.claimYourOrcidRecord=RL
ngOrcid.signin.orcidAccountHasBeenDeprecated=RL
ngOrcid.signin.unclaimedExists1=RL
ngOrcid.signin.unclaimedExists2=RL
ngOrcid.signin.enterValidEmailOrOrcidForExample=RL
15 changes: 15 additions & 0 deletions src/locale/properties/signin/signin.xx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,18 @@ ngOrcid.signin.passwordTooLong=X
ngOrcid.signin.needToReset=X
ngOrcid.signin.toSignIn=X
ngOrcid.signin.signInToOrcid=X
ngOrcid.signin.signInInstitution=X
ngOrcid.signin.yourOrcidPassword=X
ngOrcid.signin.enterValidEmailOrOrcidForExample=X
ngOrcid.signin.enterValidEmailOrOrcid=X
ngOrcid.signin.yourPasswordMoreThan=X
ngOrcid.signin.resetYourPassword=X
ngOrcid.signin.somethingNotQuiteRight=X
ngOrcid.signin.checkYourSignIn=X
ngOrcid.signin.almostDone=X
ngOrcid.signin.signInToComplete=X
ngOrcid.signin.theEmailAddress=X
ngOrcid.signin.isAssociatedWithDeactivate=X
ngOrcid.signin.cannotSignInToOrcid=X
ngOrcid.signin.claimYourOrcidRecord=X
ngOrcid.signin.orcidAccountHasBeenDeprecated=X
1 change: 1 addition & 0 deletions src/locale/properties/top-bar/top-bar.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ topBar.recordOwnerNotHaveAdded=The record owner may not have added information t
topBar.findOutVisibility=Find out more about visibility settings in ORCID
topBar.ariaLabelCopyOrcidId=Copy your ORCID iD to the clipboard
topBar.ariaLabelViewPrintable=View a printable version of your ORCID record (Opens in new tab)
topBar.forTheLastInformation=for the latest information.
1 change: 1 addition & 0 deletions src/locale/properties/top-bar/top-bar.lr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ topBar.recordOwnerNotHaveAdded=LR
topBar.findOutVisibility=LR
topBar.ariaLabelCopyOrcidId=LR
topBar.ariaLabelViewPrintable=LR
topBar.forTheLastInformation=LR
1 change: 1 addition & 0 deletions src/locale/properties/top-bar/top-bar.rl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ topBar.recordOwnerNotHaveAdded=RL
topBar.findOutVisibility=RL
topBar.ariaLabelCopyOrcidId=RL
topBar.ariaLabelViewPrintable=RL
topBar.forTheLastInformation=RL
1 change: 1 addition & 0 deletions src/locale/properties/top-bar/top-bar.xx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ topBar.recordOwnerNotHaveAdded=X
topBar.findOutVisibility=X
topBar.ariaLabelCopyOrcidId=X
topBar.ariaLabelViewPrintable=X
topBar.forTheLastInformation=X

0 comments on commit fd71942

Please sign in to comment.