facet, filter, pagination implementation using rest api

This commit is contained in:
Lotte Hofstede
2018-03-29 15:30:46 +02:00
parent cdf1dc402a
commit 86fcf44977
30 changed files with 513 additions and 341 deletions

View File

@@ -56,14 +56,6 @@ export class SearchResponseParsingService implements ResponseParsingService {
}));
payload.objects = objects;
const deserialized = new DSpaceRESTv2Serializer(SearchQueryResponse).deserialize(payload);
return new SearchSuccessResponse(deserialized, data.statusCode, this.processPageInfo(data.payload.page));
}
protected processPageInfo(pageObj: any): PageInfo {
if (isNotEmpty(pageObj)) {
return new DSpaceRESTv2Serializer(PageInfo).deserialize(pageObj);
} else {
return undefined;
}
return new SearchSuccessResponse(deserialized, data.statusCode, this.dsoParser.processPageInfo(data.payload.page));
}
}