Changeset 10421
- Timestamp:
- 2005-08-04T15:49:05+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Format.java
r9419 r10421 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[] = { "", "AllowExtendedOptions", "Document ArrowsBottom", "DocumentArrowsTop", "DocumentButtons", "DocumentContents", "DocumentHeading", "DocumentImages", "DocumentText", "DocumentTitles", "DocumentUseHTML", "RelatedDocuments", "Search" };43 static final public String DEFAULT_FEATURES[] = { "", "AllowExtendedOptions", "Document", "DocumentArrowsBottom", "DocumentArrowsTop", "DocumentButtons", "DocumentContents", "DocumentHeading", "DocumentImages", "DocumentText", "DocumentTitles", "DocumentUseHTML", "RelatedDocuments", "Search" }; 44 44 /** The list of known feature parts. */ 45 static final public String DEFAULT_PARTS[] = { "", "DateList", "HList", " Invisible", "VList" };45 static final public String DEFAULT_PARTS[] = { "", "DateList", "HList", "VList" }; 46 46 47 47 /** Only "" and "Search" can have parts */ 48 48 static public boolean canHavePart(String name) { 49 return (name.equalsIgnoreCase("") || name.equalsIgnoreCase("Search") );49 return (name.equalsIgnoreCase("") || name.equalsIgnoreCase("Search") || name.equalsIgnoreCase("Document")); 50 50 } 51 51 -
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r10345 r10421 60 60 static final private String VLIST = "VList"; 61 61 static final private String VLIST_DEFAULT_FORMAT = "<td valign=top>[link][icon][/link]</td>\n<td valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>\n<td valign=top>[highlight]\n{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}\n[/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>"; 62 static final private String INVISIBLE = "Invisible"; 63 static final private String INVISIBLE_DEFAULT_FORMAT = ""; 64 62 // static final private String INVISIBLE = "Invisible"; 63 //static final private String INVISIBLE_DEFAULT_FORMAT = ""; 64 65 static final private String DOCUMENTHEADING = "DocumentHeading"; 66 static final private String DOCUMENTHEADING_DEFAULT_FORMAT = "{Or}{[parent(Top):Title],[Title],untitled}<br>"; 67 68 static final private String DOCUMENTTEXT = "DocumentText"; 69 static final private String DOCUMENTTEXT_DEFAULT_FORMAT = "<center><table width=_pagewidth_><tr><td>[Text]</td></tr></table></center>"; 70 71 static final private String DOCUMENTBUTTONS = "DocumentButtons"; 72 static final private String DOCUMENTBUTTONS_DEFAULT_FORMAT = "Detach|Highlight"; 73 65 74 /** The controls used to edit the format commands. */ 66 75 private Control controls = null; … … 91 100 addFormat(new Format("",VLIST,VLIST_DEFAULT_FORMAT)); 92 101 } 102 103 if (getFormat(DOCUMENTHEADING) == null) { 104 addFormat(new Format(DOCUMENTHEADING, "", DOCUMENTHEADING_DEFAULT_FORMAT)); 105 } 106 if (getFormat(DOCUMENTTEXT) == null) { 107 addFormat(new Format(DOCUMENTTEXT,"",DOCUMENTTEXT_DEFAULT_FORMAT)); 108 } 109 if (getFormat(DOCUMENTBUTTONS) == null) { 110 addFormat(new Format(DOCUMENTBUTTONS,"",DOCUMENTBUTTONS_DEFAULT_FORMAT)); 111 } 112 93 113 } 94 114 … … 188 208 part_model.add(new Part(DATELIST, DATELIST_DEFAULT_FORMAT)); 189 209 part_model.add(new Part(HLIST, HLIST_DEFAULT_FORMAT)); 190 part_model.add(new Part(INVISIBLE, INVISIBLE_DEFAULT_FORMAT));210 //part_model.add(new Part(INVISIBLE, INVISIBLE_DEFAULT_FORMAT)); 191 211 part_model.add(new Part(VLIST, VLIST_DEFAULT_FORMAT)); 192 212 return part_model; … … 533 553 if (entry.canHavePart()) { 534 554 part_combobox.setEnabled(true); 535 part_combobox.setSelectedIndex( 4);555 part_combobox.setSelectedIndex(part_combobox.getModel().getSize()-1); 536 556 537 557 } else {
Note:
See TracChangeset
for help on using the changeset viewer.