X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fon-line%2Fjavascript%2Fcontrol.js;h=ca62cff5728d5f06fec4bf726171ea676399dd01;hb=3c7ca719c304eb7de7d8d4e9a90ebe0db8d8ecab;hp=633ddbef40de1de58d981cd481b37dde2dc748b1;hpb=7205aee7f92f2a3a41c6e1bc9bd81ec6d6104ee3;p=helm.git diff --git a/helm/on-line/javascript/control.js b/helm/on-line/javascript/control.js index 633ddbef4..ca62cff57 100644 --- a/helm/on-line/javascript/control.js +++ b/helm/on-line/javascript/control.js @@ -22,11 +22,12 @@ function updateOutput(output,format) var topurl = top.topurl; var processorURL = top.processorURL; var getterURL = top.getterURL; + var proofcheckerURL = top.proofcheckerURL; 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 + "&draw_graphURL=" + draw_graphURL + "&uri_set_queueURL=" + uri_set_queueURL + "&mode="; + var dest = "?theoryuri=" + theoryuri + "&cicuri=" + cicuri + "&topurl=" + topurl + "&processorURL=" + processorURL + "&getterURL=" + getterURL + "&proofcheckerURL=" + proofcheckerURL + "&draw_graphURL=" + draw_graphURL + "&uri_set_queueURL=" + uri_set_queueURL + "&mode="; if (new_mode != mode_list[0]) { updateMode(0, new_mode); @@ -94,6 +95,7 @@ function refreshReload() "&theoryuri=" + top.theoryuri + "&processorURL=" + top.processorURL + "&getterURL=" + top.getterURL + + "&proofcheckerURL=" + top.proofcheckerURL + "&draw_graphURL=" + top.draw_graphURL + "&uri_set_queueURL=" + top.uri_set_queueURL + "&UNICODEvsSYMBOL=" + top.UNICODEvsSYMBOL; @@ -149,6 +151,7 @@ function makeURL(type,uri,cicflags,typesflags) var mode = top.mode; var processorURL = top.processorURL; var getterURL = top.getterURL; + var proofcheckerURL = top.proofcheckerURL; var draw_graphURL = top.draw_graphURL; var uri_set_queueURL = top.uri_set_queueURL; var UNICODEvsSYMBOL = top.UNICODEvsSYMBOL; @@ -179,12 +182,14 @@ function makeURL(type,uri,cicflags,typesflags) keys = getCICHTMLKeys() + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.proofcheckerURL=" + escape(proofcheckerURL) + "¶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" + "&prop.media-type=text/html" + + "&prop.method=html" + "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ "¶m.encoding=iso-8859-1" + "¶m.media-type=text/html" + @@ -194,6 +199,7 @@ function makeURL(type,uri,cicflags,typesflags) keys = getTheoryKeys()+ "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.proofcheckerURL=" + escape(proofcheckerURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) + @@ -209,20 +215,25 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.thinterfaceURL=" + escape(thinterfaceURL); } else if (format == "mml_cont" && type == "cic") { keys = escape("d_c,C1")+ + "¶m.processorURL=" + escape(processorURL) + + "¶m.getterURL=" + escape(getterURL) + "&prop.doctype-public="+ - "&prop.encoding=" + + //"&prop.encoding=" + "&prop.media-type=text/xml" + "¶m.doctype-public=" + "¶m.encoding=" + "¶m.media-type=text/xml"; } else if (format == "mml_cont" && type == "theory") { keys = escape("T1,L,E")+ + "¶m.processorURL=" + escape(processorURL) + + "¶m.getterURL=" + escape(getterURL) + "¶m.keys=" + escape("d_c,C1") + "¶m.thkeys=T1,L,E" + "¶m.embedkeys=" + escape("d_c,TC1") + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.proofcheckerURL=" + escape(proofcheckerURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.doctype-public=" + @@ -236,10 +247,11 @@ function makeURL(type,uri,cicflags,typesflags) keys = getCICMathMLKeys()+ "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.proofcheckerURL=" + escape(proofcheckerURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "&prop.doctype-public="+ - "&prop.encoding=" + + //"&prop.encoding=" + "&prop.media-type=text/xml" + "¶m.doctype-public=" + "¶m.encoding=" + @@ -250,9 +262,10 @@ function makeURL(type,uri,cicflags,typesflags) keys = getTheoryKeys()+ "¶m.keys=" + getCICMathMLKeys() + "¶m.thkeys=" + getTheoryKeys() + - "¶m.embedkeys=" + escape(d_c,TC1,G,C2,L) + + "¶m.embedkeys=" + escape("d_c,TC1,G,C2,L") + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + + "¶m.proofcheckerURL=" + escape(proofcheckerURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + "¶m.doctype-public=" + @@ -264,11 +277,11 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.thinterfaceURL=" + escape(thinterfaceURL); } - var naturalLanguage = typesflags; + var naturalLanguage = typesflags.toLowerCase(); if (typesflags != "NO" || type == "theory") { naturalLanguage = mode_list[3]; } - var annotations = cicflags; + var annotations = cicflags.toLowerCase(); if (cicflags != "NO" || type == "theory") { annotations = mode_list[4]; }