Ignore:
Timestamp:
2009-04-17T19:44:48+12:00 (15 years ago)
Author:
ak19
Message:

The PreviewButton's response had not been updated to load the page of a collection if this was nested in a collectiongroup. Adjusted relevant classes to make the PreviewButton work in the collection group case as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java

    r18948 r19041  
    916916    }
    917917
     918    /** Returns the "collectionGroupName/collectionName" or just the collectionName
     919     *  depending on whether the collection is part of a collection group or not.
     920     * If url = true, then returns the sub-path as a URL (containing / only),
     921     * and if url = false, then the sub-path is returned in filepath form
     922     * (\ or /, depending on the OS).
     923     */
     924    static public String getLoadedColNameWithGroup(boolean url)
     925    {
     926    if (collection != null) {
     927        return collection.getGroupWithName(url);
     928    }
     929
     930    return null;
     931    }
    918932
    919933    public CollectionTree getCollectionTree()
Note: See TracChangeset for help on using the changeset viewer.