[Yanel-commits] rev 56946 - 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
Fri Feb 25 00:04:53 CET 2011


Author: michi
Date: 2011-02-25 00:04:53 +0100 (Fri, 25 Feb 2011)
New Revision: 56946

Modified:
   public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java
Log:
name, path and label of collections 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-24 20:00:17 UTC (rev 56945)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java	2011-02-24 23:04:53 UTC (rev 56946)
@@ -131,11 +131,11 @@
                     if(child.isCollection()) {
                         if(collectionElement == null) {
                             Element childCollectionElement = (Element) root.appendChild(doc.createElement("collection"));
-                            childCollectionElement.setAttribute("path", node.getPath());
-                            childCollectionElement.setAttribute("name", node.getName());
+                            childCollectionElement.setAttribute("path", child.getPath());
+                            childCollectionElement.setAttribute("name", child.getName());
                             Element labelElement = (Element) childCollectionElement.appendChild(doc.createElement("label"));
-                            //labelElement.appendChild(doc.createTextNode(node.getName()));
-                            labelElement.appendChild(doc.createTextNode(node.getName() + " (" + node.getLabel() + ")"));
+                            //labelElement.appendChild(doc.createTextNode(child.getName()));
+                            labelElement.appendChild(doc.createTextNode(child.getName() + " (" + child.getLabel() + ")"));
                         } else {
                             getNodeAsXML(child.getPath(), doc, collectionElement);
                         }



More information about the Yanel-commits mailing list