diff --git a/src/app/cdk/trusted-summary/component/summary-panel/summary-panel.component.html b/src/app/cdk/trusted-summary/component/summary-panel/summary-panel.component.html index 77e352e88..d35bfe77e 100644 --- a/src/app/cdk/trusted-summary/component/summary-panel/summary-panel.component.html +++ b/src/app/cdk/trusted-summary/component/summary-panel/summary-panel.component.html @@ -73,7 +73,10 @@ -
+ diff --git a/src/app/cdk/trusted-summary/component/trusted-summary/trusted-summary.component.ts b/src/app/cdk/trusted-summary/component/trusted-summary/trusted-summary.component.ts index 0b5e565e2..0b7920c78 100644 --- a/src/app/cdk/trusted-summary/component/trusted-summary/trusted-summary.component.ts +++ b/src/app/cdk/trusted-summary/component/trusted-summary/trusted-summary.component.ts @@ -77,6 +77,7 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy { modifiedToday: boolean creationDateWithOffset: any lastUpdateDate: any + loading = false constructor( private _trustedSummary: TrustedSummaryService, @@ -112,6 +113,8 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy { this._trustedSummary.getSummary(this.orcid).subscribe((data) => { this.trustedSummary = data + this.loading = true + if (this.trustedSummary.creation) { this.creationDateWithOffset = this.dateWithOffset( this.trustedSummary.creation @@ -266,6 +269,11 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy { } private getAriaLabelSection(section: string): string { - return `${section} ${this.trustedSummary.name} ${this.labelOrcidRecord}` + const ariaLabel = `${section} ${this.trustedSummary.name} ${this.labelOrcidRecord}` + if (this.standaloneMode) { + return RecordUtil.appendOpensInNewTab(ariaLabel) + } + return ariaLabel } + } diff --git a/src/app/layout/footer/footer.component.html b/src/app/layout/footer/footer.component.html index b73e501ba..2e65c7f53 100644 --- a/src/app/layout/footer/footer.component.html +++ b/src/app/layout/footer/footer.component.html @@ -23,35 +23,35 @@ Linkedin @@ -61,14 +61,14 @@
diff --git a/src/app/layout/footer/footer.component.ts b/src/app/layout/footer/footer.component.ts index e778a6b25..a02a600d8 100644 --- a/src/app/layout/footer/footer.component.ts +++ b/src/app/layout/footer/footer.component.ts @@ -2,6 +2,7 @@ import { Component, OnInit, Inject } from '@angular/core' import { PlatformInfoService } from 'src/app/cdk/platform-info' import { WINDOW } from 'src/app/cdk/window' import { environment } from '../../../environments/environment' +import { RecordUtil } from 'src/app/shared/utils/record.util' @Component({ selector: 'app-footer', @@ -17,7 +18,16 @@ export class FooterComponent implements OnInit { isTablet = false isMobile = false - license = $localize`:@@footer.ariaLabelLicense:license (opens in new tab)` + license = RecordUtil.appendOpensInNewTab($localize`:@@footer.ariaLabelLicense:license`) + linkedin = RecordUtil.appendOpensInNewTab('Linkedin') + facebook = RecordUtil.appendOpensInNewTab('Facebook') + mastodon = RecordUtil.appendOpensInNewTab('Mastodon') + vimeo = RecordUtil.appendOpensInNewTab('Vimeo') + youtube = RecordUtil.appendOpensInNewTab('Youtube') + rss = RecordUtil.appendOpensInNewTab('RSS') + github = RecordUtil.appendOpensInNewTab('Github') + twitter = RecordUtil.appendOpensInNewTab('Twitter') + constructor( _platformInfo: PlatformInfoService, diff --git a/src/app/record/components/record-header/record-header.component.html b/src/app/record/components/record-header/record-header.component.html index a788cdd6b..c09d030d3 100644 --- a/src/app/record/components/record-header/record-header.component.html +++ b/src/app/record/components/record-header/record-header.component.html @@ -207,6 +207,7 @@

target="_blank" rel="noopener" i18n="@@summary.findOutMoreAboutRecordSummaries" + [attr.aria-label]="ariaLabelFindoutMore" >Find out more about record summaries