Changeset 5874


Ignore:
Timestamp:
2003-11-18T15:30:28+13:00 (20 years ago)
Author:
jmt12
Message:

Forgot that HFile object added backslashes to legacy data, not pipes as it now should

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/parsers/GreenstoneMetadataParser.java

    r5712 r5874  
    911911    /** Retrieve the value associated with a certain index. This is harder than it first sounds as you must take into account the parent indexes of this one.
    912912     * @param index The index whose value you wish to calculate, as a <strong>String</strong>.
    913      * @return The fully quantified path to the value that matches index, also as a <strong>String</strong>. Delimitiation between subject layers is denoted by the string "\\"
     913     * @return The fully quantified path to the value that matches index, also as a <strong>String</strong>. Delimitiation between subject layers is denoted by the string "|"
    914914     */
    915915    public String getValue(String index) {
    916                 ///ystem.err.println("Retrieve value for the alias/index: '" + index + "'");
     916        ///ystem.err.println("Retrieve value for the alias/index: '" + index + "'");
    917917        StringBuffer value = new StringBuffer("");
    918                 // If index isn't the index, it must be the alias. Replace it with the index dammit.
     918        // If index isn't the index, it must be the alias. Replace it with the index dammit.
    919919        Entry entry = null;
    920920        if(!Utility.isIndex(index)) {
     
    925925        ///ystem.err.println("\tIndex is actually: " + index);
    926926        }
    927                 // Now build the hierarchy if necessary.
     927        // Now build the hierarchy if necessary.
    928928        int dot_index = -1;
    929929        if((dot_index = index.indexOf(".")) != -1) {
    930930        ///ystem.err.println("\tHierarchy information required -->");
    931931        value.append(getValue(index.substring(0, dot_index)));
    932         value.append(StaticStrings.ESCAPE_STR + StaticStrings.ESCAPE_STR);
     932        value.append(StaticStrings.PIPE_STR);
    933933        ///ystem.err.println("\t<-- Hierarchy information complete");
    934934        }
     
    940940        }
    941941        entry = null;
    942                 ///ystem.err.println("\tFinal value is: '" + value.toString() + "'\n");
     942        ///ystem.err.println("\tFinal value is: '" + value.toString() + "'\n");
    943943        return value.toString();
    944944    }
Note: See TracChangeset for help on using the changeset viewer.