diff --git a/src/app/shared/bitstream-attachment/bitstream-attachment.component.html b/src/app/shared/bitstream-attachment/bitstream-attachment.component.html index 47ee3b47051..a1f12b56c59 100644 --- a/src/app/shared/bitstream-attachment/bitstream-attachment.component.html +++ b/src/app/shared/bitstream-attachment/bitstream-attachment.component.html @@ -1,10 +1,6 @@ @if (attachment) {
-
- -
-
diff --git a/src/app/shared/bitstream-attachment/bitstream-attachment.component.scss b/src/app/shared/bitstream-attachment/bitstream-attachment.component.scss index 7b9417a0f23..896e8e93924 100644 --- a/src/app/shared/bitstream-attachment/bitstream-attachment.component.scss +++ b/src/app/shared/bitstream-attachment/bitstream-attachment.component.scss @@ -24,10 +24,6 @@ i.custom-icon { vertical-align: middle; } -.thumbnail-wrapper { - min-width: 120px; -} - .word-break { word-break: break-word; } diff --git a/src/app/shared/bitstream-attachment/bitstream-attachment.component.spec.ts b/src/app/shared/bitstream-attachment/bitstream-attachment.component.spec.ts index 63a7d59820b..2613f83a02a 100644 --- a/src/app/shared/bitstream-attachment/bitstream-attachment.component.spec.ts +++ b/src/app/shared/bitstream-attachment/bitstream-attachment.component.spec.ts @@ -16,7 +16,6 @@ import { TranslateModule, } from '@ngx-translate/core'; import { of } from 'rxjs'; -import { ThemedThumbnailComponent } from 'src/app/thumbnail/themed-thumbnail.component'; import { environment } from '../../../environments/environment'; import { TruncatableComponent } from '../truncatable/truncatable.component'; @@ -34,7 +33,6 @@ describe('BitstreamAttachmentComponent', () => { checkSumAlgorithm: 'MD5', value: 'checksum', }, - thumbnail: createSuccessfulRemoteDataObject$(new Bitstream()), }, ); const languageList = ['en;q=1', 'de;q=0.8']; @@ -63,7 +61,7 @@ describe('BitstreamAttachmentComponent', () => { ], schemas: [NO_ERRORS_SCHEMA], }) - .overrideComponent(BitstreamAttachmentComponent, { remove: { imports: [ThemedThumbnailComponent, TruncatableComponent, TruncatablePartComponent, FileDownloadButtonComponent] } }).compileComponents(); + .overrideComponent(BitstreamAttachmentComponent, { remove: { imports: [TruncatableComponent, TruncatablePartComponent, FileDownloadButtonComponent] } }).compileComponents(); }); beforeEach(() => { diff --git a/src/app/shared/bitstream-attachment/bitstream-attachment.component.ts b/src/app/shared/bitstream-attachment/bitstream-attachment.component.ts index 64abe115d97..aab6a5cf653 100644 --- a/src/app/shared/bitstream-attachment/bitstream-attachment.component.ts +++ b/src/app/shared/bitstream-attachment/bitstream-attachment.component.ts @@ -28,19 +28,16 @@ import { } from '@dspace/core/shared/bitstream.model'; import { BitstreamFormat } from '@dspace/core/shared/bitstream-format.model'; import { Item } from '@dspace/core/shared/item.model'; -import { getFirstCompletedRemoteData } from '@dspace/core/shared/operators'; import { TranslateModule, TranslateService, } from '@ngx-translate/core'; import { - BehaviorSubject, map, Observable, take, } from 'rxjs'; -import { ThemedThumbnailComponent } from '../../thumbnail/themed-thumbnail.component'; import { TruncatableComponent } from '../truncatable/truncatable.component'; import { TruncatablePartComponent } from '../truncatable/truncatable-part/truncatable-part.component'; import { FileSizePipe } from '../utils/file-size-pipe'; @@ -55,7 +52,6 @@ import { FileDownloadButtonComponent } from './attachment-render/types/file-down AsyncPipe, FileDownloadButtonComponent, FileSizePipe, - ThemedThumbnailComponent, TitleCasePipe, TranslateModule, TruncatableComponent, @@ -108,8 +104,6 @@ export class BitstreamAttachmentComponent implements OnInit { */ checksumInfo: ChecksumInfo; - thumbnail$: BehaviorSubject> = new BehaviorSubject>(null); - /** * Configuration type enum */ @@ -126,11 +120,6 @@ export class BitstreamAttachmentComponent implements OnInit { } ngOnInit() { - this.attachment.thumbnail.pipe( - getFirstCompletedRemoteData(), - ).subscribe((thumbnail: RemoteData) => { - this.thumbnail$.next(thumbnail); - }); this.allAttachmentProviders = this.attachment?.allMetadataValues('bitstream.viewer.provider'); this.bitstreamFormat$ = this.getFormat(this.attachment); this.bitstreamSize = this.getSize(this.attachment);