diff --git a/src/app/item-page/full/field-components/file-section/full-file-section.component.html b/src/app/item-page/full/field-components/file-section/full-file-section.component.html index b1de9cf4a31..463ef32aedf 100644 --- a/src/app/item-page/full/field-components/file-section/full-file-section.component.html +++ b/src/app/item-page/full/field-components/file-section/full-file-section.component.html @@ -34,7 +34,7 @@
{{"item.page.filesection.original.bundle"
- + {{"item.page.filesection.download" | translate}}
diff --git a/src/app/item-page/full/field-components/file-section/full-file-section.component.ts b/src/app/item-page/full/field-components/file-section/full-file-section.component.ts index 3663c81bc3f..6590f340e40 100644 --- a/src/app/item-page/full/field-components/file-section/full-file-section.component.ts +++ b/src/app/item-page/full/field-components/file-section/full-file-section.component.ts @@ -9,7 +9,7 @@ import { FileSectionComponent } from '../../../simple/field-components/file-sect import { PaginationComponentOptions } from '../../../../shared/pagination/pagination-component-options.model'; import { PaginatedList } from '../../../../core/data/paginated-list.model'; import { RemoteData } from '../../../../core/data/remote-data'; -import { map, switchMap, tap } from 'rxjs/operators'; +import { switchMap, tap } from 'rxjs/operators'; import { NotificationsService } from '../../../../shared/notifications/notifications.service'; import { TranslateService } from '@ngx-translate/core'; import { hasValue, isEmpty } from '../../../../shared/empty.util'; @@ -116,9 +116,7 @@ export class FullFileSectionComponent extends FileSectionComponent implements On } canDownload(file: Bitstream): Observable { - return this.authorizationService.isAuthorized(FeatureID.CanDownload, file.self).pipe( - map(value => !value), - ); + return this.authorizationService.isAuthorized(FeatureID.CanDownload, file.self); } ngOnDestroy(): void {