67611: Import external source entry window layout changes

This commit is contained in:
Kristof De Langhe
2019-12-19 17:34:13 +01:00
parent e2c4e6d27b
commit ea05af74bd
2 changed files with 14 additions and 7 deletions

View File

@@ -13,15 +13,17 @@
</div>
<h4>{{ (labelPrefix + 'select' | translate) }}</h4>
<div id="external-source-entry-collection" class="mb-3">
<div class="form-group">
<label for="collection">{{ (labelPrefix + 'collection' | translate) }}</label>
<input type="text" class="form-control" id="collection" placeholder="Enter collection ID" [(ngModel)]="collectionId">
</div>
</div>
<div id="external-source-entry-entities" class="mb-3">
<h5 class="font-weight-bold">{{ (labelPrefix + 'entities' | translate) }}</h5>
<div id="external-source-entry-collection" class="mb-3">
<div class="form-group">
<label for="collection">{{ (labelPrefix + 'collection' | translate) }}</label>
<input type="text" class="form-control" id="collection" placeholder="Enter collection ID" [(ngModel)]="collectionId">
</div>
</div>
<ds-search-results *ngIf="(localEntitiesRD$ | async)?.payload?.page?.length > 0"
[searchResults]="(localEntitiesRD$ | async)"
[sortConfig]="this.lookupRelationService.searchConfig?.sort"
@@ -40,7 +42,7 @@
<label class="form-check-label" for="new-entity">{{ (labelPrefix + 'entities.new' | translate) }}</label>
</div>
</div>
<div id="external-source-entry-authority">
<div id="external-source-entry-authority" *ngIf="authorityEnabled">
<h5 class="font-weight-bold">{{ (labelPrefix + 'authority' | translate) }}</h5>
<div class="ml-4">

View File

@@ -142,6 +142,11 @@ export class ExternalSourceEntryImportModalComponent implements OnInit {
*/
importedObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
/**
* Should it display the ability to import the entry as an authority?
*/
authorityEnabled = false;
constructor(public modal: NgbActiveModal,
public lookupRelationService: LookupRelationService,
private selectService: SelectableListService,