X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fon-line%2Fjavascript%2Fcontrol.js;h=01ee82f2a7782727664ef76f2cc462e69c681f41;hb=120d139d6f8743ab2ab8a80d0b52247fe917b50b;hp=dca05a8b2e71b9ec44f142be2a54ab0bf0bbe1e2;hpb=e056db635d42bf61eeccbba580c6a0e3a78c3f01;p=helm.git diff --git a/helm/on-line/javascript/control.js b/helm/on-line/javascript/control.js index dca05a8b2..01ee82f2a 100644 --- a/helm/on-line/javascript/control.js +++ b/helm/on-line/javascript/control.js @@ -22,9 +22,11 @@ function updateOutput(output,format) var topurl = top.topurl; var processorURL = top.processorURL; var getterURL = top.getterURL; + var draw_graphURL = top.draw_graphURL; + var uri_set_queueURL = top.uri_set_queueURL; var mode_list = mode.split(","); var new_mode = output.options[output.selectedIndex].value; - var dest = "?theoryuri=" + theoryuri + "&cicuri=" + cicuri + "&topurl=" + topurl + "&processorURL=" + processorURL + "&getterURL=" + getterURL + "&mode="; + var dest = "?theoryuri=" + theoryuri + "&cicuri=" + cicuri + "&topurl=" + topurl + "&processorURL=" + processorURL + "&getterURL=" + getterURL + "&draw_graphURL=" + draw_graphURL + "&uri_set_queueURL=" + uri_set_queueURL + "&mode="; if (new_mode != mode_list[0]) { updateMode(0, new_mode); @@ -92,6 +94,8 @@ function refreshReload() "&theoryuri=" + top.theoryuri + "&processorURL=" + top.processorURL + "&getterURL=" + top.getterURL + + "&draw_graphURL=" + top.draw_graphURL + + "&uri_set_queueURL=" + top.uri_set_queueURL + "&UNICODEvsSYMBOL=" + top.UNICODEvsSYMBOL; var href = @@ -132,6 +136,8 @@ function makeURL(type,uri,cicflags,typesflags) var mode = top.mode; var processorURL = top.processorURL; var getterURL = top.getterURL; + var draw_graphURL = top.draw_graphURL; + var uri_set_queueURL = top.uri_set_queueURL; var UNICODEvsSYMBOL = top.UNICODEvsSYMBOL; var mode_list = mode.split(","); @@ -148,16 +154,22 @@ function makeURL(type,uri,cicflags,typesflags) if (output == "raw") { var ext = ""; + var rdfprefix = ""; if (format == "types") ext = ".types" - else if (format == "ann") ext = ".ann"; - url = getterURL + "getxml?uri=" + uri + ext + "&format=" + mode_list[5] + - "&patch_dtd=" + mode_list[6]; + else if (format == "ann") ext = ".ann" + else if (format == "fwd") rdfprefix = "helm:rdf:www.cs.unibo.it/helm/rdf/forward//" + else if (format == "bwd") rdfprefix = "helm:rdf:www.cs.unibo.it/helm/rdf/backward//"; + url = getterURL + "getxml?uri=" + rdfprefix + uri + ext + "&format=" + + mode_list[5] + "&patch_dtd=" + mode_list[6]; } else { if (format == "html" && type == "cic") { //Important note: do not modify this function without modifying //getCICMathMLKeys - keys = escape("d_c,C1,HC2,L")+"¶m.processorURL=" + escape(processorURL) + + keys = escape("d_c,C1,HC2,L") + + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.draw_graphURL=" + escape(draw_graphURL) + + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) + "&prop.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ "&prop.encoding=iso-8859-1" + @@ -171,6 +183,8 @@ function makeURL(type,uri,cicflags,typesflags) keys = escape("T1,T2,L,E")+ "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.draw_graphURL=" + escape(draw_graphURL) + + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) + "¶m.keys=" + escape("d_c,C1,HC2,L") + "¶m.thkeys=" + escape("T1,T2,L,E") + @@ -192,6 +206,8 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.draw_graphURL=" + escape(draw_graphURL) + + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.doctype-public=" + "¶m.encoding=" + "¶m.thencoding=iso-8859-1" + @@ -203,6 +219,8 @@ function makeURL(type,uri,cicflags,typesflags) keys = escape("d_c,C1,G,C2,L")+ "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.draw_graphURL=" + escape(draw_graphURL) + + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "&prop.doctype-public="+ "&prop.encoding=" + "&prop.media-type=text/xml" + @@ -218,6 +236,8 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.embedkeys=d_c,TC1,G,C2,L" + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.draw_graphURL=" + escape(draw_graphURL) + + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.doctype-public=" + "¶m.encoding=" + "¶m.thencoding=iso-8859-1" +