Commit 4b14145e authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

425: Fix minor search handling issues (OPENED)

Task-Url: search#425
parent 4af9947b
...@@ -220,6 +220,9 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl ...@@ -220,6 +220,9 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
} }
// Being loaded in-queue // Being loaded in-queue
this.handleImages(resultElement, index, datamodelId, resultId); this.handleImages(resultElement, index, datamodelId, resultId);
} else {
// Show placeholder right away
this.showImage("#search-result-image-container-" + index, __util.composeUrl("theme/img/placeholder-logo.png"), undefined);
} }
if (title==undefined || title.length==0) { if (title==undefined || title.length==0) {
title = "<em>" + __translator.translate("~eu.dariah.de.minfba.search.view.result.no_title") + "</em>"; title = "<em>" + __translator.translate("~eu.dariah.de.minfba.search.view.result.no_title") + "</em>";
...@@ -258,7 +261,7 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl ...@@ -258,7 +261,7 @@ ResponseHandler.prototype.processResource = function(index, resultItem, resultEl
} }
}; };
ResponseHandler.prototype.handleImages = function(resultElement, index, datasetId, resultId) { ResponseHandler.prototype.handleImages = function(resultElement, index, datasetId, resultId) {
var images = { var images = {
datamodelId: datasetId, datamodelId: datasetId,
resultId: resultId, resultId: resultId,
......
Supports Markdown
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