return true;
}
+function getCICMathMLKeys()
+{
+ //Important note: do not modify this function without modifying makeURL
+ return escape("C1,C2,L");
+}
+
function makeURL(type,uri,cicflags,typesflags)
{
var mode = top.mode;
var keys = "";
var url = "";
+ var interfaceURL = chopSlash(chopSlash(top.topurl)) +
+ ((type == "cic") ? "/cic/index.html" : "/theory/index.html");
+
var output = mode_list[0];
var format;
if (output == "raw") format = mode_list[1];
"&patch_dtd=" + mode_list[6];
} else {
if (format == "html" && type == "cic") {
+ //Important note: do not modify this function without modifying
+ //getCICMathMLKeys
keys = escape("C1,HC2,L")+"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
"&prop.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+
"¶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");
+ "¶m.keys=" + escape("C1,HC2,L") +
+ "¶m.interfaceURL=" + escape(interfaceURL);
} else if (format == "html" && type == "theory") {
keys = escape("T1,T2,L,E")+"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
"¶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");
+ "¶m.keys=" + escape("C1,HC2,L") +
+ "¶m.interfaceURL=" + escape(interfaceURL);
} else if (format == "mml_cont" && type == "cic") {
keys = "C1";
} else if (format == "mml_cont" && type == "theory") {
"¶m.doctype-public=" +
"¶m.encoding=" +
"¶m.media-type=text/xml" +
- "¶m.keys=" + escape("C1,C2,L");
+ "¶m.keys=" + escape("C1,C2,L") +
+ "¶m.interfaceURL=" + escape(interfaceURL);
} else if (format == "mml_pres" && type == "theory") {
- keys = escape("T1,T2,L,E")+"¶m.keys=C1,C2¶m.thkeys=TC1,C2,L" +
+ keys = escape("T1,T2,L,E")+"¶m.keys=C1,C2,L¶m.thkeys=TC1,C2,L" +
"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
"¶m.doctype-public=" +
"¶m.encoding=" +
- "¶m.media-type=text/xml";
+ "¶m.media-type=text/xml" +
+ "¶m.interfaceURL=" + escape(interfaceURL);
}
var naturalLanguage = typesflags;
url = processorURL + "apply?xmluri=" + escape(getterURL + "getxml?uri=" + uri) + "&keys=" + keys + "¶m.CICURI=" + uri + "¶m.naturalLanguage=" + naturalLanguage + "¶m.annotations=" + annotations;
}
- return url;
+ if (output == "raw")
+ return url
+ else
+ return interfaceURL + "?url=" + escape(url);
}