been removed.
<div id="indent">
The on-line interface will use a
-<a href="http://www.cs.unibo.it/helm/getter" target="_top">Getter</a> to locate and
+<a href="file:///projects/helm/public_html/getter" target="_top">Getter</a> to locate and
download documents and an
-<a href="http://www.cs.unibo.it/helm/uwobo" target="_top">UWOBO</a> to apply transformations
+<a href="file:///projects/helm/public_html/uwobo" target="_top">UWOBO</a> to apply transformations
to them.
<br /><br />
To control the behaviour of them, use the apposite
-<a onClick="refreshLinks();" href="http://www.cs.unibo.it/helm/getter/panel/index.html" target="_top">Getter panel</a>
+<a onClick="refreshLinks();" href="file:///projects/helm/public_html/getter/panel/index.html" target="_top">Getter panel</a>
and
-<a onClick="refreshLinks();" href="http://www.cs.unibo.it/helm/uwobo/panel/index.html" target="_top">UWOBO panel</a>.
+<a onClick="refreshLinks();" href="file:///projects/helm/public_html/uwobo/panel/index.html" target="_top">UWOBO panel</a>.
<br /><br />
<br />
+<table border="0">
+ <tr>
+ <th colspan="2" align="left">Graph Drawer URL</th>
+ </tr>
+ <tr>
+ <td>
+ <form name="draw_graphURL">
+ <script>
+ document.write('<input type="text" value="' + getInitialDrawGraphURL() + '" size="50"/>');
+ </script>
+ </form>
+ </td>
+ <td>
+ <form>
+ <select onChange="selectDrawGraphURL(this)">
+ <option value="">---</option>
+ <option value="localhost">localhost</option>
+ <option value="marcello.cs.unibo.it">marcello</option>
+ <option value="phd.cs.unibo.it">phd</option>
+ <option value="eolo.cs.unibo.it">eolo</option>
+ </select>
+ </form>
+ </td>
+ <td>
+ <form>
+ <input type="button" value="Check" onClick="top.result.location = getDrawGraphURL() + 'help'"/>
+ </form>
+ </td>
+ </tr>
+</table>
+
+<br />
+
+<table border="0">
+ <tr>
+ <th colspan="2" align="left">URI-Set URL</th>
+ </tr>
+ <tr>
+ <td>
+ <form name="uri_set_queueURL">
+ <script>
+ document.write('<input type="text" value="' + getInitialURISetQueueURL() + '" size="50"/>');
+ </script>
+ </form>
+ </td>
+ <td>
+ <form>
+ <select onChange="selectURISetQueueURL(this)">
+ <option value="">---</option>
+ <option value="localhost">localhost</option>
+ <option value="marcello.cs.unibo.it">marcello</option>
+ <option value="phd.cs.unibo.it">phd</option>
+ <option value="eolo.cs.unibo.it">eolo</option>
+ </select>
+ </form>
+ </td>
+ <td>
+ <form>
+ <input type="button" value="Check" onClick="top.result.location = getURISetQueueURL() + 'help'"/>
+ </form>
+ </td>
+ </tr>
+</table>
+
+<br />
+
<table border="0">
<tr>
<th colspan="2" align="left">Browser</th>
<![CDATA[
top.processorURL = getParam2('processorURL');
top.getterURL = getParam2('getterURL');
+ top.draw_graphURL = getParam2('draw_graphURL');
+ top.uri_set_queueURL = getParam2('uri_set_queueURL');
top.UNICODEvsSYMBOL = getParam2('UNICODEvsSYMBOL');
top.topurl = getParam2('topurl');
top.mode = getParam2('mode');
'&theoryuri=' + getParam2('theoryuri') +
'&processorURL=' + getParam2('processorURL') +
'&getterURL=' + getParam2('getterURL') +
+ '&draw_graphURL=' + getParam2('draw_graphURL') +
+ '&uri_set_queueURL=' + getParam2('uri_set_queueURL') +
'&UNICODEvsSYMBOL=' + getParam2('UNICODEvsSYMBOL');
var escaped_control_frame_URL = escape(control_frame_URL);
document.write('<frame src="' +
'¶m.keys=L2H' +
'¶m.uri=' + getParam2('theoryuri') +
'¶m.getterURL=' + getParam2('getterURL') +
+ '¶m.draw_graphURL=' + getParam2('draw_graphURL') +
+ '¶m.uri_set_queueURL='+getParam2('uri_set_queueURL') +
'¶m.UNICODEvsSYMBOL=' + getParam2('UNICODEvsSYMBOL') +
'¶m.target=theory' +
//'¶m.interfaceURL=' + location.protocol + "//" + location.host + chopSlash(chopSlash(chopSlash(location.pathname))) +
'¶m.keys=L2H' +
'¶m.uri=' + getParam2('cicuri') +
'¶m.getterURL=' + getParam2('getterURL') +
+ '¶m.draw_graphURL=' + getParam2('draw_graphURL') +
+ '¶m.uri_set_queueURL='+getParam2('uri_set_queueURL') +
'¶m.UNICODEvsSYMBOL=' + getParam2('UNICODEvsSYMBOL') +
'¶m.target=cic' +
//'¶m.interfaceURL=' + location.protocol + "//" + location.host + chopSlash(chopSlash(chopSlash(location.pathname))) +
var topurl = top.topurl;
var processorURL = top.processorURL;
var getterURL = top.getterURL;
+ var draw_graphURL = top.draw_graphURL;
+ var uri_set_queueURL = top.uri_set_queueURL;
var mode_list = mode.split(",");
var new_mode = output.options[output.selectedIndex].value;
- var dest = "?theoryuri=" + theoryuri + "&cicuri=" + cicuri + "&topurl=" + topurl + "&processorURL=" + processorURL + "&getterURL=" + getterURL + "&mode=";
+ var dest = "?theoryuri=" + theoryuri + "&cicuri=" + cicuri + "&topurl=" + topurl + "&processorURL=" + processorURL + "&getterURL=" + getterURL + "&draw_graphURL=" + draw_graphURL + "&uri_set_queueURL=" + uri_set_queueURL + "&mode=";
if (new_mode != mode_list[0]) {
updateMode(0, new_mode);
"&theoryuri=" + top.theoryuri +
"&processorURL=" + top.processorURL +
"&getterURL=" + top.getterURL +
+ "&draw_graphURL=" + top.draw_graphURL +
+ "&uri_set_queueURL=" + top.uri_set_queueURL +
"&UNICODEvsSYMBOL=" + top.UNICODEvsSYMBOL;
var href =
var mode = top.mode;
var processorURL = top.processorURL;
var getterURL = top.getterURL;
+ var draw_graphURL = top.draw_graphURL;
+ var uri_set_queueURL = top.uri_set_queueURL;
var UNICODEvsSYMBOL = top.UNICODEvsSYMBOL;
var mode_list = mode.split(",");
if (format == "html" && type == "cic") {
//Important note: do not modify this function without modifying
//getCICMathMLKeys
- keys = escape("d_c,C1,HC2,L")+"¶m.processorURL=" + escape(processorURL) +
+ keys = escape("d_c,C1,HC2,L") +
+ "¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
+ "¶m.draw_graphURL=" + escape(draw_graphURL) +
+ "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) +
"¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) +
"&prop.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+
"&prop.encoding=iso-8859-1" +
keys = escape("T1,T2,L,E")+
"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
+ "¶m.draw_graphURL=" + escape(draw_graphURL) +
+ "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) +
"¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) +
"¶m.keys=" + escape("d_c,C1,HC2,L") +
"¶m.thkeys=" + escape("T1,T2,L,E") +
"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
+ "¶m.draw_graphURL=" + escape(draw_graphURL) +
+ "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) +
"¶m.doctype-public=" +
"¶m.encoding=" +
"¶m.thencoding=iso-8859-1" +
keys = escape("d_c,C1,G,C2,L")+
"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
+ "¶m.draw_graphURL=" + escape(draw_graphURL) +
+ "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) +
"&prop.doctype-public="+
"&prop.encoding=" +
"&prop.media-type=text/xml" +
"¶m.embedkeys=d_c,TC1,G,C2,L" +
"¶m.processorURL=" + escape(processorURL) +
"¶m.getterURL=" + escape(getterURL) +
+ "¶m.draw_graphURL=" + escape(draw_graphURL) +
+ "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) +
"¶m.doctype-public=" +
"¶m.encoding=" +
"¶m.thencoding=iso-8859-1" +
return "http://phd.cs.unibo.it:8080/helm/servlet/uwobo/";
case "getterURL":
return "http://phd.cs.unibo.it:8081/";
+ case "draw_graphURL":
+ return "http://phd.cs.unibo.it:8083/";
+ case "uri_set_queueURL":
+ return "http://phd.cs.unibo.it:8084/";
+ case "UNICODEvsSYMBOL":
+ return "symbol";
case "cicuri":
return "cic:/";
case "theoryuri":
return "theory:/";
case "mode":
return "processed,cic,html,yes,no,normal,no";
- case "UNICODEvsSYMBOL":
- return "symbol";
}
return "???";
return getterURL;
}
+function getInitialDrawGraphURL()
+{
+ var search = top.location.search;
+ search = search.slice(1);
+ var args = search.split("&");
+ var draw_graphURL = "-1";
+ for (var i = 0 ; i < args.length ; i++) {
+ var couple = args[i].split("=");
+ if (couple[0] == "draw_graphURL") draw_graphURL = couple[1];
+ }
+ if (draw_graphURL == "-1") draw_graphURL = getDefaultParam("draw_graphURL");
+ return draw_graphURL;
+}
+
+function getInitialURISetQueueURL()
+{
+ var search = top.location.search;
+ search = search.slice(1);
+ var args = search.split("&");
+ var uri_set_queueURL = "-1";
+ for (var i = 0 ; i < args.length ; i++) {
+ var couple = args[i].split("=");
+ if (couple[0] == "uri_set_queueURL") uri_set_queueURL = couple[1];
+ }
+ if (uri_set_queueURL == "-1") uri_set_queueURL = getDefaultParam("uri_set_queueURL");
+ return uri_set_queueURL;
+}
+
function getInitialUNICODEvsSYMBOL()
{
var search = top.location.search;
return document.getterURL.elements[0].value;
}
+function getDrawGraphURL()
+{
+ return document.draw_graphURL.elements[0].value;
+}
+
+function getURISetQueueURL()
+{
+ return document.uri_set_queueURL.elements[0].value;
+}
+
function getUNICODEvsSYMBOL()
{
if (document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].checked)
"&mode=" + mode +
"&processorURL=" + getUwoboURL() +
"&getterURL=" + getGetterURL() +
+ "&draw_graphURL=" + getDrawGraphURL() +
+ "&uri_set_queueURL=" + getURISetQueueURL() +
"&UNICODEvsSYMBOL=" + getUNICODEvsSYMBOL()
);
}
refreshLinks();
}
+
+function selectDrawGraphURL(ss)
+{
+ if (ss.selectedIndex == 0) {
+ document.draw_graphURL.elements[0].value = "";
+ } else {
+ document.draw_graphURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8083/";
+ }
+
+ refreshLinks();
+}
+
+function selectURISetQueueURL(ss)
+{
+ if (ss.selectedIndex == 0) {
+ document.uri_set_queueURL.elements[0].value = "";
+ } else {
+ document.uri_set_queueURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8084/";
+ }
+
+ refreshLinks();
+}
var urla = url.split("?");
var search = urla[1];
var args = search.split("&");
+ var found = false;
for (var i = 0 ; i < args.length ; i++) {
var couple = args[i].split("=");
- if (couple[0] == name) args[i] = name + "=" + value;
+ if (couple[0] == name) {
+ found = true;
+ args[i] = name + "=" + value;
+ }
}
-
- return (urla[0] + "?" + args.join("&"));
+ return (urla[0] + "?" + args.join("&") + (found ? "" : ("&" + name + "=" + value)));
}
function extractParam(url,name)
<xsl:param name="CICURI" select="''"/>
<xsl:param name="getterURL" select="''"/>
-<xsl:param name="draw_graphURL" select="'http://localhost:8083/'"/>
+<xsl:param name="draw_graphURL" select="''"/>
<xsl:template match="/">
<html>
var getterURL = "<xsl:value-of select="$getterURL"/>";
var draw_graphURL = "<xsl:value-of select="$draw_graphURL"/>";
<![CDATA[
- var url = setParam(location.href,"keys","MMG");
+ var url = setParam(location.href,"keys","MDG");
url = setParam(url,"xmluri", getterURL + 'getxml%3Furi%3D' + CICURI);
url = draw_graphURL + 'draw?url=' + escape(url);
var url2 = setParam(location.href,"keys","ML2,RT");