Changeset 15137 for gli/trunk


Ignore:
Timestamp:
2008-03-27T13:37:22+13:00 (16 years ago)
Author:
kjdon
Message:

added NavigationBar into the list of format options. I added pulldown as the default value - this is the only value that currently makes sense to add. Any other value you get the default nav bar

Location:
gli/trunk/src/org/greenstone/gatherer/cdm
Files:
2 edited

Legend:

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

    r13368 r15137  
    4242
    4343    /** The default features (not all of these are in the Greenstone Developer's Guide). */
    44     static final public String DEFAULT_FEATURES[] = { "", "AllowExtendedOptions", "Document", "DocumentArrowsBottom", "DocumentArrowsTop","DocumentSearchResultLinks", "DocumentButtons", "DocumentContents", "DocumentHeading", "DocumentImages", "DocumentText", "DocumentTitles", "DocumentUseHTML", "RelatedDocuments", "Search", "SearchTypes" };
     44    static final public String DEFAULT_FEATURES[] = { "", "AllowExtendedOptions", "Document", "DocumentArrowsBottom", "DocumentArrowsTop","DocumentSearchResultLinks", "DocumentButtons", "DocumentContents", "DocumentHeading", "DocumentImages", "DocumentText", "DocumentTitles", "DocumentUseHTML", "NavigationBar", "RelatedDocuments", "Search", "SearchTypes" };
    4545    /** The list of known feature parts. */
    4646    static final public String DEFAULT_PARTS[] = { "", "DateList", "HList", "VList" };
  • gli/trunk/src/org/greenstone/gatherer/cdm/FormatManager.java

    r14745 r15137  
    7777  static final private String SEARCHTYPES_DEFAULT_FORMAT = "plain,form";
    7878 
     79  static final private String NAVBAR = "NavigationBar";
     80  static final private String NAVBAR_OPTION = "pulldown";
     81
    7982  static private HashMap default_format_map = null;
    8083 
     
    98101    default_format_map.put(DOCUMENTBUTTONS, DOCUMENTBUTTONS_DEFAULT_FORMAT);
    99102    default_format_map.put(SEARCHTYPES, SEARCHTYPES_DEFAULT_FORMAT);
     103    default_format_map.put(NAVBAR, NAVBAR_OPTION);
    100104    default_format_map.put("", "");
    101105   
Note: See TracChangeset for help on using the changeset viewer.