Skip to content

Commit b52528d

Browse files
authored
Merge pull request #3588 from DSpace/backport-3378-to-dspace-8_x
[Port dspace-8_x] Changing the bitstream title in the submission form to use the view c…
2 parents 1cafe15 + 7e82716 commit b52528d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/app/submission/sections/upload/file/section-upload-file.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
<div class="col-md-10">
2020
<div class="float-left w-75">
21-
<h3>{{fileName}} <span class="text-muted">({{fileData?.sizeBytes | dsFileSize}})</span></h3>
21+
<ds-submission-section-upload-file-view [fileData]="fileData"></ds-submission-section-upload-file-view>
2222
</div>
2323
<div class="float-right w-15">
2424
<ng-container>
@@ -43,7 +43,6 @@ <h3>{{fileName}} <span class="text-muted">({{fileData?.sizeBytes | dsFileSize}})
4343
</ng-container>
4444
</div>
4545
<div class="clearfix"></div>
46-
<ds-submission-section-upload-file-view [fileData]="fileData"></ds-submission-section-upload-file-view>
4746
</div>
4847
</div>
4948
</ng-container>

src/app/submission/sections/upload/file/view/section-upload-file-view.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<ng-container *ngIf="metadata">
33
<ng-container *ngFor="let entry of getAllMetadataValue(fileTitleKey)">
44
<ng-container *ngIf="entry.value !== ''">
5-
<h5>
5+
<h3>
66
{{entry.value}}
7-
</h5>
7+
<span class="text-muted">({{fileData?.sizeBytes | dsFileSize}})</span>
8+
</h3>
89
</ng-container>
910
<ng-container *ngIf="entry.value === ''">
1011
<h5 *ngIf="metadata[fileTitleKey].indexOf(entry) === 0">

src/app/submission/sections/upload/file/view/section-upload-file-view.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import { Metadata } from '../../../../../core/shared/metadata.utils';
1717
import { WorkspaceitemSectionUploadFileObject } from '../../../../../core/submission/models/workspaceitem-section-upload-file.model';
1818
import { isNotEmpty } from '../../../../../shared/empty.util';
19+
import { FileSizePipe } from '../../../../../shared/utils/file-size-pipe';
1920
import { TruncatePipe } from '../../../../../shared/utils/truncate.pipe';
2021
import { SubmissionSectionUploadAccessConditionsComponent } from '../../accessConditions/submission-section-upload-access-conditions.component';
2122

@@ -31,6 +32,7 @@ import { SubmissionSectionUploadAccessConditionsComponent } from '../../accessCo
3132
TruncatePipe,
3233
NgIf,
3334
NgForOf,
35+
FileSizePipe,
3436
],
3537
standalone: true,
3638
})

0 commit comments

Comments
 (0)