Changeset 12818


Ignore:
Timestamp:
2006-09-21T17:05:50+12:00 (18 years ago)
Author:
mdewsnip
Message:

Removed all the default format statements, since they aren't actually needed. This is a trial, we're expecting this change to be too radical for many people!

File:
1 edited

Legend:

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

    r12816 r12818  
    104104    }
    105105         
    106         // Ensure the default formats for DateList, HList and VList are assigned
    107     if (getFormat(DATELIST) == null) {
    108             addFormat(new Format("",DATELIST,DATELIST_DEFAULT_FORMAT));       
    109     }
    110 
    111    
    112     if (getFormat(HLIST) == null) {
    113         addFormat(new Format("",HLIST,HLIST_DEFAULT_FORMAT));               
    114     }
     106//          // Ensure the default formats for DateList, HList and VList are assigned
     107// if (getFormat(DATELIST) == null) {
     108//             addFormat(new Format("",DATELIST,DATELIST_DEFAULT_FORMAT));       
     109// }
     110
     111   
     112// if (getFormat(HLIST) == null) {
     113//      addFormat(new Format("",HLIST,HLIST_DEFAULT_FORMAT));               
     114// }
    115115
    116116     
    117     if (getFormat(VLIST) == null) {
    118         addFormat(new Format("",VLIST,VLIST_DEFAULT_FORMAT));           
    119     }
     117// if (getFormat(VLIST) == null) {
     118//      addFormat(new Format("",VLIST,VLIST_DEFAULT_FORMAT));           
     119// }
    120120   
    121121
    122     if (getFormat(DOCUMENTHEADING) == null) {
    123         addFormat(new Format(DOCUMENTHEADING, "", DOCUMENTHEADING_DEFAULT_FORMAT));
    124         }
     122// if (getFormat(DOCUMENTHEADING) == null) {
     123//      addFormat(new Format(DOCUMENTHEADING, "", DOCUMENTHEADING_DEFAULT_FORMAT));
     124//          }
    125125
    126126 
    127     if (getFormat(DOCUMENTTEXT)== null) {
    128         addFormat(new Format(DOCUMENTTEXT,"",DOCUMENTTEXT_DEFAULT_FORMAT));
    129     }
    130    
    131    
    132 
    133     if (getFormat(DOCUMENTBUTTONS) == null) {
    134         addFormat(new Format(DOCUMENTBUTTONS,"",DOCUMENTBUTTONS_DEFAULT_FORMAT));
    135        
    136     }
    137    
    138     // only for mgpp and lucene colls - change!
    139     if (getFormat(SEARCHTYPES)==null) {
    140         addFormat(new Format(SEARCHTYPES, "", SEARCHTYPES_DEFAULT_FORMAT));
    141     }
     127// if (getFormat(DOCUMENTTEXT)== null) {
     128//      addFormat(new Format(DOCUMENTTEXT,"",DOCUMENTTEXT_DEFAULT_FORMAT));
     129//      }
     130   
     131   
     132
     133// if (getFormat(DOCUMENTBUTTONS) == null) {
     134//      addFormat(new Format(DOCUMENTBUTTONS,"",DOCUMENTBUTTONS_DEFAULT_FORMAT));
     135       
     136// }
     137   
     138// // only for mgpp and lucene colls - change!
     139// if (getFormat(SEARCHTYPES)==null) {
     140//      addFormat(new Format(SEARCHTYPES, "", SEARCHTYPES_DEFAULT_FORMAT));
     141// }
    142142   
    143143    }
Note: See TracChangeset for help on using the changeset viewer.