Changeset 5655
- Timestamp:
- 2003-10-16T11:34:07+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r5590 r5655 551 551 } 552 552 else { 553 value_str = MSMUtils.getValue(command_element); 554 // Remove any references to a namespace for extracted metadata 555 if(!show_extracted_namespace) { 556 value_str.replaceAll(EXTRACTED_PREFIX, ""); 557 } 558 text.append(SPEECH_CHARACTER); 559 text.append(value_str); 560 text.append(SPEECH_CHARACTER); 553 // Remember to encode format string to Greenstone specification 554 value_str = Codec.transform(MSMUtils.getValue(command_element), Codec.DOM_TO_GREENSTONE); 555 // Remove any references to a namespace for extracted metadata 556 if(!show_extracted_namespace) { 557 value_str.replaceAll(EXTRACTED_PREFIX, ""); 558 } 559 text.append(SPEECH_CHARACTER); 560 text.append(value_str); 561 text.append(SPEECH_CHARACTER); 561 562 } 562 563 value_str = null; … … 973 974 format_value = format_value.substring(1, format_value.length() - 1); 974 975 } 976 // Decode from Greenstone back into text 977 format_value = Codec.transform(format_value, Codec.GREENSTONE_TO_DOM); 978 // And add to DOM 975 979 MSMUtils.setValue(command_element, format_value); 976 980 }
Note:
See TracChangeset
for help on using the changeset viewer.