Changeset 12301


Ignore:
Timestamp:
2006-07-25T13:46:36+12:00 (18 years ago)
Author:
kjdon
Message:

changed the default features back to have "" as the first one - will change the display in FormatManager to display All Features

File:
1 edited

Legend:

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

    r12280 r12301  
    4141
    4242    /** The default features (not all of these are in the Greenstone Developer's Guide). */
    43     static final public String DEFAULT_FEATURES[] = { "<html><body><i>All Features</i></body></html>", "AllowExtendedOptions", "Document", "DocumentArrowsBottom", "DocumentArrowsTop", "DocumentButtons", "DocumentContents", "DocumentHeading", "DocumentImages", "DocumentText", "DocumentTitles", "DocumentUseHTML", "RelatedDocuments", "Search", "SearchTypes" };
     43    static final public String DEFAULT_FEATURES[] = { "", "AllowExtendedOptions", "Document", "DocumentArrowsBottom", "DocumentArrowsTop", "DocumentButtons", "DocumentContents", "DocumentHeading", "DocumentImages", "DocumentText", "DocumentTitles", "DocumentUseHTML", "RelatedDocuments", "Search", "SearchTypes" };
    4444    /** The list of known feature parts. */
    4545    static final public String DEFAULT_PARTS[] = { "", "DateList", "HList", "VList" };
     
    148148 
    149149    public boolean canHavePart() {
    150     return canHavePart(getName());
     150    return canHavePart(getFeatureName());
    151151    }
    152152
     
    216216    }
    217217
    218     if ( feature_name.equals("")){
    219          feature_name = DEFAULT_FEATURES[0];
    220      }
    221 
    222218    return feature_name;
    223219       
     
    226222    if(element != null) {
    227223        String name  = element.getAttribute(CollectionConfiguration.NAME_ATTRIBUTE);
    228             if (name.equals("")){
    229         return DEFAULT_FEATURES[0];
    230         }
    231224           return element.getAttribute(CollectionConfiguration.NAME_ATTRIBUTE);
    232225    }
Note: See TracChangeset for help on using the changeset viewer.