mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
[CST-4591] Change import from external source page in order to work with entity type
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 id="header" class="pb-2">{{'submission.import-external.title' | translate}}</h2>
|
||||
<h2 id="header" class="pb-2">{{'submission.import-external.title' + ((label) ? '.' + label : '') | translate}}</h2>
|
||||
<ds-submission-import-external-searchbar
|
||||
[initExternalSourceData]="routeData"
|
||||
*ngIf="reload$.value.entity"
|
||||
[initExternalSourceData]="reload$.value"
|
||||
(externalSourceData) = "getExternalSourceData($event)">
|
||||
</ds-submission-import-external-searchbar>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div *ngIf="routeData.sourceId !== ''" class="col-md-12">
|
||||
<div class="row" *ngIf="reload$.value.entity">
|
||||
<div *ngIf="reload$.value.sourceId !== ''" class="col-md-12">
|
||||
<ng-container *ngVar="(entriesRD$ | async) as entriesRD">
|
||||
<h3 *ngIf="entriesRD && entriesRD?.payload?.page?.length !== 0">{{ 'submission.sections.describe.relationship-lookup.selection-tab.title.' + routeData.sourceId | translate}}</h3>
|
||||
<h3 *ngIf="entriesRD && entriesRD?.payload?.page?.length !== 0">{{ 'submission.sections.describe.relationship-lookup.selection-tab.title' | translate}}</h3>
|
||||
<ds-viewable-collection *ngIf="entriesRD?.hasSucceeded && !(isLoading$ | async) && entriesRD?.payload?.page?.length > 0" @fadeIn
|
||||
[objects]="entriesRD"
|
||||
[selectionConfig]="{ repeatable: repeatable, listId: listId }"
|
||||
@@ -29,12 +30,19 @@
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
<div *ngIf="routeData.sourceId === ''" class="col-md-12">
|
||||
<div *ngIf="reload$.value.sourceId === ''" class="col-md-12">
|
||||
<ds-alert [type]="'alert-info'">
|
||||
<p class="lead mb-0">{{'submission.import-external.page.hint' | translate}}</p>
|
||||
</ds-alert>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" *ngIf="!reload$.value.entity">
|
||||
<div class="col-md-12">
|
||||
<ds-alert [type]="'alert-warning'">
|
||||
<p class="lead mb-0">{{'submission.import-external.page.noentity' | translate}}</p>
|
||||
</ds-alert>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<hr>
|
||||
|
Reference in New Issue
Block a user