]> matita.cs.unibo.it Git - helm.git/commitdiff
New profile param: searchengineURL
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 10 Jun 2004 13:45:08 +0000 (13:45 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 10 Jun 2004 13:45:08 +0000 (13:45 +0000)
helm/on-line/html/configuration.html
helm/on-line/javascript/prelude.js

index 6ca9cd14a18d2b943e0ce04f6dbacd117e97e7af..f183ed1183ae1fdc47a73c9c33f192351b37ea3b 100644 (file)
@@ -207,6 +207,34 @@ bottom of the page.
       </form>
     </td>
   </tr>
+  <tr>
+    <th colspan="2" align="left">Search Engine URL</th>
+  </tr>
+  <tr>
+    <td>
+      <form name="searchengineURL">
+        <script>
+         var defaultValue = '<uwobo:key name="searchengineURL"/>';
+         document.write('<input type="text" value="' + defaultValue + '" size="50"/>');
+       </script>
+      </form>
+    </td>
+    <td>
+      <form>
+        <select onChange="selectSearchEngineURL(this)">
+         <option value="">---</option>
+         <option value="localhost">localhost</option>
+         <option value="mowgli.cs.unibo.it">mowgli</option>
+         <option value="marcello.cs.unibo.it">marcello</option>
+       </select>
+      </form>
+    </td>
+    <td>
+      <form>
+        <input type="button" value="Check" onClick="window.open(getSearchEngineURL() + 'help')"/>
+      </form>
+    </td>
+  </tr>
   <tr>
     <th colspan="2" align="left">RDFly URL</th>
   </tr>
index 8c60c6c08f144bbdb4fa01603c5b12d6070d1497..d89ae566d333ae2b54a70c88f8adec07c2697ade 100644 (file)
@@ -18,6 +18,11 @@ function getProofCheckerURL()
   return document.proofcheckerURL.elements[0].value;
 }
 
+function getSearchEngineURL()
+{
+  return document.searchengineURL.elements[0].value;
+}
+
 function getDrawGraphURL()
 {
   return document.draw_graphURL.elements[0].value;
@@ -66,6 +71,7 @@ function getUpdateURL()
     '&param.uri_set_queueURL=' + escape(getURISetQueueURL()) +
     '&param.draw_graphURL=' + escape(getDrawGraphURL()) +
     '&param.proofcheckerURL=' + escape(getProofCheckerURL()) +
+    '&param.searchengineURL=' + escape(getSearchEngineURL()) +
     '&param.rdflyURL=' + escape(getRdflyURL()) +
     '&param.interfaceURL=' + escape(getInterfaceURL()) +
     '&param.naturalLanguage=' + escape(getNaturalLanguage()) +
@@ -100,6 +106,15 @@ function selectProofCheckerURL(ss)
   }
 }
 
+function selectSearchEngineURL(ss)
+{
+  if (ss.selectedIndex == 0) {
+    document.searchengineURL.elements[0].value = "";
+  } else {
+    document.searchengineURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58085/";
+  }
+}
+
 function selectDrawGraphURL(ss)
 {
   if (ss.selectedIndex == 0) {