mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
use namevariants based on config
This commit is contained in:
@@ -126,8 +126,10 @@ export class DsDynamicLookupRelationModalComponent implements OnInit, OnDestroy
|
||||
this.selection$.pipe(take(1)).subscribe((selection) =>
|
||||
selection.map((s: SearchResult<Item>) => this.addNameVariantSubscription(s))
|
||||
);
|
||||
if (this.relationshipOptions.nameVariants) {
|
||||
this.context = Context.SubmissionModal;
|
||||
if (this.relationshipOptions.nameVariants === 'true') {
|
||||
this.context = Context.EntitySearchModalWithNameVariants;
|
||||
} else {
|
||||
this.context = Context.EntitySearchModal;
|
||||
}
|
||||
|
||||
this.externalSourcesRD$ = this.externalSourceService.findAll();
|
||||
|
@@ -105,7 +105,7 @@ export class ExternalSourceEntryImportModalComponent implements OnInit {
|
||||
/**
|
||||
* The context we're currently in (submission)
|
||||
*/
|
||||
context = Context.SubmissionModal;
|
||||
context = Context.EntitySearchModalWithNameVariants;
|
||||
|
||||
/**
|
||||
* List ID for selecting local entities
|
||||
|
Reference in New Issue
Block a user