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)) + "/cic/index.html";
+ var interfaceURL = chopSlash(chopSlash(top.topurl)) +
+ ((type == "cic") ? "/cic/index.html" : "/theory/index.html");
var output = mode_list[0];
var format;
"&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")+
url = processorURL + "apply?xmluri=" + escape(getterURL + "getxml?uri=" + uri) + "&keys=" + keys + "¶m.CICURI=" + uri + "¶m.naturalLanguage=" + naturalLanguage + "¶m.annotations=" + annotations;
}
- return interfaceURL + "?url=" + escape(url);
+ if (output == "raw")
+ return url
+ else
+ return interfaceURL + "?url=" + escape(url);
}