]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/searchEngine/html/index.html
Partially ported to new disambiguating parser.
[helm.git] / helm / searchEngine / html / index.html
index e7b73b5d2eed625b1be717c6957d7d0e28ecdaae..fb5c2d45ab00c3cd61dc2b5eeb9b98dc57b13ed9 100644 (file)
@@ -551,13 +551,14 @@ function templateambigpdq2_listainterpretazioni(document,elenco,labels)
 function templateambigpdq2_invia(document,elenco)
        {
        stringa=top.topurl+"/"+top.current_query+"?term="+top.terminecic;
-       stringa=stringa+"&aliases=";
-       controllo=stringa.length;
+       stringa=stringa+"&aliases=&interpretation_choices=";
+  var parsa = "";
+       controllo=parsa.length;
        for (j=0;j<elenco.length;j++)
                {
                if (document.disamb.interp[j].checked)
                        {
-                       stringa=stringa+escape(elenco[j]);
+                       parsa=parsa+escape(elenco[j]);
 
       // TODO da implementare nella terza fase
                        //top.aliasglob[top.aliasglob.length]=document.disamb.interp[j].value;
@@ -567,7 +568,9 @@ function templateambigpdq2_invia(document,elenco)
                        }
                        
                }
-       if (stringa.length!=controllo) 
+  top.interpretation_choices = parsa;
+  stringa=stringa+parsa;
+       if (parsa.length!=controllo) 
                {
                window.open(ask_uwobo(stringa),"cw");
                }
@@ -598,6 +601,7 @@ function constraints_choice_template_invia(document,aliases,constr_obj_len,const
        stringa=top.topurl+"/"+top.current_query+"?term="+top.terminecic;
        stringa=stringa+"&aliases="+escape(aliases);
        stringa=stringa+"&choices="+escape(top.choices);
+       stringa=stringa+"&interpretation_choices="+escape(top.interpretation_choices);
        stringa=stringa+"&constraints=";
        for (j=0;j<constr_obj_len;j++)
         {