Commit 1361870c authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1325: Return results from metasearch with regular queries

Task-Url: https://pm.winseda.de/issues/1325
parent 95e0d475
......@@ -48,14 +48,17 @@ ResponseHandler.prototype.process = function(resultArray, isShowMore) {
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);
if (data.resultType=="REGULAR") {
//_this.processResponseTerms();
//_this.processResponseSubjects();
//
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();
//
}
}
};
......@@ -321,7 +324,7 @@ ResponseHandler.prototype.showImage = function(containerSelector, tmbsrc, src) {
ResponseHandler.prototype.renderHighlightTexts = function(resultElement) {
var strHighlight;
// Search highlights (content matches)
if (resultElement.fieldHighlights!==undefined && resultElement.fieldHighlights.length>0) {
if (resultElement.fieldHighlights!==null && resultElement.fieldHighlights!==undefined && resultElement.fieldHighlights.length>0) {
var highlights = [];
for (var i=0; i<resultElement.fieldHighlights.length; i++) {
for (var j=0; j<resultElement.fieldHighlights[i].highlightTexts.length; j++) {
......
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