Relative URL
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/nlphub@165861 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4f161ecff4
commit
9d0599a1a7
|
@ -15,7 +15,7 @@ var checkedAnnotation = "";
|
||||||
var algIndexedArray = [];
|
var algIndexedArray = [];
|
||||||
var computedLanguage = "";
|
var computedLanguage = "";
|
||||||
var dataMiner = "";
|
var dataMiner = "";
|
||||||
var appRoot = "/nlphub";
|
var appRoot = ".";
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------------
|
||||||
// Starting point: get the csv file with algorithm parameters and set the page
|
// Starting point: get the csv file with algorithm parameters and set the page
|
||||||
|
@ -39,6 +39,7 @@ checkInputLink = function() {
|
||||||
freeText = data;
|
freeText = data;
|
||||||
var uploaderUrl = appRoot + "/nlphub-uploader-servlet?getlang=on&freetext="
|
var uploaderUrl = appRoot + "/nlphub-uploader-servlet?getlang=on&freetext="
|
||||||
+ encodeURIComponent(freeText) + "&dataminer=" + encodeURIComponent(dataMiner);
|
+ encodeURIComponent(freeText) + "&dataminer=" + encodeURIComponent(dataMiner);
|
||||||
|
|
||||||
if(gCubeToken.length > 0)
|
if(gCubeToken.length > 0)
|
||||||
uploaderUrl += "&gcube-token=" + gCubeToken;
|
uploaderUrl += "&gcube-token=" + gCubeToken;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -248,6 +249,7 @@ setEventListeners = function() {
|
||||||
freeText = $("#input-textarea").val();
|
freeText = $("#input-textarea").val();
|
||||||
var uploaderUrl = appRoot + "/nlphub-uploader-servlet?freetext="
|
var uploaderUrl = appRoot + "/nlphub-uploader-servlet?freetext="
|
||||||
+ encodeURIComponent(freeText) + "&dataminer=" + encodeURIComponent(dataMiner);
|
+ encodeURIComponent(freeText) + "&dataminer=" + encodeURIComponent(dataMiner);
|
||||||
|
|
||||||
if(gCubeToken.length > 0)
|
if(gCubeToken.length > 0)
|
||||||
uploaderUrl += "&gcube-token=" + gCubeToken;
|
uploaderUrl += "&gcube-token=" + gCubeToken;
|
||||||
|
|
||||||
|
@ -628,7 +630,6 @@ getOutputJson = function(message) {
|
||||||
parameters += "&plink=" + encodeURI(publicLink);
|
parameters += "&plink=" + encodeURI(publicLink);
|
||||||
parameters += "&lang=" + $("#language-select").val();
|
parameters += "&lang=" + $("#language-select").val();
|
||||||
parameters += "&tobemap=" + encodeURI(tobemap);
|
parameters += "&tobemap=" + encodeURI(tobemap);
|
||||||
//console.log(parameters);
|
|
||||||
|
|
||||||
var mapperUrl = appRoot + "/nlphub-mapper-servlet?" + parameters;
|
var mapperUrl = appRoot + "/nlphub-mapper-servlet?" + parameters;
|
||||||
if(gCubeToken.length > 0)
|
if(gCubeToken.length > 0)
|
||||||
|
@ -640,7 +641,6 @@ getOutputJson = function(message) {
|
||||||
async : true,
|
async : true,
|
||||||
success : function(data, stato) {
|
success : function(data, stato) {
|
||||||
hideProgress();
|
hideProgress();
|
||||||
//console.log(data);
|
|
||||||
if ((typeof (data.response) != "undefined")
|
if ((typeof (data.response) != "undefined")
|
||||||
&& (data.response.trim().toUpperCase() == "ERROR")) {
|
&& (data.response.trim().toUpperCase() == "ERROR")) {
|
||||||
alert("ERROR\n" + data.message);
|
alert("ERROR\n" + data.message);
|
||||||
|
|
Loading…
Reference in New Issue