]> matita.cs.unibo.it Git - helm.git/commitdiff
* New release of the client-side interface.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 18 Mar 2003 16:02:23 +0000 (16:02 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 18 Mar 2003 16:02:23 +0000 (16:02 +0000)
* Closes the following bug: if an ambiguous query (with more than one
  ambiguous term) was issued twice and all the aliases were cleaned
  between the two queries, disambiguation was not asked to the user
  for each ambiguous term but the first one.

helm/searchEngine/html/aliaslist.html
helm/searchEngine/html/boole.html
helm/searchEngine/html/editor.html
helm/searchEngine/html/expnamedsubst.html
helm/searchEngine/html/expr.html
helm/searchEngine/html/genid.html
helm/searchEngine/html/loc_obj.html
helm/searchEngine/html/set.html
helm/searchEngine/html/templateambigpdq3.html
helm/searchEngine/html/val.html

index 60c38cf72b7588a5d6bf06603fdd6aecafc519e1..ac87fa57f405a1c44e6a509ebcff69f9ec8b0c11 100644 (file)
@@ -30,15 +30,23 @@ function invia()
 function rimuovialias()
        {
        //alert(document.aliaslist.elenco.value);
-       if (document.aliaslist.elenco.value!=""){
-               for (num=Number(document.aliaslist.elenco.value);num<top.aliasglob.length;num++)
+       if (document.aliaslist.elenco.value!="")
                {
-               top.aliasglob[num]=top.aliasglob[num+1];
+                       for (var i=document.aliaslist.elenco.length-1;i>-1;i--)
+                       {
+                       if (document.aliaslist.elenco.options[i].selected==true)
+                               {
+                               for (num=i;num<top.aliasglob.length;num++)
+                               {
+                               top.aliasglob[num]=top.aliasglob[num+1];
+                               }
+                               top.aliasglob.length--;
+                               //alert ("rimosso "+i);
+                               //parent.aggiorna();
+                               }
+                       }
+               top.window.open(top.topurl+top.action+"aliaslist.html",(top.cw.frames.length==0?"cw":"bw"));
                }
-               top.aliasglob.length--;
-               //parent.aggiorna();
-               top.window.open(top.topurl+top.action+"aliaslist.html",(top.cw.frames.length==0?"cw":"bw"));
-        }
        }
 function listalias()
        {
@@ -68,7 +76,7 @@ istruzioni();
 <BODY>
 <form name="aliaslist" action="Javascript:addalias();" method="get">
 alias
-<input name="idi" type=text size="15">
+<input name="idi" type=text size="15" value="">
 <input name="uri" type=text size="45" value="cic:/"><br>
 <input type=submit value="add alias"><input type=button value="delete selected" onClick="rimuovialias()";><br>
 <select name="elenco" multiple size=7>
index 015ac57c85342b50b454e552dad023b3ef69acd3..67024321be03629e7e91c1bb2556ff7bf0cda773 100644 (file)
@@ -3,7 +3,18 @@
 <SCRIPT language="Javascript">
 function help()
        {
-       alert ("spiegazione del bottone selezionato");
+       with (document.form1) {
+       if (selopt[0].checked)
+       alert ("No help available.");
+       if (selopt[1].checked)
+       alert ("Parenthesis are employed to force precedence between operators.");
+       if (selopt[2].checked)
+       alert ("'not' returns true if the given [boole] is false, 'ex' returns true if there is at least one group of attributes for each [rvar] referenced by the operators or inside the given [boole] for which the condition is true.");
+       if (selopt[3].checked)
+       alert ("'and' returns true if both conditions are true, 'or' returns true if at least one is true.");
+       if (selopt[4].checked)
+       alert ("'sub' returns true if the first [val] is a subset of the second.\n'meet' returns true if the intersection between the two [val] is not empty.\n'eq' returns true if both [val] are identical.");
+       }
        }
 function choice()
 {
index 332c1a9a0f63503071e0404f13613010d090c149..c2733a3c96677c04826c161598422788f6bc7c30 100644 (file)
@@ -44,11 +44,11 @@ function armageddon()
        {
         if (confirm("This will delete your query and restart a new one. Are you sure?")) {
        top.initialize();
-       top.window.open(top.topurl+"/getpage?url=start.html","qw");
-       top.window.open(top.topurl+"/getpage?url=blank.html","cw");
-       top.window.open(top.topurl+"/getpage?url=blank.html","hw");
-       top.window.open(top.topurl+"/getpage?url=blank.html","gw");
-       top.window.open(top.topurl+"/getpage?url=blank.html","sw");
+       top.window.open(top.topurl+top.action+"start.html","qw");
+       top.window.open(top.topurl+top.action+"blank.html","cw");
+       top.window.open(top.topurl+top.action+"blank.html","hw");
+       top.window.open(top.topurl+top.action+"blank.html","gw");
+       top.window.open(top.topurl+top.action+"blank.html","sw");
        }
         }
 function comprimispazi()
index bb8173389db4c3928a4dbc8d773f5fff428bb0c7..bbe0d7ce15acab678c3ce028e773e0b3069d68a7 100644 (file)
@@ -43,10 +43,10 @@ function addalias()
        {
        ok=0;
        if (document.aliaslist.varid.value.indexOf("/")>0)
-               {if (parent.uricheck(document.aliaslist.varid.value)==1 && document.aliaslist.varid.value.substring(document.aliaslist.varid.value.length-3,document.aliaslist.varid.value.length)=="var")
+               {if (top.uricheck(document.aliaslist.varid.value)==1 && document.aliaslist.varid.value.substring(document.aliaslist.varid.value.length-3,document.aliaslist.varid.value.length)=="var")
                        {ok=1}
                }
-       else {if (parent.idcheck(document.aliaslist.varid.value)==1)
+       else {if (top.idcheck(document.aliaslist.varid.value)==1)
                {ok=1}
                }       
        if (ok==1)
@@ -66,13 +66,13 @@ You may enter as many of them as you want (even none), after each one click the
 <br>
 <form name="aliaslist" action="Javascript:addalias();" method="get">
 <input name="varid" type=text size="35"> Insert here the Id or the Uri you want to add.
-<input type=submit value="add">
-<input type=button value="Done" onClick="invia();" ><br>
+<input type=submit value="add"><input type=button value="delete selected" onClick="rimuovialias()";>
+<br>
 <select name="elenco" size=7>
 <script language=Javascript> listalias(); </script>
 </select>
 <br>
-<input type=button value="delete selected" onClick="rimuovialias()";>
+<input type=button value="Done" onClick="invia();" >
 </form>
 </BODY>
 </HTML>
\ No newline at end of file
index bc34e72fed6a713bbf3f7fd7981ffc2f7622f9e1..3e302b8b24fc366fed1119c6803856acbdd6c35d 100644 (file)
@@ -25,8 +25,9 @@ with (document.form1) {
                                stadd=document.form1.id_or_uri.value;
                                //alert(stadd.substring(0,5));
                                if (stadd.substring(0,5)=="cic:/") 
-                                       {if (!parent.uricheck(stadd)){stadd="";}}
-                               else if (!parent.idcheck(stadd)){stadd="";}                                     
+                                       {if (!top.uricheck(stadd)){stadd="";}}
+                               else if (!top.idcheck(stadd)){stadd="";}
+                               //alert(stadd);                                 
                                }
        if (stadd!="") {parent.mcq=parent.mcq.replace("<font color=\"#ff0000\">[Expr]</font>",stadd);
        //top.qw.document.write(parent.mcq);
index 8883ca369e03bef96f2c283d443043807b249f54..1ca94c4cfcf73e043c4ebc2dcf1d784b06e59b88 100644 (file)
@@ -4,8 +4,8 @@
 sel=2;stadd="";
 function choice()
        {
-       if (sel==0){stadd=document.form1.gen0.value;if (!parent.idcheck(document.form1.gen0.value)){stadd=""}}
-       if (sel==1){stadd=document.form1.gen1.value;if (!parent.uricheck(document.form1.gen1.value)){stadd=""}
+       if (sel==0){stadd=document.form1.gen0.value;if (!top.idcheck(document.form1.gen0.value)){stadd=""}}
+       if (sel==1){stadd=document.form1.gen1.value;if (!top.uricheck(document.form1.gen1.value)){stadd=""}
        if (stadd.substring(stadd.length-3,stadd.length)=="con"){stadd="";alert("You may not enter a Conuri.")}}
        if (sel==1 && stadd!="") {stadd=stadd+" [exp_named_subst]";}
        if (stadd!="") {parent.mcq=parent.mcq.replace("<font color=\"#ff0000\">[Genid]</font>",stadd);
index 1a87db14983ad3296cf9bcc5ac65be67cf8cadf9..3647cddf56eca302c7344aaedb8c4d724aea8dd8 100644 (file)
@@ -1,10 +1,20 @@
 <HTML>
 <HEAD>
 <SCRIPT language="Javascript">
+function armageddon()
+       {
+               top.terminecic="";top.listaliases="";top.ricordaliaslist=0;top.vlds=new Array();var alias="";var expr="";
+               top.initialize();
+               top.window.open(top.topurl+top.action+"start.html","qw");
+               top.window.open(top.topurl+top.action+"blank.html","cw");
+               top.window.open(top.topurl+top.action+"blank.html","hw");
+               top.window.open(top.topurl+top.action+"blank.html","gw");
+               top.window.open(top.topurl+top.action+"blank.html","sw");
+       }
 function invia()
        {
+       top.window.open(top.topurl+top.action+"start.html","qw");
        top.window.open(top.topurl+"/locate?id="+document.locate.oggetto.value,"bw");
-       //top.window.open(top.topurl+top.action+"blank.html","bw");
        }
 </SCRIPT>
 </HEAD>
@@ -12,7 +22,8 @@ function invia()
 <form name="locate" method="get" action="Javascript:invia();">
 <input name="oggetto" type=text size=30>
 Insert here the name of the object you want to search.
-<br><input type=submit value="Display results">
+<br><input type=submit value="Display results" onMouseOver="top.help(-4)">
+<input type=button value="Restart" onMouseOver="top.help(-5)" onClick="armageddon()"></input>
 </form>
 </BODY>
 </HTML>
index 3154d937aa5f245898b253b77a33d7838633c62e..292c76861b1c8e5fd22234721a4babe2f87b00bf 100644 (file)
@@ -25,7 +25,28 @@ function listvvars()
        }
 function help()
        {
-       alert ("spiegazione del bottone selezionato");
+with (document.form1) {
+       if (selopt[0].checked)
+       alert ("Turns a list of strings which cannot have attributes (the [val]) in a list of strings which can have them, but initially has none (a [set]).");
+       if (selopt[1].checked)
+       alert ("Taken a list of posix regular expressions, 'pattern [val]' searches the HELM library for all the URIs which match with at least one of those and returns a [set] representing them.");
+       if (selopt[2].checked)
+       alert ("A [svar] represents a list of URIs with attributes.");
+       if (selopt[3].checked)
+       alert ("A [rvar] is a single URI with attributes.");
+       if (selopt[4].checked)
+       alert ("Parenthesis are employed to force precedence between operators.");
+       if (selopt[5].checked)
+       alert ("The [path] you must enter represents a relation; this production returns a [set] composed by the union of all the URIs which match the chosen relation in the [val] you will enter afterwards, without attributes. If you select 'inverse', you'll obtain a list of all the URIs for which the [val] matches the chosen relation, 'sub' and 'super' modify the result depending on the chosen relation and the last input box allows you to add attributes to the result.");
+       if (selopt[6].checked)
+       alert ("This production returns a [set] composed by all the URIs in the given [set] which match the condition in the given [boole].");
+       if (selopt[7].checked)
+       alert ("'Union' returns a [set] which is the union of the two given [set]; should an URI be present in each [set] with different attributes, it will be included in the result only once with all the attributes.\n'Intersect' returns a [set] which contains the cartesian product of the URIs listed in each given [set].\n'Diff' returns a [set] which contains the URIs found in the first given [set] but not in the second. Attributes are ignored.");
+       if (selopt[8].checked)
+       alert ("Allows you to assign a value to a [svar]");
+       if (selopt[9].checked)
+       alert ("Allows you to assign a value to a [vvar]");
+       }
        }
 function choice()
 {
index e11cdb8c7de0c0dc551e2e80115e52579507b863..6a6a17b96771b89afd6dd68cb5bb79ac83a3498a 100644 (file)
@@ -6,6 +6,7 @@
                        for (i=0; i<aliases.length; i++) {
                                top.aliasglob[i] = aliases[i];
                        }
+                       top.vlds=new Array();
                        top.window.open(top.topurl+top.action+"editorpdq.html", "sw");
                </script>
        </head>
index 0e9aae5fee10010e5f15f80f9415a168b98c6179..bdd2044d0e73c1ded8dcff12bace405412b7d8d3 100644 (file)
@@ -24,7 +24,20 @@ function listvvars2()
        }
 function help()
        {
-       alert ("spiegazione del bottone selezionato");
+       with (document.form1) {
+       if (selopt[0].checked)
+       alert ("No help available.");
+       if (selopt[1].checked)
+       alert ("Turns a list of strings which can have attributes ( the [set] ) in a list of strings which cannot have them ( a [val] ).");
+       if (selopt[2].checked)
+       alert ("Returns the attribute of the given [vvar] in the given [rvar].");
+       if (selopt[3].checked)
+       alert ("No help available.");
+       if (selopt[4].checked)
+       alert ("Parenthesis are employed to force precedence between operators.");
+       if (selopt[5].checked)
+       alert ("The [path] you must enter represents a relation; this production returns a [val] composed by the union of all the URIs which match the chosen relation in the [val] you will enter afterwards. If you select 'inverse', you'll obtain a list of all the URIs for which the [val] matches the chosen relation, 'sub' and 'super' modify the result depending on the chosen relation.");
+       }
        }
 function choice()
 {