Changeset 32648

Show
Ignore:
Timestamp:
03.12.2018 13:08:27 (11 days ago)
Author:
kjdon
Message:

made service names public so we can use them outside. Also, removed initial / from paths

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/CollectionGroups.java

    r32553 r32648  
    2929    private Element groupDesc = null; 
    3030 
    31     private static final String GROUP_CONTENT = "GroupCurrentContent"; 
    32     private static final String UNIQUE_COLLECTIONS = "UniqueCollections"; 
    33     private static final String COLLECTIONS_HIERARCHY = "CollectionsHierarchy"; 
     31    public static final String GROUP_CONTENT = "GroupCurrentContent"; 
     32    public static final String UNIQUE_COLLECTIONS = "UniqueCollections"; 
     33    public static final String COLLECTIONS_HIERARCHY = "CollectionsHierarchy"; 
    3434 
    3535    static Logger logger = Logger.getLogger(org.greenstone.gsdl3.service.BerryBasket.class.getName()); 
     
    484484         
    485485        String currentPath = ""; 
     486        boolean first = true; 
    486487        for (int i = 0; i < pathSteps.length; i++) { 
    487488            if (!pathSteps[i].isEmpty()) { 
    488                 currentPath += "/" + pathSteps[i]; 
     489              if (first) { 
     490                first = false; 
     491              } else { 
     492                currentPath += "/"; 
     493              } 
     494              currentPath += pathSteps[i]; 
    489495                Element pathStepDescription = getGroupDescription(pathSteps[i]); 
    490496                if (pathStepDescription != null){