Changeset 19223


Ignore:
Timestamp:
04/23/09 14:10:41 (12 years ago)
Author:
kjdon
Message:

added code to hide the keyword metadata in the index list

File:
1 edited

Legend:

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

    r18414 r19223  
    4646    public static final String TYPE_PARTITION = "partition";
    4747    public static final String TYPE_LANGUAGE = "language";
    48    
     48
     49  // the following are special and should not be translated
     50  public static final String METADATA_INDEX = "ex.metadata";
     51
    4952    CollectionMetaManager collmeta_manager = CollectionDesignManager.collectionmeta_manager;
    5053
     
    130133        int indexes_size = indexes.size();
    131134        for (int i=0; i<indexes_size; i++) {
    132         SearchMetadataEntry sme = new SearchMetadataEntry(((Index)indexes.get(i)).getID(), TYPE_INDEX);
     135          String index_id = ((Index)indexes.get(i)).getID();
     136          if (!index_id.equals(METADATA_INDEX)) {
     137        SearchMetadataEntry sme = new SearchMetadataEntry(index_id, TYPE_INDEX);
    133138        entries.add(sme);
    134         }
    135     }
    136    
     139          }
     140        }
     141    }
    137142    ArrayList levels = CollectionDesignManager.index_manager.getLevels();
    138143    if (levels != null) {
Note: See TracChangeset for help on using the changeset viewer.