vitro/webapp/web/js/search/searchIndex.js
Jim Blake 2ceab6e3df 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.
2015-01-07 16:18:41 -05:00

22 lines
574 B
JavaScript

/* $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());