]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/javascript/control.js
first moogle template checkin
[helm.git] / helm / on-line / javascript / control.js
index f473559240df7b452a366e4747bdb1237355a70f..79ed47fd7ef1c626592192a7c9852bc3c2175e1c 100644 (file)
@@ -146,6 +146,11 @@ function getCICHTMLKeys()
   return escape("d_c,C1,HC2,L");
 }
 
+function getCICProofTreeXHTMLMathMLKeys()
+{
+  return escape("HAT,G,HAO,L");
+}
+
 function makeURL(type,uri,cicflags,typesflags)
 {
   var mode = top.mode;
@@ -178,7 +183,27 @@ function makeURL(type,uri,cicflags,typesflags)
     url = getterURL + "getxml?uri=" + rdfprefix + uri + ext + "&format=" +
           mode_list[5] + "&patch_dtd=" + mode_list[6];
   } else {
-    if (format == "html" && type == "cic") {
+    var uri_len = uri.length;
+    if (format == "html" && type == "cic" && uri.substring(uri.length - 10, uri.length) == "proof_tree") {
+      keys = getCICProofTreeXHTMLMathMLKeys() +
+       "&param.processorURL=" + escape(processorURL) +
+       "&param.getterURL=" + escape(getterURL) +
+       "&param.proofcheckerURL=" + escape(proofcheckerURL) +
+       "&param.draw_graphURL=" + escape(draw_graphURL) +
+       "&param.uri_set_queueURL=" + escape(uri_set_queueURL) +
+       "&param.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) +
+       "&prop.doctype-public="+escape("-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN")+
+       "&prop.doctype-system="+escape("http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd")+
+       "&prop.encoding=iso-8859-1" +
+       "&prop.media-type=text/xml" +
+       "&prop.method=xml" +
+       "&param.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+
+       "&param.encoding=iso-8859-1" +
+       "&param.media-type=text/html" +
+       "&param.keys=" + getCICHTMLKeys() +
+       "&param.interfaceURL=" + escape(interfaceURL) +
+       "&param.framewidth=150";
+    } else if (format == "html" && type == "cic") {
       keys = getCICHTMLKeys() +
        "&param.processorURL=" + escape(processorURL) +
        "&param.getterURL=" + escape(getterURL) +
@@ -215,6 +240,8 @@ function makeURL(type,uri,cicflags,typesflags)
        "&param.thinterfaceURL=" + escape(thinterfaceURL);
     } else if (format == "mml_cont" && type == "cic") {
       keys = escape("d_c,C1")+
+       "&param.processorURL=" + escape(processorURL) +
+       "&param.getterURL=" + escape(getterURL) +
        "&prop.doctype-public="+
        //"&prop.encoding=" +
        "&prop.media-type=text/xml" +
@@ -223,6 +250,8 @@ function makeURL(type,uri,cicflags,typesflags)
        "&param.media-type=text/xml";
     } else if (format == "mml_cont" && type == "theory") {
       keys = escape("T1,L,E")+
+       "&param.processorURL=" + escape(processorURL) +
+       "&param.getterURL=" + escape(getterURL) +
        "&param.keys=" + escape("d_c,C1") +
        "&param.thkeys=T1,L,E" +
        "&param.embedkeys=" + escape("d_c,TC1") +