Changeset 36301


Ignore:
Timestamp:
2022-07-22T10:59:27+12:00 (22 months ago)
Author:
kjdon
Message:

tidying up by removing commented out code

File:
1 edited

Legend:

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

    r36252 r36301  
    126126          // Try to retrieve existing metadatum
    127127          String source_str = new_index.getID();
    128           SearchMeta metadatum = CollectionDesignManager.searchmeta_manager.getMetadatum(/*StaticStrings.STOP_CHARACTER +*/ source_str, new_index.getType(), false);
     128          SearchMeta metadatum = CollectionDesignManager.searchmeta_manager.getMetadatum(source_str, new_index.getType(), false);
    129129          // If no metadata was found, add new pseudo metadata using the id
    130130          if(metadatum == null) {
    131           metadatum = new SearchMeta(/*StaticStrings.STOP_CHARACTER +*/ source_str, new_index.getType());
     131          metadatum = new SearchMeta(source_str, new_index.getType());
    132132        metadatum.setAssigned(true);
    133133        metadatum.setValue(source_str);
     
    199199        // Try to retrieve existing metadatum
    200200        source_str = new_index.getID();
    201         SearchMeta metadatum = CollectionDesignManager.searchmeta_manager.getMetadatum(/*StaticStrings.STOP_CHARACTER +*/ source_str, new_index.getType(), false);
     201        SearchMeta metadatum = CollectionDesignManager.searchmeta_manager.getMetadatum(source_str, new_index.getType(), false);
    202202        // If no metadata was found, add new pseudo metadata using the id
    203203        if(metadatum == null) {
    204             metadatum = new SearchMeta(/*StaticStrings.STOP_CHARACTER +*/ source_str, new_index.getType());
     204            metadatum = new SearchMeta(source_str, new_index.getType());
    205205            metadatum.setAssigned(true);
    206206            metadatum.setValue(source_str);
     
    494494       
    495495
    496         // /** add all sources as separate indexes (fields).  */
    497         // private class AddAllIndexActionListener
    498         //     implements ActionListener {
    499 
    500         //     public void actionPerformed(ActionEvent event) {
    501         //         ArrayList all_sources = source_list.getAll();
    502         //         all_sources.add(0, StaticStrings.TEXT_STR);
    503         //         ArrayList new_sources = new ArrayList();
    504         //         for(int i = 0; i < all_sources.size(); i++) {
    505         //      Object source = all_sources.get(i);
    506 
    507         //      // Create new index
    508         //      new_sources.clear();
    509         //      new_sources.add(source);
    510         //      Index index = new Index(new_sources);
    511         //      if(!index_model.contains(index)) {
    512         //          // Determine the metadatum value
    513         //          String name = source.toString();
    514         //          if(name.startsWith(StaticStrings.EXTRACTED_NAMESPACE) && name.indexOf(StaticStrings.NS_SEP, StaticStrings.EXTRACTED_NAMESPACE.length()) == -1) {
    515         //          name = name.substring(StaticStrings.EXTRACTED_NAMESPACE.length());
    516         //          }
    517         //          // Create new metadatum
    518         //          CollectionMeta metadatum = new CollectionMeta(StaticStrings.STOP_CHARACTER + index.getID());
    519         //          metadatum.setValue(name);
    520         //          name = null;
    521         //          // Assign new index
    522         //          addIndex(index, metadatum);
    523         //      }
    524         //      source = null;
    525         //      index = null;
    526         //         }
    527         //         new_sources = null;
    528         //         new_index_prompt.dispose();
    529        
    530         //     }
    531         // }
    532496   
    533497        private class AllFieldsBoxListener
Note: See TracChangeset for help on using the changeset viewer.