mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Changing the bitstream title in the submission form to use the view component title, avoiding disappearance with changes to the form
(cherry picked from commit fec4aa6df1
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
1cafe15d0d
commit
8dd132d7a7
@@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<div class="float-left w-75">
|
<div class="float-left w-75">
|
||||||
<h3>{{fileName}} <span class="text-muted">({{fileData?.sizeBytes | dsFileSize}})</span></h3>
|
<ds-submission-section-upload-file-view [fileData]="fileData"></ds-submission-section-upload-file-view>
|
||||||
</div>
|
</div>
|
||||||
<div class="float-right w-15">
|
<div class="float-right w-15">
|
||||||
<ng-container>
|
<ng-container>
|
||||||
@@ -43,7 +43,6 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<ds-submission-section-upload-file-view [fileData]="fileData"></ds-submission-section-upload-file-view>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@@ -2,9 +2,10 @@
|
|||||||
<ng-container *ngIf="metadata">
|
<ng-container *ngIf="metadata">
|
||||||
<ng-container *ngFor="let entry of getAllMetadataValue(fileTitleKey)">
|
<ng-container *ngFor="let entry of getAllMetadataValue(fileTitleKey)">
|
||||||
<ng-container *ngIf="entry.value !== ''">
|
<ng-container *ngIf="entry.value !== ''">
|
||||||
<h5>
|
<h3>
|
||||||
{{entry.value}}
|
{{entry.value}}
|
||||||
</h5>
|
<span class="text-muted">({{fileData?.sizeBytes | dsFileSize}})</span>
|
||||||
|
</h3>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="entry.value === ''">
|
<ng-container *ngIf="entry.value === ''">
|
||||||
<h5 *ngIf="metadata[fileTitleKey].indexOf(entry) === 0">
|
<h5 *ngIf="metadata[fileTitleKey].indexOf(entry) === 0">
|
||||||
|
@@ -18,6 +18,7 @@ import { WorkspaceitemSectionUploadFileObject } from '../../../../../core/submis
|
|||||||
import { isNotEmpty } from '../../../../../shared/empty.util';
|
import { isNotEmpty } from '../../../../../shared/empty.util';
|
||||||
import { TruncatePipe } from '../../../../../shared/utils/truncate.pipe';
|
import { TruncatePipe } from '../../../../../shared/utils/truncate.pipe';
|
||||||
import { SubmissionSectionUploadAccessConditionsComponent } from '../../accessConditions/submission-section-upload-access-conditions.component';
|
import { SubmissionSectionUploadAccessConditionsComponent } from '../../accessConditions/submission-section-upload-access-conditions.component';
|
||||||
|
import { FileSizePipe } from "../../../../../shared/utils/file-size-pipe";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This component allow to show bitstream's metadata
|
* This component allow to show bitstream's metadata
|
||||||
@@ -31,7 +32,8 @@ import { SubmissionSectionUploadAccessConditionsComponent } from '../../accessCo
|
|||||||
TruncatePipe,
|
TruncatePipe,
|
||||||
NgIf,
|
NgIf,
|
||||||
NgForOf,
|
NgForOf,
|
||||||
],
|
FileSizePipe
|
||||||
|
],
|
||||||
standalone: true,
|
standalone: true,
|
||||||
})
|
})
|
||||||
export class SubmissionSectionUploadFileViewComponent implements OnInit {
|
export class SubmissionSectionUploadFileViewComponent implements OnInit {
|
||||||
|
Reference in New Issue
Block a user