fixed server configuration read issues

This commit is contained in:
lotte
2019-08-27 16:08:27 +02:00
parent 56c93ff27e
commit fc6f5fd331
5 changed files with 19 additions and 27 deletions

View File

@@ -196,8 +196,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
const listCollection$: Observable<CollectionListEntry[]> = this.searchService.search(
new PaginatedSearchOptions({
dsoType: DSpaceObjectType.COLLECTION,
pagination: new PaginationComponentOptions(),
// scope: 'c0e4de93-f506-4990-a840-d406f6f2ada7'
pagination: new PaginationComponentOptions()
})
).pipe(
getSucceededRemoteData(),
@@ -210,7 +209,10 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
id: 'c0e4de93-f506-4990-a840-d406f6f2ada7',
name: 'Submission test'
}],
collection: { id: collection.indexableObject.id, name: collection.indexableObject.name }
collection: {
id: collection.indexableObject.id,
name: collection.indexableObject.name
}
}
})
})
@@ -237,7 +239,8 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
} else {
return listCollection.filter((v) => v.collection.name.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1).slice(0, 5);
}
}));
})
);
}
}