]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/html/cic/control.html
ocaml 3.09 transition
[helm.git] / helm / on-line / html / cic / control.html
index dba30d5aa869ee570e215360ddc03c6157408c68..8e6aeaf1f7614b3f6b9f23aa490c642f7022e413 100644 (file)
-<html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
+"http://www.w3.org/TR/REC-html40/loose.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:subst="http://www.cs.unibo.it/helm/subst">
 
 <head>
-<title>???</title>
 
 <style type="text/css">
 #normal { background-color: #e6e6fa; font-family: sans-serif }
 td.head { font-weight: bold; background-color: #e6e6fa; color: brown }
 td.back { background-color: #e6e6fa; color: brown }
 #indent { margin-left: 1cm; margin-right: 1cm }
-#centered { text-align: center }
+ul.control { padding-left: 1em; list-style: none; }
+ul.control2 { font-size: small; padding-left: 2em; }
+div.center { text-align: center }
+h2.uri { margin-top: 0ex; margin-bottom: 0ex }
 </style>
 
-<script language="JavaScript" src="../../javascript/defaults.js"></script>
-<script language="JavaScript" src="../../javascript/utils.js"></script>
-<script language="JavaScript" src="../../javascript/control.js"></script>
-
+<script>
+ var annotations="<subst:annotations/>";
+ var CICURI="<subst:CICURI/>";
+ var cleanCICURI="<subst:cleanCICURI/>";
+ var CICURL = "<subst:CICURL/>";
+ var DCRDFURL = "<subst:DCRDFURL/>";
+ var DirectRDFURL = "<subst:DirectRDFURL/>";
+ var getterURL = "<subst:getterURL/>";
+ var HTMLURL = "<subst:HTMLURL/>";
+ var ProofTreeURL = "<subst:makeProofTreeURL/>";
+ var InverseRDFURL = "<subst:InverseRDFURL/>";
+ var MathMLContentURL = "<subst:MathMLContentURL/>";
+ var MathMLPresentationURL = "<subst:MathMLPresentationURL/>";
+ var interfaceURL = "<subst:interfaceURL/>";
+ var mkDirDepURL = "<subst:makeDirectDependencyURL/>";
+ var mkInvDepURL = "<subst:makeInverseDirectDependencyURL/>";
+ var mkInvRecDepURL = "<subst:makeInverseRecDependencyURL/>";
+ var mkRecDepURL = "<subst:makeRecDependencyURL/>";
+ var processorURL = "<subst:processorURL/>";
+ var profile = "<subst:profile/>";
+ var proofcheckerURL = "<subst:proofcheckerURL/>";
+ var url = "<subst:url/>";
+</script>
 </head>
 
 <body id="normal">
- <h1>Object: 
-  &quot;<script>document.write(extractParam(unescape(getParam('url')),'param.CICURI'))</script>&quot;
- &nbsp;&nbsp;&nbsp;<font size="+1">[Annotations are
- <script>if ((extractParam(unescape(getParam('url')),'param.annotations')) == 'no') document.write('off'); else document.write('on')</script>
- ]</font>
- </h1>
- <table>
-  <tr>
-   <td>
+ <div class="center">
+ <small>
+ User:
+   <uwobo:profileCtrlOptionList xmlns:uwobo="http://helm.cs.unibo.it/uwobo"
+    type="cic"/>
+ <br />
+ [<a href="http://helm.cs.unibo.it" target="_top">HELM home</a>]
+ <script>
+   document.write('[<a target="_top" href="' + processorURL +
+     'apply?keys=SPK&amp;param.processorURL=' + escape(processorURL) +
+     '&amp;param.profile=' + escape(profile) +
+     '&amp;xmluri=' + interfaceURL + 'html/configuration.html' +
+     '">configuration</a>]');
+ </script>
+ </small>
+ </div>
+ <hr />
+ <div class="center">
+   <script>
+     document.write('&lt;a target="result" style="color:black; text-decoration:none" href="' + url + '">');
+     document.write('<img style="border-style:none" src="' + interfaceURL + '/icons/object.png" />');
+   </script>
+  <h2 class="uri"><subst:base_CICURI/></h2>
+  <script>document.write('&lt;/a>');</script>
+ </div>
+ <hr />
+<!--
+  [Annotations are <script>if (annotations) == 'no') document.write('off'); else document.write('on')</script>]
+-->
+<ul class="control">
+<!--
+  <li>
     <script>
-     var url = unescape(getParam('url'));
-     url = setParam(url,"keys",getCICMathMLKeys());
-     url = setParam(url,"prop.doctype-public","");
-     url = setParam(url,"prop.encoding","");
-     url = setParam(url,"prop.media-type","application/x-helm-annotation-helper");
-     url = url + "&param.explodeall=true";
-     document.write(
-      '<a target="result" href="' + url + '">Annotate it</a>'
-     )
+     var url = "<subst:url/>";
+     document.write('<a href="' + url + '" target="_blank">Open object in new window</a>');
+     </script>
+  </li>
+-->
+  <li>
+    View
+    <script>
+     document.write('[ <a href="' + HTMLURL + '&amp;param.toplevel=true" target="result"><small>HTML</small></a>');
+     document.write(' | ');
+     document.write('<a href="' + MathMLPresentationURL + '&amp;param.toplevel=true" target="result"><small>MathML</small></a> ]');
+     </script>
+  </li>
+  <li>
+    <script>
+      document.write('<a href="' + ProofTreeURL + '&amp;param.toplevel=true" target="result">View proof tree</a>');
     </script>
-   </td>
-   <td>
-    (Before following the link, you must install the HELM Annotation Helper)
-   </td>
-  </tr>
-  <tr>
-   <td>
+  </li>
+  <li>
     <script>
-     var url = unescape(getParam('url'));
-     var getterURL = extractParam(url,'param.getterURL');
-     var CICURI = extractParam(url,'param.CICURI');
-     url = setParam(url,"keys","MC%2CRT");
-     url = setParam(url,"xmluri", getterURL + "getxml%3Furi%3D" + CICURI);
-     url = setParam(url,"prop.media-type","text/html");
-     url = setParam(url,"prop.encoding","iso-8859-1");
+     var url = processorURL + "apply?keys=MC%2CRT%2CL&amp;xmluri=" +
+         getterURL + "getxml%3Furi%3D" + cleanCICURI +
+         "&amp;prop.media-type=text/html&amp;prop.encoding=iso-8859-1" +
+         "&amp;param.CICURI=" + cleanCICURI + "&amp;param.profile=" + profile +
+         "&amp;profile=" + profile;
      document.write(
-      '<a target="metadata" href="' + url + '">View its metadata and dependencies</a>'
+      '<a target="result" href="' + url + '">View metadata</a>'
      );
     </script>
-   </td>
-   <td>NEW!!!</td>
-  </tr>
-  <tr>
-   <td>
+  </li>
+  <li>
     <script>
-     var url = unescape(getParam('url'));
-     var CICURI = extractParam(url,'param.CICURI');
-     url = "http://phd.cs.unibo.it:8085/proofCheck?uri=" + CICURI;
+     url = proofcheckerURL + "proofCheck?uri=" + cleanCICURI;
      document.write(
-      '<a target="proofChecker" href="' + url + '">Proof-check it</a>'
+      '<a target="result" href="' + url + '">Proof check</a>'
      );
     </script>
-   </td>
-   <td>
-    (Not ported to V7, yet. Experimental. Coming soon.)
-   </td>
-  </tr>
- </table>
+  </li>
+  <li>
+    Analyse dependencies
+    <ul class="control2">
+      <li>
+        <script>
+         document.write('<a target="result" href="' + mkDirDepURL + '">direct</a>');
+       </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a target="result" href="' + mkInvDepURL + '">inverse</a>');
+       </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a target="result" href="' + mkRecDepURL + '">recursive direct</a> (graph)');
+       </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a target="result" href="' + mkInvRecDepURL + '">recursive inverse</a> (graph)');
+       </script>
+      </li>
+    </ul>
+  </li>
+</ul>
+<hr />
+<ul class="control">
+  <li> Download
+    <ul class="control2">
+      <li>
+        <script>
+         document.write('<a href="' + CICURL + '" target="result">CIC XML</a>');
+        </script>
+          </li>
+      <li>
+        <script>
+         document.write('<a href="' + MathMLContentURL + '" target="result">MathML Content</a>');
+        </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a href="' + MathMLPresentationURL + '" target="result">MathML Presentation</a>');
+        </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a href="' + HTMLURL + '" target="result">HTML</a>');
+        </script>
+      </li>
+    </ul>
+  </li>
+  <li>
+    Download metadata
+    <ul class="control2">
+      <li>
+        <script>
+         document.write('<a target="result" href="' + DirectRDFURL + '">direct dependencies</a>');
+       </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a target="result" href="' + InverseRDFURL + '">inverse dependencies</a>');
+       </script>
+      </li>
+      <li>
+        <script>
+         document.write('<a target="result" href="' + DCRDFURL + '">Dublin Core</a>');
+       </script>
+      </li>
+    </ul>
+  </li>
+</ul>
 </body>
 </html>