From fb783535ecfe90b6277605d8c8df395389acaf75 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 12 Mar 2003 11:32:37 +0000 Subject: [PATCH] Many changes in the client-side interfaces: 1. Bug fix: after a SearchPattern query it was impossible to interact any more with the "alias" editor. The problem was that the JavaScript code assumed the existence of a parent frame that is not always there. Closes #24 2. New release of the client-side interface with some bug fixes in the grammar production --- helm/searchEngine/html/aliaslist.html | 22 ++--- helm/searchEngine/html/editorpdq.html | 20 ++--- helm/searchEngine/html/expr.html | 12 ++- helm/searchEngine/html/grammarpdq.html | 30 +++++-- helm/searchEngine/html/index.html | 90 +++++++++++++++---- helm/searchEngine/html/loc_obj.html | 2 +- helm/searchEngine/html/pdq.html | 83 +++-------------- helm/searchEngine/html/query_choice.html | 18 ++-- helm/searchEngine/html/start.html | 4 +- helm/searchEngine/html/templateambigpdq1.html | 10 +-- helm/searchEngine/html/templateambigpdq2.html | 10 +-- helm/searchEngine/html/templateambigpdq3.html | 2 +- 12 files changed, 167 insertions(+), 136 deletions(-) diff --git a/helm/searchEngine/html/aliaslist.html b/helm/searchEngine/html/aliaslist.html index c74e2ca59..2b5c54163 100644 --- a/helm/searchEngine/html/aliaslist.html +++ b/helm/searchEngine/html/aliaslist.html @@ -9,7 +9,7 @@ function invia() stadd=stadd+parent.alist[num]+" "; //alert(stadd); } - //top.window.open(top.topurl+"/getpage?url=editorpdq.html","sw"); + //top.window.open(top.topurl+top.action+"editorpdq.html","sw"); top.window.sw.editalias(stadd); //alert(parent.mcq); parent.mcq=parent.mcq.replace("[Alias list]",""); @@ -31,12 +31,14 @@ function rimuovialias() { //alert(document.aliaslist.elenco.value); if (document.aliaslist.elenco.value!=""){ - for (num=Number(document.aliaslist.elenco.value);num alias - - -
+
+

- +
diff --git a/helm/searchEngine/html/editorpdq.html b/helm/searchEngine/html/editorpdq.html index ae49abc02..07aa2b775 100644 --- a/helm/searchEngine/html/editorpdq.html +++ b/helm/searchEngine/html/editorpdq.html @@ -9,11 +9,11 @@ function armageddon() { top.terminecic="";top.listaliases="";top.ricordaliaslist=0;top.vlds=new Array();var alias="";var expr=""; 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 nuovapdqsa() @@ -23,8 +23,8 @@ function nuovapdqsa() top.terminecic=""; document.invio.expression.value="";document.invio.aliaslist.value=unescape(top.listaliases); top.ricordaliaslist=1; - window.open(top.topurl+"/getpage?url=pdq.html","cw"); - window.open(top.topurl+"/getpage?url=editorpdq.html","sw"); + window.open(top.topurl+top.action+"pdq.html","cw"); + window.open(top.topurl+top.action+"editorpdq.html","sw"); } } function invia() @@ -39,7 +39,7 @@ function invia() //alert(top.listaliases); window.open(top.topurl+"/searchPattern?term="+escape(document.invio.expression.value)+"&aliases="+top.listaliases,"cw"); } - //window.open(top.topurl+"/getpage?url=templateambigpdq2.html","bw")} + //window.open(top.topurl+top.action+"templateambigpdq2.html","bw")} else {alert("Please complete the query before.")} } function warning() @@ -69,7 +69,7 @@ function listalias() function editaalias() { if (document.invio.expression.value!=""){top.terminecic=escape(document.invio.expression.value)} - top.window.open(top.topurl+"/getpage?url=aliaslist.html",(top.cw.frames.length==0?"cw":"bw")); + top.window.open(top.topurl+top.action+"aliaslist.html",(top.cw.frames.length==0?"cw":"bw")); } @@ -83,7 +83,7 @@ function editaalias()
Your expression.
- + diff --git a/helm/searchEngine/html/expr.html b/helm/searchEngine/html/expr.html index 291b40cc2..bc34e72fe 100644 --- a/helm/searchEngine/html/expr.html +++ b/helm/searchEngine/html/expr.html @@ -21,9 +21,16 @@ with (document.form1) { {stadd=stadd+"[Expr] "} stadd=stadd+")"; } - parent.mcq=parent.mcq.replace("[Expr]",stadd); + if (selopt[6].checked) { + 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 (stadd!="") {parent.mcq=parent.mcq.replace("[Expr]",stadd); //top.qw.document.write(parent.mcq); - parent.parse(parent.mcq); + parent.parse(parent.mcq);} } } @@ -45,6 +52,7 @@ You are entering an expression. Select one of the following.