[Yanel-commits] rev 56927 - public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation

michi at wyona.com michi at wyona.com
Thu Feb 24 00:25:59 CET 2011


Author: michi
Date: 2011-02-24 00:25:59 +0100 (Thu, 24 Feb 2011)
New Revision: 56927

Modified:
   public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java
Log:
label fixed

Modified: public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java	2011-02-23 23:21:10 UTC (rev 56926)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java	2011-02-23 23:25:59 UTC (rev 56927)
@@ -134,8 +134,8 @@
                             childCollectionElement.setAttribute("path", node.getPath());
                             childCollectionElement.setAttribute("name", node.getName());
                             Element labelElement = (Element) childCollectionElement.appendChild(doc.createElement("label"));
-                            labelElement.appendChild(doc.createTextNode(node.getName()));
-                            //labelElement.appendChild(doc.createTextNode(node.getLabel()));
+                            //labelElement.appendChild(doc.createTextNode(node.getName()));
+                            labelElement.appendChild(doc.createTextNode(node.getName() + " (" + node.getLabel() + ")"));
                         } else {
                             getNodeAsXML(child.getPath(), doc, collectionElement);
                         }
@@ -149,8 +149,8 @@
                         resourceElement.setAttribute("path", child.getPath());
                         resourceElement.setAttribute("name", child.getName());
                         Element labelElement = (Element) resourceElement.appendChild(doc.createElement("label"));
-                        labelElement.appendChild(doc.createTextNode(child.getName()));
-                        //labelElement.appendChild(doc.createTextNode(child.getLabel()));
+                        //labelElement.appendChild(doc.createTextNode(child.getName()));
+                        labelElement.appendChild(doc.createTextNode(child.getName() + " (" + child.getLabel() + ")"));
                     } else {
                         Element nothingElement = (Element) root.appendChild(doc.createElement("neither-resource-nor-collection"));
                         nothingElement.setAttribute("path", child.getPath());



More information about the Yanel-commits mailing list