Changeset 36191


Ignore:
Timestamp:
2022-05-16T14:46:09+12:00 (2 years ago)
Author:
kjdon
Message:

updated to use new SearchMeta instead of collectionmeta

File:
1 edited

Legend:

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

    r36174 r36191  
    126126          // Try to retrieve existing metadatum
    127127          String source_str = new_index.getID();
    128           CollectionMeta metadatum = CollectionDesignManager.collectionmeta_manager.getMetadatum(StaticStrings.STOP_CHARACTER + source_str, false);
     128          SearchMeta metadatum = CollectionDesignManager.searchmeta_manager.getMetadatum(/*StaticStrings.STOP_CHARACTER +*/ 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 CollectionMeta(StaticStrings.STOP_CHARACTER + source_str);
     131          metadatum = new SearchMeta(/*StaticStrings.STOP_CHARACTER +*/ 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         CollectionMeta metadatum = CollectionDesignManager.collectionmeta_manager.getMetadatum(StaticStrings.STOP_CHARACTER + source_str, false);
     201        SearchMeta metadatum = CollectionDesignManager.searchmeta_manager.getMetadatum(/*StaticStrings.STOP_CHARACTER +*/ 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 CollectionMeta(StaticStrings.STOP_CHARACTER + source_str);
     204            metadatum = new SearchMeta(/*StaticStrings.STOP_CHARACTER +*/ source_str, new_index.getType());
    205205            metadatum.setAssigned(true);
    206206            metadatum.setValue(source_str);
Note: See TracChangeset for help on using the changeset viewer.