mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
67478: AoT build fixes
This commit is contained in:
@@ -9,6 +9,7 @@ import { RelationshipOptions } from '../../shared/form/builder/models/relationsh
|
|||||||
import { SearchResult } from '../../shared/search/search-result.model';
|
import { SearchResult } from '../../shared/search/search-result.model';
|
||||||
import { Item } from '../shared/item.model';
|
import { Item } from '../shared/item.model';
|
||||||
import { skip, take } from 'rxjs/operators';
|
import { skip, take } from 'rxjs/operators';
|
||||||
|
import { ExternalSource } from '../shared/external-source.model';
|
||||||
|
|
||||||
describe('LookupRelationService', () => {
|
describe('LookupRelationService', () => {
|
||||||
let service: LookupRelationService;
|
let service: LookupRelationService;
|
||||||
@@ -29,6 +30,11 @@ describe('LookupRelationService', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
const externalSource = Object.assign(new ExternalSource(), {
|
||||||
|
id: 'orcidV2',
|
||||||
|
name: 'orcidV2',
|
||||||
|
hierarchical: false
|
||||||
|
});
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
externalSourceService = jasmine.createSpyObj('externalSourceService', {
|
externalSourceService = jasmine.createSpyObj('externalSourceService', {
|
||||||
@@ -92,7 +98,7 @@ describe('LookupRelationService', () => {
|
|||||||
let result;
|
let result;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
result = service.getTotalExternalResults(relationship, optionsWithQuery);
|
result = service.getTotalExternalResults(externalSource, optionsWithQuery);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should start with 0', () => {
|
it('should start with 0', () => {
|
||||||
|
@@ -55,7 +55,7 @@ export class DsDynamicLookupRelationExternalSourceTabComponent implements OnInit
|
|||||||
entriesRD$: Observable<RemoteData<PaginatedList<ExternalSourceEntry>>>;
|
entriesRD$: Observable<RemoteData<PaginatedList<ExternalSourceEntry>>>;
|
||||||
|
|
||||||
constructor(private router: Router,
|
constructor(private router: Router,
|
||||||
private searchConfigService: SearchConfigurationService,
|
public searchConfigService: SearchConfigurationService,
|
||||||
private externalSourceService: ExternalSourceService) {
|
private externalSourceService: ExternalSourceService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -59,9 +59,9 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
|
|||||||
private router: Router,
|
private router: Router,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private selectableListService: SelectableListService,
|
private selectableListService: SelectableListService,
|
||||||
private searchConfigService: SearchConfigurationService,
|
public searchConfigService: SearchConfigurationService,
|
||||||
private routeService: RouteService,
|
private routeService: RouteService,
|
||||||
protected lookupRelationService: LookupRelationService
|
public lookupRelationService: LookupRelationService
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user