]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/html/cic/control.html
Major interface improvements.
[helm.git] / helm / on-line / html / cic / control.html
index be00b755ccb35aa8b24027e246fdfb240a6cad35..1868818b705aff80a5849388885822c60d260725 100644 (file)
@@ -9,23 +9,45 @@
 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 }
-h2     { text-align: center }
-li     { padding-bottom: 1ex }
+ul.control { padding-left: 1em; list-style: none; }
+ul.control2 { font-size: small; padding-left: 2em; }
+div.center { text-align: center }
 </style>
 
 <script>
- var CICURI="<subst:CICURI/>";
  var annotations="<subst:annotations/>";
+ var CICURI="<subst:CICURI/>";
+ var CICURL = "<subst:CICURL/>";
+ var DCRDFURL = "<subst:DCRDFURL/>";
+ var DirectRDFURL = "<subst:DirectRDFURL/>";
+ var getterURL = "<subst:getterURL/>";
+ var HTMLURL = "<subst:HTMLURL/>";
+ var InverseRDFURL = "<subst:InverseRDFURL/>";
+ var MathMLContentURL = "<subst:MathMLContentURL/>";
+ var MathMLPresentationURL = "<subst:MathMLPresentationURL/>";
+ 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">
+ <div class="center">
+  <script>document.write('&lt;a target="result" style="text-decoration:none" href="' + url + '">');</script>
+  <img style="border-style:none" src="http://helm.cs.unibo.it/helm/icons/object.png" />
   <h2><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>
+<ul class="control">
 <!--
   <li>
     <script>
@@ -35,37 +57,110 @@ li { padding-bottom: 1ex }
   </li>
 -->
   <li>
+    View [
     <script>
-     var url = "<subst:url/>";
-     document.write('<a href="' + url + '&amp;param.toplevel=true" target="result">Object</a>');
+     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>
-     var processorURL = "<subst:processorURL/>";
-     var getterURL = "<subst:getterURL/>";
-     var CICURI = "<subst:CICURI/>";
-     var profile = "<subst:profile/>";
      var url = processorURL + "apply?keys=MC%2CRT&amp;xmluri=" +
          getterURL + "getxml%3Furi%3D" + CICURI +
          "&amp;prop.media-type=text/html&amp;prop.encoding=iso-8859-1" +
          "&amp;param.CICURI=" + CICURI + "&amp;param.profile=" + profile +
          "&amp;profile=" + profile;
      document.write(
-      '<a target="result" href="' + url + '">Metadata and dependencies</a>'
+      '<a target="result" href="' + url + '">View metadata</a>'
      );
     </script>
   </li>
   <li>
     <script>
-     var proofcheckerURL = "<subst:proofcheckerURL/>";
-     var cicURI = "<subst:cicURI/>";
      url = proofcheckerURL + "proofCheck?uri=" + CICURI;
      document.write(
-      '<a target="result" href="' + url + '">Proof-check it</a>'
+      '<a target="result" href="' + url + '">Proof check</a>'
      );
     </script>
   </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>
+<hr />
+<div class="center">
+  <a href="http://helm.cs.unibo.it">HELM home</a>
+</div>
 </body>
 </html>