Changeset 12301 for trunk/gli/src
- Timestamp:
- 2006-07-25T13:46:36+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Format.java
r12280 r12301 41 41 42 42 /** 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" }; 44 44 /** The list of known feature parts. */ 45 45 static final public String DEFAULT_PARTS[] = { "", "DateList", "HList", "VList" }; … … 148 148 149 149 public boolean canHavePart() { 150 return canHavePart(get Name());150 return canHavePart(getFeatureName()); 151 151 } 152 152 … … 216 216 } 217 217 218 if ( feature_name.equals("")){219 feature_name = DEFAULT_FEATURES[0];220 }221 222 218 return feature_name; 223 219 … … 226 222 if(element != null) { 227 223 String name = element.getAttribute(CollectionConfiguration.NAME_ATTRIBUTE); 228 if (name.equals("")){229 return DEFAULT_FEATURES[0];230 }231 224 return element.getAttribute(CollectionConfiguration.NAME_ATTRIBUTE); 232 225 }
Note:
See TracChangeset
for help on using the changeset viewer.