File tree Expand file tree Collapse file tree 5 files changed +15
-3
lines changed
app/shared/file-download-link Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1- < a [routerLink] ="(bitstreamPath$| async)?.routerLink " class ="dont-break-out " [queryParams] ="(bitstreamPath$| async)?.queryParams " [target] ="isBlank ? '_blank': '_self' " [ngClass] ="cssClasses ">
1+ < a [routerLink] ="(bitstreamPath$| async)?.routerLink " class ="dont-break-out "
2+ [queryParams] ="(bitstreamPath$| async)?.queryParams "
3+ [target] ="isBlank ? '_blank': '_self' "
4+ [ngClass] ="cssClasses "
5+ [attr.aria-label] ="('file-download-link.download' | translate) + dsoNameService.getName(bitstream) ">
26 < span *ngIf ="!(canDownload$ |async) " [attr.aria-label] ="'file-download-link.restricted' | translate " class ="pr-1 "> < i class ="fas fa-lock "> </ i > </ span >
37 < ng-container *ngTemplateOutlet ="content "> </ ng-container >
48</ a >
Original file line number Diff line number Diff line change 11import { Component , Input , OnInit } from '@angular/core' ;
22import { Bitstream } from '../../core/shared/bitstream.model' ;
33import { getBitstreamDownloadRoute , getBitstreamRequestACopyRoute } from '../../app-routing-paths' ;
4+ import { DSONameService } from '../../core/breadcrumbs/dso-name.service' ;
45import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization-data.service' ;
56import { FeatureID } from '../../core/data/feature-authorization/feature-id' ;
67import { hasValue , isNotEmpty } from '../empty.util' ;
@@ -48,6 +49,7 @@ export class FileDownloadLinkComponent implements OnInit {
4849
4950 constructor (
5051 private authorizationService : AuthorizationDataService ,
52+ public dsoNameService : DSONameService ,
5153 ) {
5254 }
5355
Original file line number Diff line number Diff line change 53865386
53875387 "browse.search-form.placeholder" : "Search the repository" ,
53885388
5389+ "file-download-link.download" : "Download " ,
5390+
53895391 "register-page.registration.aria.label" : "Enter your e-mail address" ,
53905392
53915393 "forgot-email.form.aria.label" : "Enter your e-mail address" ,
Original file line number Diff line number Diff line change 78317831 //"browse.search-form.placeholder": "Search the repository",
78327832 "browse.search-form.placeholder" : "Buscar en el repositorio" ,
78337833
7834+ // "file-download-link.download": "Download ",
7835+ "file-download-link.download" : "Descargar " ,
7836+
78347837 // "register-page.registration.aria.label": "Enter your e-mail address",
78357838 "register-page.registration.aria.label" : "Introduzca su dirección de correo electrónico" ,
78367839
78377840 // "forgot-email.form.aria.label": "Enter your e-mail address",
78387841 "forgot-email.form.aria.label" : "Introduzca su dirección de correo electrónico" ,
7839-
7840-
78417842}
Original file line number Diff line number Diff line change 78587858 //"browse.search-form.placeholder": "Search the repository",
78597859 "browse.search-form.placeholder" : "Buscar no repositório" ,
78607860
7861+ // "file-download-link.download": "Download ",
7862+ "file-download-link.download" : "Baixar " ,
7863+
78617864 // "register-page.registration.aria.label": "Enter your e-mail address",
78627865 "register-page.registration.aria.label" : "Digite seu e-mail" ,
78637866
You can’t perform that action at this time.
0 commit comments