Commit 951515e2 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

417: Fix crawling HTML log (OPENED)

Task-Url: search#417
parent 42796570
......@@ -25,6 +25,7 @@ CollectionEditor.prototype.init = function() {
"~eu.dariah.de.minfba.search.view.crawl.dialog.clear_data.head",
"~eu.dariah.de.minfba.search.view.crawl.dialog.clear_data.body",
"~eu.dariah.de.minfba.search.view.crawl.dialog.create_empty",
"~eu.dariah.de.minfba.search.view.crawl.dialog.cleanup_crawls",
"~eu.dariah.de.minfba.search.view.crawl.dialog.crawl_online",
"~eu.dariah.de.minfba.search.view.crawl.confirm_cancellation",
"~eu.dariah.de.minfba.search.view.crawl.confirm_reindex"
......@@ -79,6 +80,27 @@ CollectionEditor.prototype.refreshData = function(endpointId, datasetId, urlSuff
});
};
CollectionEditor.prototype.cleanupCrawls = function (endpointId, schemaId) {
var _this = this;
bootbox.confirm(__translator.translate("~eu.dariah.de.minfba.search.view.crawl.dialog.cleanup_crawls"), function(result) {
if(result) {
$.ajax({
url: __util.composeRelativeUrl("cleanupCrawls"),
data: {
epId: endpointId,
dmId: schemaId
},
type: "GET",
dataType: "json",
success: function(data) {
_this.refresh();
},
error: __util.processServerError
});
}
});
};
CollectionEditor.prototype.clearData = function (endpointId, schemaId, hasAdditionalData) {
var _this = this;
......
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