]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: following a link to an object inside a theory opened the
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 4 May 2001 09:15:55 +0000 (09:15 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 4 May 2001 09:15:55 +0000 (09:15 +0000)
 object with the header of the theories.

helm/on-line/javascript/control.js

index fbc08f3f9b692e38f3fd33c53992cb3fa308b93d..4389be7d884b3180e418e3ab9cbceddb534df931 100644 (file)
@@ -119,8 +119,8 @@ function makeURL(type,uri,cicflags,typesflags)
   var keys = "";
   var url = "";
 
-  var interfaceURL = chopSlash(chopSlash(top.topurl)) +
-   ((type == "cic") ? "/cic/index.html" : "/theory/index.html");
+  var interfaceURL = chopSlash(chopSlash(top.topurl)) + "/cic/index.html";
+  var thinterfaceURL = chopSlash(chopSlash(top.topurl)) + "/theory/index.html";
 
   var output = mode_list[0];
   var format;
@@ -155,7 +155,8 @@ function makeURL(type,uri,cicflags,typesflags)
        "&param.encoding=iso-8859-1" +
        "&param.media-type=text/html" +
        "&param.keys=" + escape("C1,HC2,L") +
-       "&param.interfaceURL=" + escape(interfaceURL);
+       "&param.interfaceURL=" + escape(interfaceURL) +
+       "&param.thinterfaceURL=" + escape(thinterfaceURL);
     } else if (format == "mml_cont" && type == "cic") {
       keys = "C1";
     } else if (format == "mml_cont" && type == "theory") {
@@ -178,7 +179,8 @@ function makeURL(type,uri,cicflags,typesflags)
        "&param.doctype-public=" +
        "&param.encoding=" +
        "&param.media-type=text/xml" +
-       "&param.interfaceURL=" + escape(interfaceURL);
+       "&param.interfaceURL=" + escape(interfaceURL) +
+       "&param.thinterfaceURL=" + escape(thinterfaceURL);
     }
 
     var naturalLanguage = typesflags;
@@ -193,8 +195,10 @@ function makeURL(type,uri,cicflags,typesflags)
   }
 
   if (output == "raw")
-   return url
-  else
+   return url;
+  else if (type == "cic")
    return interfaceURL + "?url=" + escape(url);
+  else if (type == "theory")
+   return thinterfaceURL + "?url=" + escape(url)
 }