$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");
</select>
</td>
<td>
- <a target="_top" href="$topurl?mode=$mode&cicuri=$cicuri&theoryuri=$theoryuri">Reload</a><br>
+ <a target="_top" href="$topurl?mode=$mode&cicuri=$cicuri&theoryuri=$theoryuri&processorURL=$processorURL&getterURL=$getterURL">Reload</a><br>
(do it also before attempting to take a link to the current page)
+ <input type="hidden" name="hiddenprocessorURL" value="$processorURL">
+ <input type="hidden" name="hiddengetterURL" value="$getterURL">
<input type="hidden" name="hiddentopurl" value="$topurl">
<input type="hidden" name="hiddenmode" value="$mode">
<input type="hidden" name="hiddencicuri" value="$cicuri">
<input type="checkbox" $natural onClick="updateNatural(this)"> Natural Language</input>
<input type="checkbox" $annotations onClick="updateAnnotations(this)"> Annotations</input>
</td>
+ <td>
+ <a target="_top" href="../html/index.html?mode=$mode&cicuri=$cicuri&theoryuri=$theoryuri&processorURL=$processorURL&getterURL=$getterURL">Configuration panel</a>
+ </td>
</tr>
</table>
</form>
$mode = $cgi->param('mode');
$cicuri = $cgi->param('cicuri');
$theoryuri = $cgi->param('theoryuri');
+$processorURL = $cgi->param('processorURL');
+$getterURL = $cgi->param('getterURL');
$topurl = $cgi->url();
print <<EOT;
<title>Index of $cicuri and $theoryuri</title>
</head>
<frameset rows="18%,*" border="0" scrolling="no">
- <frame src="mkcontrol.pl?topurl=$topurl&mode=$mode&cicuri=$cicuri&theoryuri=$theoryuri" name="control"/>
+ <frame src="mkcontrol.pl?topurl=$topurl&mode=$mode&cicuri=$cicuri&theoryuri=$theoryuri&processorURL=$processorURL&getterURL=$getterURL" name="control"/>
<frameset cols="50%,50%" border="0" scrolling="no">
<frameset rows="11%,*" border="0" scrolling="no">
<frame src="mkheader.pl?uri=$theoryuri" name="theoryheader"/>
- <frame src="mkindextheory.pl?theoryuri=$theoryuri" name="theoryresult"/>
+ <frame src="mkindextheory.pl?theoryuri=$theoryuri&getterURL=$getterURL" name="theoryresult"/>
</frameset>
<frameset rows="11%,*" border="0" scrolling="no">
<frame src="mkheader.pl?uri=$cicuri" name="cicheader"/>
- <frame src="mkindexcic.pl?cicuri=$cicuri" name="cicresult"/>
+ <frame src="mkindexcic.pl?cicuri=$cicuri&getterURL=$getterURL" name="cicresult"/>
</frameset>
</frameset>
</frameset>
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);
$output = <<EOT;
<tr>
<td><img border="0" src="/icons/back.gif" alt="[BACK]"></td>
-<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddencicuri.value='$uridotdot'; refreshReload(); refreshCICHeader(); this.search='?cicuri=$uridotdot';" onMouseOver="window.status='$uridotdot'; return true">Parent Directory</a></td>
+<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddencicuri.value='$uridotdot'; refreshReload(); refreshCICHeader(); this.search='?cicuri=$uridotdot&getterURL=$getterURL';" onMouseOver="window.status='$uridotdot'; return true">Parent Directory</a></td>
</tr>
EOT
}
$output .= <<EOT;
<tr>
<td><img border="0" src="/icons/folder.gif" alt="[DIR]"></td>
-<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddencicuri.value='$uri$name'; refreshReload(); refreshCICHeader(); this.search='?cicuri=$uri$name';" onMouseOver="window.status='$uri$name'; return true">$name</a></td>
+<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddencicuri.value='$uri$name'; refreshReload(); refreshCICHeader(); this.search='?cicuri=$uri$name&getterURL=$getterURL';" onMouseOver="window.status='$uri$name'; return true">$name</a></td>
</tr>
</tr>
EOT
$output .= <<EOT;
<tr>
<td><img border="0" src="/icons/generic.red.gif" alt="[DIR]"></td>
-<td><a href="" target="cic" onClick="this.href=makeURL('cic','$uri$name','$processor_url','$getter_url','$flagscic','$flagstypes')" onMouseOver="window.status='$uri$name'; return true">$name</a>
+<td><a href="" target="cic" onClick="this.href=makeURL('cic','$uri$name','$flagscic','$flagstypes')" onMouseOver="window.status='$uri$name'; return true">$name</a>
</tr>
EOT
} else {
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);
$output = <<EOT;
<tr>
<td><img border="0" src="/icons/back.gif" alt="[BACK]"></td>
-<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddentheoryuri.value='$uridotdot'; refreshReload(); refreshTheoryHeader(); this.search='?theoryuri=$uridotdot';" onMouseOver="window.status='$uridotdot'; return true">Parent Directory</a></td>
+<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddentheoryuri.value='$uridotdot'; refreshReload(); refreshTheoryHeader(); this.search='?theoryuri=$uridotdot&getterURL=$getterURL';" onMouseOver="window.status='$uridotdot'; return true">Parent Directory</a></td>
</tr>
EOT
}
$output .= <<EOT;
<tr>
<td><img border="0" src="/icons/folder.gif" alt="[DIR]"></td>
-<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddentheoryuri.value='$uri$name'; refreshReload(); refreshTheoryHeader(); this.search='?theoryuri=$uri$name';" onMouseOver="window.status='$uri$name'; return true">$name</a></td>
+<td><a href="$myurl" onClick="top.frames[0].document.forms[0].hiddentheoryuri.value='$uri$name'; refreshReload(); refreshTheoryHeader(); this.search='?theoryuri=$uri$name&getterURL=$getterURL';" onMouseOver="window.status='$uri$name'; return true">$name</a></td>
</tr>
EOT
} elsif ($type eq "object") {
$output .= <<EOT;
<tr>
<td><img border="0" src="/icons/generic.red.gif" alt="[DIR]"></td>
-<td><a href="" target="theory" onClick="this.href=makeURL('theory','$uri$name','$processor_url','$getter_url','$flagscic','$flagstypes')" onMouseOver="window.status='$uri$name'; return true">$name</a>
+<td><a href="" target="theory" onClick="this.href=makeURL('theory','$uri$name','$flagscic','$flagstypes')" onMouseOver="window.status='$uri$name'; return true">$name</a>
</tr>
EOT
} else {