Commit 27d742bc authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1294: Render es mappings based on resources only

Task-Url: https://pm.winseda.de/issues/1294
parent 48ffc9c7
......@@ -20,6 +20,9 @@ var ResultItem = function(options) {
this.loadedData = [];
$('.venobox').venobox();
__translator.addTranslations(["~eu.dariah.de.minfba.search.view.item.no_dataset"]);
__translator.getTranslations();
};
ResultItem.prototype.resize = function() {
......@@ -83,7 +86,11 @@ ResultItem.prototype.loadData = function(dataType, containerSelector, contentSel
dataType: "html",
success: function(data, textStatus, jqXHR ) {
$(containerSelector).addClass("show");
$(contentSelector).html(data);
if (data==null || data.length==0) {
$(contentSelector).html(__translator.translate("~eu.dariah.de.minfba.search.view.item.no_dataset"));
} else {
$(contentSelector).html(data);
}
_this.loadedData.push(dataType);
$(indicator).addClass("fa-chevron-circle-up").removeClass("fa-spinner fa-spin");
},
......
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