Changeset 5515 for trunk/gli/src
- Timestamp:
- 2003-09-18T12:49:02+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/Metadata.java
r5305 r5515 123 123 // What actually gets written as the value depends on whether this is a hierarchy based element. 124 124 GValueModel model = Gatherer.c_man.getCollection().msm.getValueTree(element); 125 if(model != null && model.isHierarchy()) {125 /*if(model != null && model.isHierarchy()) { 126 126 if(value != null) { 127 127 abs_value = value.getFullPath(false); … … 129 129 abs_value = model.getHIndex(abs_value); 130 130 } 131 else { 131 else {*/ 132 132 abs_value = abs_value.replaceAll(StaticStrings.LBRACKET_PATTERN, StaticStrings.ESCAPE_PATTERN + StaticStrings.LBRACKET_PATTERN); 133 133 abs_value = abs_value.replaceAll(StaticStrings.RBRACKET_PATTERN, StaticStrings.ESCAPE_PATTERN + StaticStrings.RBRACKET_PATTERN); 134 }134 //} 135 135 // Return the result 136 136 return abs_value; -
trunk/gli/src/org/greenstone/gatherer/util/MetadataXML.java
r5305 r5515 163 163 value = value.substring(value.lastIndexOf(GValueModel.PATH_SEP) + GValueModel.PATH_SEP.length()); 164 164 } 165 write(bw, index + "\t\"" + alias + "\"\t\"" + Utility.stripNL(value) + "\"");165 write(bw, "\"" + Utility.stripNL(value) + "\"\t" + index + "\t\"" + Utility.stripNL(value) + "\""); 166 166 } 167 167 // Very important we do this, or else buffer may not have
Note:
See TracChangeset
for help on using the changeset viewer.