From 1c693fc961f678220df64a5ba098ba10906828f0 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 7 Mar 2001 17:02:42 +0000 Subject: [PATCH] Now the on-line interface can use a Getter and an UWOBO on any machine --- helm/cgi/mkcontrol.pl | 9 ++++++++- helm/cgi/mkindex.pl | 8 +++++--- helm/cgi/mkindexcic.pl | 9 +++++---- helm/cgi/mkindextheory.pl | 9 +++++---- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/helm/cgi/mkcontrol.pl b/helm/cgi/mkcontrol.pl index 96c5c9522..5acadae56 100755 --- a/helm/cgi/mkcontrol.pl +++ b/helm/cgi/mkcontrol.pl @@ -21,6 +21,8 @@ $mode = $cgi->param('mode'); $cicuri = $cgi->param('cicuri'); $theoryuri = $cgi->param('theoryuri'); $topurl = $cgi->param('topurl'); +$processorURL = $cgi->param('processorURL'); +$getterURL = $cgi->param('getterURL'); ($mode1,$mode2,$mode3,$mode4,$mode5) = split(/,/, $mode); $natural = "checked" if ($mode4 eq "yes"); $annotations = "checked" if ($mode5 eq "yes"); @@ -77,8 +79,10 @@ print < - Reload
+ Reload
(do it also before attempting to take a link to the current page) + + @@ -90,6 +94,9 @@ print < Natural Language  Annotations + + Configuration panel + diff --git a/helm/cgi/mkindex.pl b/helm/cgi/mkindex.pl index cd6e47d61..955d6d8b0 100755 --- a/helm/cgi/mkindex.pl +++ b/helm/cgi/mkindex.pl @@ -22,6 +22,8 @@ $cgi = new CGI($ENV{"REQUEST_URL"}); $mode = $cgi->param('mode'); $cicuri = $cgi->param('cicuri'); $theoryuri = $cgi->param('theoryuri'); +$processorURL = $cgi->param('processorURL'); +$getterURL = $cgi->param('getterURL'); $topurl = $cgi->url(); print <Index of $cicuri and $theoryuri - + - + - + diff --git a/helm/cgi/mkindexcic.pl b/helm/cgi/mkindexcic.pl index e592b0579..6e0a566b1 100755 --- a/helm/cgi/mkindexcic.pl +++ b/helm/cgi/mkindexcic.pl @@ -20,13 +20,14 @@ use CGI; my $cgi = new CGI($ENV{"REQUEST_URL"}); $uri = $cgi->param('cicuri'); +$getterURL = $cgi->param('getterURL'); $uri =~ s/(.*)\/$/$1/; # Remove a final slash if present $uri .= "/"; # Put a final slash $myurl = $cgi->url(); $cont = ""; # modified by side-effect by &callback my $ua = LWP::UserAgent->new; -my $request = HTTP::Request->new(GET => $getter_url."ls?format=txt&baseuri=".$uri); +my $request = HTTP::Request->new(GET => $getterURL."ls?format=txt&baseuri=".$uri); my $response = $ua->request($request, \&callback); @filenames = split(/\n/, $cont); @@ -38,7 +39,7 @@ if ($uri ne "cic:/") { $output = < [BACK] -Parent Directory +Parent Directory EOT } @@ -52,7 +53,7 @@ foreach $i (@filenames) { $output .= < [DIR] -$name +$name EOT @@ -62,7 +63,7 @@ EOT $output .= < [DIR] -$name +$name EOT } else { diff --git a/helm/cgi/mkindextheory.pl b/helm/cgi/mkindextheory.pl index b92f36361..c92321f12 100755 --- a/helm/cgi/mkindextheory.pl +++ b/helm/cgi/mkindextheory.pl @@ -20,13 +20,14 @@ use CGI; my $cgi = new CGI($ENV{"REQUEST_URL"}); $uri = $cgi->param('theoryuri'); +$getterURL = $cgi->param('getterURL'); $uri =~ s/(.*)\/$/$1/; # Remove a final slash if present $uri .= "/"; # Put a final slash $myurl = $cgi->url(); $cont = ""; # modified by side-effect by &callback my $ua = LWP::UserAgent->new; -my $request = HTTP::Request->new(GET => $getter_url."ls?format=txt&baseuri=".$uri); +my $request = HTTP::Request->new(GET => $getterURL."ls?format=txt&baseuri=".$uri); my $response = $ua->request($request, \&callback); @filenames = split(/\n/, $cont); @@ -38,7 +39,7 @@ if ($uri ne "theory:/") { $output = < [BACK] -Parent Directory +Parent Directory EOT } @@ -52,7 +53,7 @@ foreach $i (@filenames) { $output .= < [DIR] -$name +$name EOT } elsif ($type eq "object") { @@ -61,7 +62,7 @@ EOT $output .= < [DIR] -$name +$name EOT } else { -- 2.39.2