- Timestamp:
- 2003-08-18T13:55:21+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/parsers/GreenstoneMetadataParser.java
r5070 r5153 47 47 import org.greenstone.gatherer.msm.MSMUtils; 48 48 import org.greenstone.gatherer.util.DecodeHTMLReader; 49 import org.greenstone.gatherer.util.StaticStrings; 49 50 import org.greenstone.gatherer.util.Utility; 50 51 import org.greenstone.gatherer.valuetree.GValueModel; … … 281 282 if(metadatum != null) { 282 283 // 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); 284 285 // 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... 285 286 if(element != null && element.getNamespace().equals("")) { … … 905 906 /** 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. 906 907 * @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 "\\" 908 909 */ 909 910 public String getValue(String index) { … … 924 925 ///ystem.err.println("\tHierarchy information required -->"); 925 926 value.append(getValue(index.substring(0, dot_index))); 926 value.append( "\\");927 value.append(StaticStrings.ESCAPE_STR + StaticStrings.ESCAPE_STR); 927 928 ///ystem.err.println("\t<-- Hierarchy information complete"); 928 929 }
Note:
See TracChangeset
for help on using the changeset viewer.