Changeset 36194


Ignore:
Timestamp:
2022-05-16T14:49:07+12:00 (4 months ago)
Author:
kjdon
Message:

handle searchmeta elements. Also make dot optional when writing out these metadata

File:
1 edited

Legend:

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

    r22971 r36194  
    9494      return metadataToString (command_element);
    9595    }
     96    else if (command_element_name.equals (StaticStrings.SEARCHMETADATA_ELEMENT)) {
     97    return metadataToString( command_element, true);
     98    }
    9699    else if (command_element_name.equals (StaticStrings.BUILDTYPE_ELEMENT)) {
    97100      return metadataToString (command_element);
     
    327330  }
    328331   
    329   static private String metadataToString (Element command_element) {
     332    static private String metadataToString(Element command_element) {
     333    return metadataToString(command_element, false);
     334    }
     335    static private String metadataToString (Element command_element, boolean use_dot) {
    330336    // lets first check the value - if its empty, don't bother sticking it in the config file
    331337    String value_str = XMLTools.getValue (command_element);
     
    352358      text.append (StaticStrings.COLLECTIONMETADATA_STR);
    353359      text.append (StaticStrings.TAB_CHARACTER);
     360      if (use_dot) {
     361      text.append(StaticStrings.STOP_CHARACTER);
     362      }
    354363      text.append (name_str);
    355364      text.append (StaticStrings.SPACE_CHARACTER);
Note: See TracChangeset for help on using the changeset viewer.