Changeset 5907
- Timestamp:
- 2003-11-20T10:14:10+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r5859 r5907 735 735 736 736 static public String metadataToString(Element command_element, boolean text_value) { 737 boolean special = false; 737 738 // If there is no value attribute, then we don't write anything 738 739 String value_str = MSMUtils.getValue(command_element); … … 747 748 text.append(name_str); 748 749 text.append(TAB_CHARACTER); 750 special = true; 749 751 } 750 752 else if(name_str.equals(COLLECTIONMETADATA_BETA_STR) || name_str.equals(COLLECTIONMETADATA_CREATOR_STR) || name_str.equals(COLLECTIONMETADATA_PUBLIC_STR)) { … … 752 754 text.append(TAB_CHARACTER); 753 755 text.append(TAB_CHARACTER); 756 special = true; 754 757 } 755 758 else { … … 784 787 785 788 // 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) { 787 790 text.append(value_str); 788 791 }
Note:
See TracChangeset
for help on using the changeset viewer.