Changeset 25744 for main


Ignore:
Timestamp:
2012-06-05T14:25:40+12:00 (12 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.

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.