VIVO-873 Adapt the client code to the new interface.
Create a bridge implementation of SearchIndexerImpl that just wraps around an old IndexBuilder. Modify client code: Application, BasicAuthenticator, SearchServiceController, SparqlUpdateApiController, UpdateUrisInIndex and VClassGroupCache Rewrite IndexController to use AJAX and to show the current status and history of the indexer events.
This commit is contained in:
parent
3bc42c1456
commit
2ceab6e3df
21 changed files with 1038 additions and 204 deletions
22
webapp/web/js/search/searchIndex.js
Normal file
22
webapp/web/js/search/searchIndex.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
/*
|
||||
Functions for use by searchIndex.ftl
|
||||
*/
|
||||
|
||||
function updateSearchIndexerStatus() {
|
||||
$.ajax({
|
||||
url: searchIndexerStatusUrl,
|
||||
dataType: "html",
|
||||
complete: function(xhr, status) {
|
||||
updatePanelContents(xhr.responseText);
|
||||
setTimeout(updateSearchIndexerStatus,5000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function updatePanelContents(contents) {
|
||||
document.getElementById("searchIndexerStatus").innerHTML = contents;
|
||||
}
|
||||
|
||||
$(document).ready(updateSearchIndexerStatus());
|
Loading…
Add table
Add a link
Reference in a new issue