Changeset 4590 for trunk


Ignore:
Timestamp:
2003-06-11T17:37:31+12:00 (21 years ago)
Author:
kjdon
Message:

added stuff for iconcollectionsmall collectionmeta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionMetaManager.java

    r4540 r4590  
    137137    return result;
    138138    }
     139    /** Retrieve the iconcollection metadata in the default language, if present.
     140      * @return A <strong>CollectionMeta</strong> containing the iconcollectionsmall in the default language if present, or else the first iconcollectionsmall of any language, otherwise <i>null</i>.
     141      * @see org.greenstone.gatherer.cdm.Language
     142      */
     143    public CollectionMeta getIconCollectionSmall() {
     144    CollectionMeta result = getMetadata("iconcollectionsmall", manager.languages.getDefaultLanguage(), true);
     145    if(result == null) {
     146        result = new CollectionMeta(manager, "iconcollectionsmall", manager.languages.getDefaultLanguage(), "");
     147        addMetadata(result);
     148    }
     149    return result;
     150    }
    139151    /** Method to retrieve the list of metadata.
    140152      * @return An <strong>ArrayList</strong> containing the metadata.
Note: See TracChangeset for help on using the changeset viewer.