Ignore:
Timestamp:
2003-11-20T10:14:10+13:00 (21 years ago)
Author:
jmt12
Message:

All non-special collection metadata values now are wrapped in quotes

File:
1 edited

Legend:

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

    r5859 r5907  
    735735
    736736    static public String metadataToString(Element command_element, boolean text_value) {
     737    boolean special = false;
    737738    // If there is no value attribute, then we don't write anything
    738739    String value_str = MSMUtils.getValue(command_element);
     
    747748        text.append(name_str);
    748749        text.append(TAB_CHARACTER);
     750        special = true;
    749751        }
    750752        else if(name_str.equals(COLLECTIONMETADATA_BETA_STR) || name_str.equals(COLLECTIONMETADATA_CREATOR_STR) || name_str.equals(COLLECTIONMETADATA_PUBLIC_STR)) {
     
    752754        text.append(TAB_CHARACTER);
    753755        text.append(TAB_CHARACTER);
     756        special = true;
    754757        }
    755758        else {
     
    784787
    785788        // We don't wrap the email addresses in quotes, nor any string without spaces
    786         if(value_str.indexOf(SPACE_CHARACTER) == -1) {
     789        if(special) {
    787790        text.append(value_str);
    788791        }
Note: See TracChangeset for help on using the changeset viewer.