Ignore:
Timestamp:
2003-08-18T13:55:21+12:00 (21 years ago)
Author:
jmt12
Message:

Fix 203B143

File:
1 edited

Legend:

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

    r5070 r5153  
    4747import org.greenstone.gatherer.msm.MSMUtils;
    4848import org.greenstone.gatherer.util.DecodeHTMLReader;
     49import org.greenstone.gatherer.util.StaticStrings;
    4950import org.greenstone.gatherer.util.Utility;
    5051import org.greenstone.gatherer.valuetree.GValueModel;
     
    281282        if(metadatum != null) {
    282283            // 6c. Try to add metadata. If there is no matching metadata element:
    283             ElementWrapper element = Gatherer.c_man.getCollection().msm.getElement(metadatum.element);
     284            ElementWrapper element = Gatherer.c_man.getCollection().msm.getElement(metadatum.element, true);
    284285            // Arg. The element returned may come from the Greenstone dls, which of course should never be involved during importing. To solve check the namespace isn't "" and if it is nullify the element. Nullify. NULLIFY, Bwuhahahaha...
    285286            if(element != null && element.getNamespace().equals("")) {
     
    905906    /** 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.
    906907     * @param index The index whose value you wish to calculate, as a <strong>String</strong>.
    907      * @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 character '/'
     908     * @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 "\\"
    908909     */
    909910    public String getValue(String index) {
     
    924925        ///ystem.err.println("\tHierarchy information required -->");
    925926        value.append(getValue(index.substring(0, dot_index)));
    926         value.append("\\");
     927        value.append(StaticStrings.ESCAPE_STR + StaticStrings.ESCAPE_STR);
    927928        ///ystem.err.println("\t<-- Hierarchy information complete");
    928929        }
Note: See TracChangeset for help on using the changeset viewer.