return UNICODEvsSYMBOL;
}
-function getInitialUNICODEvsSYMBOLsymbol()
+function getInitialUNICODEvsSYMBOLsymbol(defaultValue)
{
- if (getInitialUNICODEvsSYMBOL() == "symbol")
+ if (defaultValue == "symbol")
return "CHECKED";
else
return "";
}
-function getInitialUNICODEvsSYMBOLunicode()
+function getInitialUNICODEvsSYMBOLunicode(defaultValue)
{
- if (getInitialUNICODEvsSYMBOL() == "unicode")
+ if (defaultValue == "unicode")
return "CHECKED";
else
return "";
}
+
+function getProfileId()
+{
+ return document.profile.elements[0].value;
+}
function getUwoboURL()
{
return document.uri_set_queueURL.elements[0].value;
}
+function getRdflyURL()
+{
+ return document.rdflyURL.elements[0].value;
+}
+
function getUNICODEvsSYMBOL()
{
if (document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].checked)
- return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].value;
+ return 'symbol';
+ else
+ return 'unicode';
+}
+
+function getNaturalLanguage()
+{
+ if (document.naturalLanguage.elements[0].checked)
+ return 'yes';
else
- return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[1].value;
+ return 'no';
+}
+
+function getMaxGraphSize()
+{
+ return document.maxGraphSize.elements[0].value;
+}
+
+function getUpdateURL()
+{
+ return '¶m.processorURL=' + escape(getUwoboURL()) +
+ '¶m.getterURL=' + escape(getGetterURL()) +
+ '¶m.uri_set_queueURL=' + escape(getURISetQueueURL()) +
+ '¶m.draw_graphURL=' + escape(getDrawGraphURL()) +
+ '¶m.proofcheckerURL=' + escape(getProofCheckerURL()) +
+ '¶m.rdflyURL=' + escape(getRdflyURL()) +
+ '¶m.naturalLanguage=' + escape(getNaturalLanguage()) +
+ '¶m.uri_set_size=' + escape(getMaxGraphSize()) +
+ '¶m.UNICODEvsSYMBOL=' + escape(getUNICODEvsSYMBOL());
}
function chopSlash(url)
if (ss.selectedIndex == 0) {
document.uwoboURL.elements[0].value = "";
} else {
- document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8081/helm/servlet/uwobo/";
+ document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58080/";
}
-
- refreshLinks();
}
function selectGetterURL(ss)
if (ss.selectedIndex == 0) {
document.getterURL.elements[0].value = "";
} else {
- document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":48081/";
+ document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58081/";
}
-
- refreshLinks();
}
function selectProofCheckerURL(ss)
if (ss.selectedIndex == 0) {
document.proofcheckerURL.elements[0].value = "";
} else {
- document.proofcheckerURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":48084/";
+ document.proofcheckerURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58084/";
}
-
- 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 + ":48083/";
+ document.draw_graphURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58083/";
}
-
- 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 + ":48082/";
+ document.uri_set_queueURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58082/";
+ }
+}
+
+function selectRdflyURL(ss)
+{
+ if (ss.selectedIndex == 0) {
+ document.rdflyURL.elements[0].value = "";
+ } else {
+ document.rdflyURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58086/";
}
+}
+
+function selectProfile(ss, interfaceURL)
+{
+ location = getUwoboURL() +
+ 'apply?keys=SPK¶m.processorURL=' + escape(getUwoboURL()) +
+ '¶m.profile=' + escape(ss.options[ss.selectedIndex].value) +
+ '&xmluri=' + escape(interfaceURL + 'html/configuration.html');
+}
- refreshLinks();
+function saveProfile(origProfileId)
+{
+ var profileId = getProfileId();
+ var exists = false;
+ var i;
+ var options = document.profileList.elements[0];
+ for (i = 0; i < options.length; i++)
+ if (profileId == options[i].value) exists = true;
+ if (exists) {
+ if (confirm('Update the profile \'' + profileId + '\'?'))
+ location = getUwoboURL() + 'setparams?id=' + profileId + getUpdateURL();
+ } else {
+ if (confirm('Create a new profile \'' + profileId + '\' with the current settings?'))
+ location = getUwoboURL() + 'createprofile?id=' + profileId + '&orig=' + origProfileId + getUpdateURL();
+ }
}
+