mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #3762 from tdonohue/port_3264_to_8x
[Port dspace-8_x] More accessible file download link for users who use a screen reader
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
<a [routerLink]="(bitstreamPath$| async)?.routerLink" class="dont-break-out" [queryParams]="(bitstreamPath$| async)?.queryParams" [target]="isBlank ? '_blank': '_self'" [ngClass]="cssClasses">
|
<a [routerLink]="(bitstreamPath$| async)?.routerLink" class="dont-break-out"
|
||||||
|
[queryParams]="(bitstreamPath$| async)?.queryParams"
|
||||||
|
[target]="isBlank ? '_blank': '_self'"
|
||||||
|
[ngClass]="cssClasses"
|
||||||
|
[attr.aria-label]="('file-download-link.download' | translate) + dsoNameService.getName(bitstream)">
|
||||||
<span role="img" *ngIf="(canDownload$ |async) !== true" [attr.aria-label]="'file-download-link.restricted' | translate" class="pr-1"><i class="fas fa-lock"></i></span>
|
<span role="img" *ngIf="(canDownload$ |async) !== true" [attr.aria-label]="'file-download-link.restricted' | translate" class="pr-1"><i class="fas fa-lock"></i></span>
|
||||||
<ng-container *ngTemplateOutlet="content"></ng-container>
|
<ng-container *ngTemplateOutlet="content"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
@@ -22,6 +22,7 @@ import {
|
|||||||
getBitstreamDownloadRoute,
|
getBitstreamDownloadRoute,
|
||||||
getBitstreamRequestACopyRoute,
|
getBitstreamRequestACopyRoute,
|
||||||
} from '../../app-routing-paths';
|
} from '../../app-routing-paths';
|
||||||
|
import { DSONameService } from '../../core/breadcrumbs/dso-name.service';
|
||||||
import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization-data.service';
|
import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization-data.service';
|
||||||
import { FeatureID } from '../../core/data/feature-authorization/feature-id';
|
import { FeatureID } from '../../core/data/feature-authorization/feature-id';
|
||||||
import { Bitstream } from '../../core/shared/bitstream.model';
|
import { Bitstream } from '../../core/shared/bitstream.model';
|
||||||
@@ -73,6 +74,7 @@ export class FileDownloadLinkComponent implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private authorizationService: AuthorizationDataService,
|
private authorizationService: AuthorizationDataService,
|
||||||
|
public dsoNameService: DSONameService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6758,6 +6758,8 @@
|
|||||||
|
|
||||||
"browse.search-form.placeholder": "Search the repository",
|
"browse.search-form.placeholder": "Search the repository",
|
||||||
|
|
||||||
|
"file-download-link.download": "Download ",
|
||||||
|
|
||||||
"register-page.registration.aria.label": "Enter your e-mail address",
|
"register-page.registration.aria.label": "Enter your e-mail address",
|
||||||
|
|
||||||
"forgot-email.form.aria.label": "Enter your e-mail address",
|
"forgot-email.form.aria.label": "Enter your e-mail address",
|
||||||
|
@@ -8152,11 +8152,12 @@
|
|||||||
//"browse.search-form.placeholder": "Search the repository",
|
//"browse.search-form.placeholder": "Search the repository",
|
||||||
"browse.search-form.placeholder": "Buscar en el repositorio",
|
"browse.search-form.placeholder": "Buscar en el repositorio",
|
||||||
|
|
||||||
|
// "file-download-link.download": "Download ",
|
||||||
|
"file-download-link.download": "Descargar ",
|
||||||
|
|
||||||
// "register-page.registration.aria.label": "Enter your e-mail address",
|
// "register-page.registration.aria.label": "Enter your e-mail address",
|
||||||
"register-page.registration.aria.label": "Introduzca su dirección de correo electrónico",
|
"register-page.registration.aria.label": "Introduzca su dirección de correo electrónico",
|
||||||
|
|
||||||
// "forgot-email.form.aria.label": "Enter your e-mail address",
|
// "forgot-email.form.aria.label": "Enter your e-mail address",
|
||||||
"forgot-email.form.aria.label": "Introduzca su dirección de correo electrónico",
|
"forgot-email.form.aria.label": "Introduzca su dirección de correo electrónico",
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -10250,6 +10250,9 @@
|
|||||||
//"browse.search-form.placeholder": "Search the repository",
|
//"browse.search-form.placeholder": "Search the repository",
|
||||||
"browse.search-form.placeholder": "Buscar no repositório",
|
"browse.search-form.placeholder": "Buscar no repositório",
|
||||||
|
|
||||||
|
// "file-download-link.download": "Download ",
|
||||||
|
"file-download-link.download": "Baixar ",
|
||||||
|
|
||||||
// "register-page.registration.aria.label": "Enter your e-mail address",
|
// "register-page.registration.aria.label": "Enter your e-mail address",
|
||||||
"register-page.registration.aria.label": "Digite seu e-mail",
|
"register-page.registration.aria.label": "Digite seu e-mail",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user