X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fon-line%2Fjavascript%2Fcontrol.js;h=7dc83d7f24d6c76aa665c25c9ad4126a67d79886;hb=46b441cfa0f4a2c2076450a32452796db7ac8c7c;hp=01ee82f2a7782727664ef76f2cc462e69c681f41;hpb=91d0b53ce03e139409f7f210a4128f06d0359567;p=helm.git diff --git a/helm/on-line/javascript/control.js b/helm/on-line/javascript/control.js index 01ee82f2a..7dc83d7f2 100644 --- a/helm/on-line/javascript/control.js +++ b/helm/on-line/javascript/control.js @@ -114,7 +114,6 @@ function refreshReload() function refreshcicHeader(headerURL) { -// Qui e sotto da modificare per usare UWOBO!!! top.cicheader.location.search = "?keys=GP&xmluri=" + headerURL + "¶m.uri=" + top.cicuri; return true; } @@ -127,10 +126,24 @@ function refreshtheoryHeader(headerURL) function getCICMathMLKeys() { - //Important note: do not modify this function without modifying makeURL return escape("d_c,C1,G,C2,L"); } +function getTheoryKeys() +{ + return escape("T1,T2,L,E"); +} + +function getEmbedKeys() +{ + return escape("d_c,TC1,HC2,L"); +} + +function getCICHTMLKeys() +{ + return escape("d_c,C1,HC2,L"); +} + function makeURL(type,uri,cicflags,typesflags) { var mode = top.mode; @@ -163,9 +176,7 @@ function makeURL(type,uri,cicflags,typesflags) 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") + + keys = getCICHTMLKeys() + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) + @@ -177,18 +188,18 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ "¶m.encoding=iso-8859-1" + "¶m.media-type=text/html" + - "¶m.keys=" + escape("d_c,C1,HC2,L") + + "¶m.keys=" + getCICHTMLKeys() + "¶m.interfaceURL=" + escape(interfaceURL); } else if (format == "html" && type == "theory") { - keys = escape("T1,T2,L,E")+ + keys = getTheoryKeys()+ "¶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") + - "¶m.embedkeys=" + escape("d_c,TC1,HC2,L") + + "¶m.keys=" + getCICHTMLKeys() + + "¶m.thkeys=" + getTheoryKeys() + + "¶m.embedkeys=" + getEmbedKeys() + "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ "¶m.encoding=iso-8859-1" + "¶m.thencoding=iso-8859-1" + @@ -216,7 +227,7 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.interfaceURL=" + escape(interfaceURL) + "¶m.thinterfaceURL=" + escape(thinterfaceURL); } else if (format == "mml_pres" && type == "cic") { - keys = escape("d_c,C1,G,C2,L")+ + keys = getCICMathMLKeys()+ "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) + @@ -227,13 +238,13 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.doctype-public=" + "¶m.encoding=" + "¶m.media-type=text/xml" + - "¶m.keys=" + escape("d_c,C1,G,C2,L") + + "¶m.keys=" + getCICMathMLKeys() + "¶m.interfaceURL=" + escape(interfaceURL); } else if (format == "mml_pres" && type == "theory") { - keys = escape("T1,T2,L,E")+ - "¶m.keys=d_c,C1,G,C2,L" + - "¶m.thkeys=T1,T2,L,E" + - "¶m.embedkeys=d_c,TC1,G,C2,L" + + keys = getTheoryKeys()+ + "¶m.keys=" + getCICMathMLKeys() + + "¶m.thkeys=" + getTheoryKeys() + + "¶m.embedkeys=" + escape(d_c,TC1,G,C2,L) + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + "¶m.draw_graphURL=" + escape(draw_graphURL) +