Changeset 11869


Ignore:
Timestamp:
2006-05-29T09:38:49+12:00 (18 years ago)
Author:
shaoqun
Message:

If the metadata is empty, the toString method return its name to allow other CollectionMeta objects to be added in (the toString method is used to test whether a CollectionMetadata already exists)

File:
1 edited

Legend:

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

    r10556 r11869  
    180180    public String toString() {
    181181    if(text == null) {
    182         text = CollectionConfiguration.toString(element, true);
     182            text = CollectionConfiguration.toString(element, true);
     183        if (text.equals("")){
     184        return getName();
     185        }
    183186    }
    184187    return text;
Note: See TracChangeset for help on using the changeset viewer.