- Timestamp:
- 2005-08-24T15:14:01+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionMeta.java
r10345 r10556 27 27 package org.greenstone.gatherer.cdm; 28 28 29 import org.greenstone.gatherer.Gatherer; 29 30 import org.greenstone.gatherer.Configuration; 30 31 import org.greenstone.gatherer.util.Codec; … … 161 162 */ 162 163 public void setValue(String raw_value) { 164 // we need to check if the value has changed 165 String current_value = XMLTools.getValue(element); 166 String new_value = Codec.transform(raw_value, Codec.TEXT_TO_DOM); 167 if (!current_value.equals(new_value)) { 163 168 // Only raw html text can be given to setValue so we need to encode it 164 XMLTools.setValue(element, Codec.transform(raw_value, Codec.TEXT_TO_DOM)); 165 text = null; // Reset text 166 // And determine if this makes the metadata assigned 167 setAssigned(raw_value != null && raw_value.length() > 0); 169 XMLTools.setValue(element, new_value); 170 text = null; // Reset text 171 // And determine if this makes the metadata assigned 172 setAssigned(raw_value != null && raw_value.length() > 0); 173 Gatherer.c_man.configurationChanged(); 174 } 168 175 } 169 176
Note:
See TracChangeset
for help on using the changeset viewer.