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();
|
||||
nameStr = nameStr.replace("\"","\\\"");
|
||||
nameStr = nameStr.replace("\'","\\\'");
|
||||
try {
|
||||
json += "{ \"name\": \"<a href='datapropEdit?uri="+URLEncoder.encode(prop.getURI(),"UTF-8")+"'>" + nameStr + "</a>\", ";
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -152,6 +152,8 @@ public class ListPropertyWebappsController extends FreemarkerHttpServlet {
|
|||
ObjectProperty prop = (ObjectProperty) propsIt.next();
|
||||
|
||||
String propNameStr = ShowObjectPropertyHierarchyController.getDisplayLabel(prop);
|
||||
propNameStr = propNameStr.replace("\"","\\\"");
|
||||
propNameStr = propNameStr.replace("\'","\\\'");
|
||||
try {
|
||||
json += "{ \"name\": \"<a href='./propertyEdit?uri="+URLEncoder.encode(prop.getURI(),"UTF-8")+"'>"
|
||||
+ propNameStr + "</a>\", ";
|
||||
|
|
|
@ -201,9 +201,8 @@ public class ShowClassHierarchyController extends FreemarkerHttpServlet {
|
|||
else if ( position < previous_posn ) {
|
||||
tempString += "}, { \"name\": ";
|
||||
}
|
||||
|
||||
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) {
|
||||
tempString += "\" " + ((vcw.getLocalNameWithPrefix() == null) ? "" : vcw.getLocalNameWithPrefix()) + "\", ";
|
||||
}
|
||||
|
|
|
@ -182,10 +182,10 @@
|
|||
}
|
||||
|
||||
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 ) {
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue