From fb158d51c621e55962a6139d03cd1678cfb2e8f1 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Mon, 19 Mar 2001 15:38:30 +0000 Subject: [PATCH] Now uses the new stylesheets waterfall --- helm/on-line/javascript/control.js | 35 ++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/helm/on-line/javascript/control.js b/helm/on-line/javascript/control.js index 24ca2eed9..8debc89f8 100644 --- a/helm/on-line/javascript/control.js +++ b/helm/on-line/javascript/control.js @@ -110,21 +110,42 @@ function makeURL(type,uri,cicflags,typesflags) "&format=" + (format == "zcic" ? "gz" : "normal"); } else { if (format == "html" && type == "cic") { - keys = "C1,HC2¶m.processorURL=" + escape(processorURL) + + keys = "C1,HC2,L¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + - "¶m.keys=" + escape("C1,HC2"); + "&prop.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ + "&prop.encoding=iso-8859-1" + + "&prop.media-type=text/html" + + "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ + "¶m.encoding=iso-8859-1" + + "¶m.media-type=text/html" + + "¶m.keys=" + escape("C1,HC2,L"); } else if (format == "html" && type == "theory") { - keys = "T1,T2,E¶m.processorURL=" + escape(processorURL) + + keys = "T1,T2,L,E¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + - "¶m.keys=" + escape("C1,HC2"); + "¶m.thkeys=" + escape("TC1,HC2,L") + + "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ + "¶m.encoding=iso-8859-1" + + "¶m.media-type=text/html" + + "¶m.keys=" + escape("C1,HC2,L"); } else if (format == "mml_cont" && type == "cic") { keys = "C1"; } else if (format == "mml_cont" && type == "theory") { - keys = "T1,E¶m.keys=C1"; + keys = "T1,E¶m.keys=C1¶m.thkeys=TC1"; } else if (format == "mml_pres" && type == "cic") { - keys = "C1,C2"; + keys = "C1,C2,L¶m.processorURL=" + escape(processorURL) + + "¶m.getterURL=" + escape(getterURL) + + "&prop.doctype-public="+ + "&prop.encoding=" + + "&prop.media-type=text/xml" + + "¶m.doctype-public=" + + "¶m.encoding=" + + "¶m.media-type=text/xml" + + "¶m.keys=" + escape("C1,C2,L"); } else if (format == "mml_pres" && type == "theory") { - keys = "T1,T2,E¶m.keys=C1,C2"; + keys = "T1,T2,L,E¶m.keys=C1,C2¶m.thkeys=TC1,C2,L" + + "¶m.doctype-public=" + + "¶m.encoding=" + + "¶m.media-type=text/xml"; } var naturalLanguage = typesflags; -- 2.39.2