Changeset 5515 for trunk/gli/src


Ignore:
Timestamp:
2003-09-18T12:49:02+12:00 (21 years ago)
Author:
mdewsnip
Message:

Fixed some problems with hierarchical metadata.

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  
    123123    // What actually gets written as the value depends on whether this is a hierarchy based element.
    124124    GValueModel model = Gatherer.c_man.getCollection().msm.getValueTree(element);
    125     if(model != null && model.isHierarchy()) {
     125    /*if(model != null && model.isHierarchy()) {
    126126        if(value != null) {
    127127        abs_value = value.getFullPath(false);
     
    129129        abs_value = model.getHIndex(abs_value);
    130130    }
    131     else {
     131    else {*/
    132132        abs_value = abs_value.replaceAll(StaticStrings.LBRACKET_PATTERN, StaticStrings.ESCAPE_PATTERN + StaticStrings.LBRACKET_PATTERN);
    133133        abs_value = abs_value.replaceAll(StaticStrings.RBRACKET_PATTERN, StaticStrings.ESCAPE_PATTERN + StaticStrings.RBRACKET_PATTERN);
    134     }
     134        //}
    135135    // Return the result
    136136    return abs_value;
  • trunk/gli/src/org/greenstone/gatherer/util/MetadataXML.java

    r5305 r5515  
    163163            value = value.substring(value.lastIndexOf(GValueModel.PATH_SEP) + GValueModel.PATH_SEP.length());
    164164        }
    165         write(bw, index + "\t\"" + alias + "\"\t\"" + Utility.stripNL(value) + "\"");
     165        write(bw, "\"" + Utility.stripNL(value) + "\"\t" + index + "\t\"" + Utility.stripNL(value) + "\"");
    166166        }
    167167                // Very important we do this, or else buffer may not have
Note: See TracChangeset for help on using the changeset viewer.