1. Updated front-end for temporal graph to display helpful message when it takes mnore than 10 seconds to get the data, most likely due to a cached version not available for the requested entity.
This commit is contained in:
parent
15b07e56f0
commit
caa941049b
6 changed files with 165 additions and 54 deletions
|
@ -19,14 +19,18 @@ This is used in util.js to print grant temporal graph links for all sub-organiza
|
|||
*/
|
||||
var subOrganizationTemporalGraphURL = "${subOrganizationGrantTemporalGraphCommonURL}";
|
||||
|
||||
var temporalGraphDataURL = '${temporalGraphDataURL}';
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
setupLoadingScreen($("div#temporal-graph-response"));
|
||||
|
||||
getTemporalGraphData('${temporalGraphDataURL}',
|
||||
$("#body"),
|
||||
$("#error-container"),
|
||||
$("div#temporal-graph-response"));
|
||||
options = {
|
||||
responseContainer: $("div#temporal-graph-response"),
|
||||
bodyContainer: $("#body"),
|
||||
errorContainer: $("#error-container"),
|
||||
dataURL: temporalGraphDataURL
|
||||
};
|
||||
|
||||
renderTemporalGraphVisualization(options);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -19,14 +19,18 @@ This is used in util.js to print grant temporal graph links for all sub-organiza
|
|||
*/
|
||||
var subOrganizationTemporalGraphURL = "${subOrganizationPublicationTemporalGraphCommonURL}";
|
||||
|
||||
var temporalGraphDataURL = '${temporalGraphDataURL}';
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
setupLoadingScreen($("div#temporal-graph-response"));
|
||||
|
||||
getTemporalGraphData('${temporalGraphDataURL}',
|
||||
$("#body"),
|
||||
$("#error-container"),
|
||||
$("div#temporal-graph-response"));
|
||||
options = {
|
||||
responseContainer: $("div#temporal-graph-response"),
|
||||
bodyContainer: $("#body"),
|
||||
errorContainer: $("#error-container"),
|
||||
dataURL: temporalGraphDataURL
|
||||
};
|
||||
|
||||
renderTemporalGraphVisualization(options);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -74,9 +74,12 @@ var organizationLabel = '${organizationLabel}';
|
|||
var organizationVIVOProfileURL = "${organizationVivoProfileURL}";
|
||||
|
||||
var loadingImageLink = contextPath + "/images/visualization/ajax-loader-indicator.gif";
|
||||
var refreshPageImageLink = contextPath + "/images/visualization/refresh-green.png";
|
||||
|
||||
var entityCheckboxSelectorDOMClass = "${entityCheckboxSelectorDOMClass}";
|
||||
|
||||
var isDataRequestSentViaAJAX = false;
|
||||
|
||||
var temporalGraphProcessor;
|
||||
|
||||
/*
|
||||
|
@ -100,4 +103,4 @@ var COMPARISON_PARAMETERS_INFO = {
|
|||
|
||||
</script>
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/visualization/entitycomparison/gui-event-manager.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/visualization/entitycomparison/gui-event-manager.js"></script>')}
|
Loading…
Add table
Add a link
Reference in a new issue