Changeset 25744

Show
Ignore:
Timestamp:
05.06.2012 14:25:40 (7 years ago)
Author:
ak19
Message:

Fixed bug of duplicate displayitems being written out to the collectionConfig.xml: some displayItems should be left to the functions handling indexer-specific displayItems.

Files:
1 modified

Legend:

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

    r25730 r25744  
    11651165        Element destination = to.getDocumentElement(); 
    11661166 
     1167        // certain special collectionmeta elements should have different names 
     1168        // as displayItems in the collectionConfig.xml than they do in memory 
    11671169        Map attributeMap = new HashMap(4); 
    11681170        attributeMap.put(StaticStrings.COLLECTIONMETADATA_COLLECTIONEXTRA_STR,StaticStrings.DESCRIPTION_STR); 
     
    23562358            if(name.equals(StaticStrings.ICON_STR)) continue; 
    23572359            if(name.equals(StaticStrings.NAME_STR)) continue; 
     2360            // don't add displayItems that are handled by the indexers, etc. E.g. document:ex.Title  
     2361            if(name.indexOf(":") != -1) continue; 
    23582362 
    23592363            // otherwise