Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
951515e2
Commit
951515e2
authored
Apr 21, 2021
by
Gradl, Tobias
Browse files
417: Fix crawling HTML log (OPENED)
Task-Url:
search#417
parent
42796570
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/collections/edit.js
View file @
951515e2
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment