X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fon-line%2Fjavascript%2Fcontrol.js;h=e34551a7fb7ba7e2465d79f08d5ed37700a382a0;hb=2f7227d339116196ccbe52b86923051441e2647d;hp=66412aa9c6af06441b07913a71567e36ed21d553;hpb=97829180b4bc5a72291eeb8156b15b3922f07048;p=helm.git diff --git a/helm/on-line/javascript/control.js b/helm/on-line/javascript/control.js index 66412aa9c..e34551a7f 100644 --- a/helm/on-line/javascript/control.js +++ b/helm/on-line/javascript/control.js @@ -130,7 +130,11 @@ function makeURL(type,uri,cicflags,typesflags) if (typesflags != "NO" || type == "theory") { naturalLanguage = mode_list[3]; } - url = processorURL + "apply?xmluri=" + escape(getterURL + "get?uri=" + uri) + "&keys=" + keys + "¶m.CICURI=" + uri + "¶m.naturalLanguage=" + naturalLanguage; + var annotations = cicflags; + if (cicflags != "NO" || type == "theory") { + annotations = mode_list[4]; + } + url = processorURL + "apply?xmluri=" + escape(getterURL + "get?uri=" + uri) + "&keys=" + keys + "¶m.CICURI=" + uri + "¶m.naturalLanguage=" + naturalLanguage + "¶m.annotations=" + annotations; } return url;