Changeset 12815


Ignore:
Timestamp:
2006-09-21T16:55:21+12:00 (18 years ago)
Author:
mdewsnip
Message:

No idea why the static DEFAULT strings weren't being used.

File:
1 edited

Legend:

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

    r12809 r12815  
    8989
    9090        format_map = new HashMap();
    91     format_map.put(DATELIST,"<td>[link][icon][/link]</td>\n<td>[highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]</td>\n<td>[ex.Date]</td>");
    92     format_map.put(HLIST,"[link][highlight][ex.Title][/highlight][/link]");
    93     format_map.put(VLIST,"<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>");   
    94     format_map.put(DOCUMENTHEADING,"{Or}{[parent(Top):Title],[Title],untitled}<br>");   
    95     format_map.put(DOCUMENTTEXT,"[Text]");     
    96     format_map.put( DOCUMENTBUTTONS,"Detach|Highlight");
    97     format_map.put( "","");
    98        
     91    format_map.put(DATELIST, DATELIST_DEFAULT_FORMAT);
     92    format_map.put(HLIST, HLIST_DEFAULT_FORMAT);
     93    format_map.put(VLIST, VLIST_DEFAULT_FORMAT);
     94    format_map.put(DOCUMENTHEADING, DOCUMENTHEADING_DEFAULT_FORMAT);
     95    format_map.put(DOCUMENTTEXT, DOCUMENTTEXT_DEFAULT_FORMAT);
     96    format_map.put(DOCUMENTBUTTONS, DOCUMENTBUTTONS_DEFAULT_FORMAT);
     97        format_map.put("", "");
     98
    9999    DebugStream.println("FormatManager: parsed " + getSize() + " format statements.");
    100100    // Establish all of the format objects, so that classifier indexes are initially correct (subsequent refreshes of the model will be sufficient to keep these up to date, as long as we start with a live reference to a classifier.
     
    681681                }
    682682                else {
    683                    ///ystem.err.println("Value type");
     683                ///ystem.err.println("Value type");
    684684                ///election_pane.add(part_pane);
    685685                card_layout.show(control_pane, VALUE);
Note: See TracChangeset for help on using the changeset viewer.