merging r10056 to the trunk
This commit is contained in:
parent
950be11440
commit
fb483663bf
4 changed files with 7 additions and 4 deletions
|
@ -112,6 +112,8 @@ public class ListDatatypePropertiesController extends FreemarkerHttpServlet {
|
||||||
}
|
}
|
||||||
|
|
||||||
String nameStr = prop.getPublicName()==null ? prop.getName()==null ? prop.getURI()==null ? "(no name)" : prop.getURI() : prop.getName() : prop.getPublicName();
|
String nameStr = prop.getPublicName()==null ? prop.getName()==null ? prop.getURI()==null ? "(no name)" : prop.getURI() : prop.getName() : prop.getPublicName();
|
||||||
|
nameStr = nameStr.replace("\"","\\\"");
|
||||||
|
nameStr = nameStr.replace("\'","\\\'");
|
||||||
try {
|
try {
|
||||||
json += "{ \"name\": \"<a href='datapropEdit?uri="+URLEncoder.encode(prop.getURI(),"UTF-8")+"'>" + nameStr + "</a>\", ";
|
json += "{ \"name\": \"<a href='datapropEdit?uri="+URLEncoder.encode(prop.getURI(),"UTF-8")+"'>" + nameStr + "</a>\", ";
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -152,6 +152,8 @@ public class ListPropertyWebappsController extends FreemarkerHttpServlet {
|
||||||
ObjectProperty prop = (ObjectProperty) propsIt.next();
|
ObjectProperty prop = (ObjectProperty) propsIt.next();
|
||||||
|
|
||||||
String propNameStr = ShowObjectPropertyHierarchyController.getDisplayLabel(prop);
|
String propNameStr = ShowObjectPropertyHierarchyController.getDisplayLabel(prop);
|
||||||
|
propNameStr = propNameStr.replace("\"","\\\"");
|
||||||
|
propNameStr = propNameStr.replace("\'","\\\'");
|
||||||
try {
|
try {
|
||||||
json += "{ \"name\": \"<a href='./propertyEdit?uri="+URLEncoder.encode(prop.getURI(),"UTF-8")+"'>"
|
json += "{ \"name\": \"<a href='./propertyEdit?uri="+URLEncoder.encode(prop.getURI(),"UTF-8")+"'>"
|
||||||
+ propNameStr + "</a>\", ";
|
+ propNameStr + "</a>\", ";
|
||||||
|
|
|
@ -201,7 +201,6 @@ public class ShowClassHierarchyController extends FreemarkerHttpServlet {
|
||||||
else if ( position < previous_posn ) {
|
else if ( position < previous_posn ) {
|
||||||
tempString += "}, { \"name\": ";
|
tempString += "}, { \"name\": ";
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
tempString += "\"<a href='vclassEdit?uri="+URLEncoder.encode(vcw.getURI(),"UTF-8")+"'>"+ vcw.getLocalNameWithPrefix() +"</a>\", ";
|
tempString += "\"<a href='vclassEdit?uri="+URLEncoder.encode(vcw.getURI(),"UTF-8")+"'>"+ vcw.getLocalNameWithPrefix() +"</a>\", ";
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -182,10 +182,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this.children.length == 1 ) {
|
if ( this.children.length == 1 ) {
|
||||||
subclassString += "<span style='font-size:0.8em'> (1 subclass)</span>";
|
subclassString += "<span style='font-size:0.8em'> (1 subproperty)</span>";
|
||||||
}
|
}
|
||||||
else if ( this.children.length > 1 ) {
|
else if ( this.children.length > 1 ) {
|
||||||
subclassString += "<span style='font-size:0.8em'> (" + this.children.length + " subclasses)</span>";
|
subclassString += "<span style='font-size:0.8em'> (" + this.children.length + " subproperties)</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
childDetails += "<td class='subclassCell' colspan='2'><span class='subclassExpandPlus' id='subclassExpand"
|
childDetails += "<td class='subclassCell' colspan='2'><span class='subclassExpandPlus' id='subclassExpand"
|
||||||
|
|
Loading…
Add table
Reference in a new issue