Commit 95e0d475 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1323: Implement metasearch for SRU endpoints

Task-Url: https://pm.winseda.de/issues/1323
parent 346520ac
......@@ -41,19 +41,22 @@ var ResponseHandler = function(options) {
this.imageQueue = [];
};
ResponseHandler.prototype.process = function(data, isShowMore) {
ResponseHandler.prototype.process = function(resultArray, isShowMore) {
this.elements.resultsContainer.removeClass("hide");
this.elements.placeholderWordcloud.addClass("hide");
this.processExecutedQueries(data.executedQueries);
this.processResources(isShowMore, data.resultElements, data.startIndex, data.totalHits, data.took, data.hasMore);
this.processResponseDatasources(data.resultDatasources);
this.processFilters(data.availableFilters);
//_this.processResponseTerms();
//_this.processResponseSubjects();
//
for (var i=0; i<resultArray.length; i++) {
var data = resultArray[i];
this.processExecutedQueries(data.executedQueries);
this.processResources(isShowMore, data.resultElements, data.startIndex, data.totalHits, data.took, data.hasMore);
this.processResponseDatasources(data.resultDatasources);
this.processFilters(data.availableFilters);
//_this.processResponseTerms();
//_this.processResponseSubjects();
//
}
};
ResponseHandler.prototype.processFilters = function(filters) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment